Skip to content
forked from Zverik/mmwatch

Monitor OSM edits made with MAPS.ME editor

Notifications You must be signed in to change notification settings

organicmaps/mmwatch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Monitor OSM edits made with MAPS.ME editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.1%
  • HTML 13.1%
  • JavaScript 1.6%
  • CSS 1.2%