Coder Social home page Coder Social logo

mmwatch's Introduction

MAPS.ME Monitoring Site

A script and a simple web page for vieweing MAPS.ME edits statistics. It is installed at osmz.ru.

Installation

First, add server/mapsme-process.py to crontab. Like this:

*/3 * * * * /var/www/sites/mmwatch/mmwatch/process.py >> /var/www/sites/mmwatch/mmwatch/mapsme-process.log

It will create a database of changes and start updating it once every three minutes. If you need to pre-populate the database with earlier edits, comment out the cron line, delete mapsme-changes.db, edit the sequence number in mapsme-state.txt to an earlier value and run mapsme-process.py from a command line. It works rather slow, so be prepared to wait and, if unlucky, respond to OSM admins' mail about making requests to the API too often.

When pushing to the production, turn off DEBUG in mmwatch/config.py.

Now you need to add the WSGI application to your web server. Refer to this manual or maybe this one about Gunicorn.

Switching to Another Database

Edit mmwatch/config.py, replacing the DATABASE_URI. Refer to this section of the Peewee documentation.

API

There is almost no API in the service, except /user?name=<OSM User Name> call, which returns user's rank and number of edits.

Author and License

Written by Ilya Zverev, published under WTFPL.

mmwatch's People

Contributors

zverik avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mmwatch's Issues

Add a country filter

Just a drop-down, I guess. Would require way coordinates and a lot of polygon files.

Export to geojson

A button to export all filtered edits to a geojson (of points). Limit 2000, for example.

Check objects for edits

Download histories of some objects hourly and check if they have been fixed by somebody. Put the hourly difference between creating and fixing into processed column.

Get rid of SQLite in favour of MySQL

Hi,
very often when I use mmwatch there is a

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.

It is not a serious issue. No details for the error are provided, so I can't submit a better report/patch.
Thanks.

Site is down

Both py.osmz.ru/mmwatch/ and mmmwatch.osmz.ru now redirect to osmz.ru.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.