اوپن سٹریٹ میپ دا لوگو اوپن سٹریٹ میپ

Monitor OSM changes

ایہہ ؜14؍؜December ؜2018ء‬ Italian (Italiano) وچ «Cascafico» لیکھ چھپیا گیا سی۔ ایہہ ؜19؍؜March ؜2019ء‬ تے پہلا نواں کرن

about

Mountain hiking association asked me to monitor local hiking relations from edits done by other mappers. I wrote this script which generates an html page with OSM changeset involving daily changes. It is feeded by overpass-turbo query, like this, so you can customize which OSM objects to monitor.

steps

The mentioned monitor script will:

  • extract relations modified in the last 24h and tagged operator=”CAI” in area provided as argument
  • filter useful informations
  • format an html file with OSM, Achavi and OSMcha links

automate runs

Of course it can be run periodically using crontab. To set a daily run, just execute
$ crontab -e
add a line like below, customizing your script path:
0 0 * * * /home/pi/scripts/monitor.sh  » /dev/null 2>&1

telegram

My instance include a telegram service fired when a changeset list is written. I use telegram-cli with the following line in script:
echo “msg $CHANNEL $MESSAGE”; echo “safe_quit” | /home/pi/apps/tg/bin/telegram-cli -W

Just add telegram CHANNEL and MESSAGE variables and insert the line inside $CHAN==0 else if

TODO

Fix area names which include spaces, ie “Cividale del Friuli”

Email icon Bluesky Icon Facebook Icon LinkedIn Icon Mastodon Icon Telegram Icon X Icon

Discussion

ایہہ ؜14؍؜December ؜2018ء ‪11:19‬ تے «Piskvor» ٹپݨی کیتی گئی سی۔

Interesting - why not OSMAT? osm.org/user/Cascafico/diary/42317

ایہہ ؜14؍؜December ؜2018ء ‪12:44‬ تے «Cascafico» ٹپݨی کیتی گئی سی۔

Ooops! I should have better red OSMAT docs… where can I select which OMS elements to monitor?

ایہہ ؜14؍؜December ؜2018ء ‪12:51‬ تے «Piskvor» ٹپݨی کیتی گئی سی۔

There’s “Labels and filters” - https://github.com/MichaelVL/osm-analytic-tracker

I do agree that it’s not entirely user-friendly to set up, and if you only ever need one simple filter, setting it up would be a hassle. Anything more, and in my experience the overhead of tuning a custom script becomes significant.

ایہہ ؜22؍؜January ؜2019ء ‪10:41‬ تے «Cascafico» ٹپݨی کیتی گئی سی۔

As far as I understand, the trick is done in post_labels… anyway, it seems there is a github feature request

ٹپݨی چھڈݨ واسطے لوگ‌این کرو