Skip to content

cascafico/adiffq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monitor_tg.sh

The script aims to monitor selectable daily changes in an Openstreetmap area and report them at the end of the day via telegram channel, hence it should be run after midnight. You can choose area by areacode id and customize which OSM elements are to be monitored. The example script performs a recursive query, so querying a relation implies monitor all its members (ways and nodes). To set running time, refer to crontab.

  • generates an Openstreetmap changeset list involving daily changes based on overpass-turbo query
  • builds list of achavi links to involved changesets
  • sends ilst to telegram channel
  • customizable query, region and channel

customization

general

Lines 17-25: here you can set

  • REGIONE, mnemonic abbreviation for your region
  • CANALE, telegram channel to send messages
  • AREACODE, area indexed by overpass (3600000000 + OSM relation id)
  • TELEGRAMCLIPATH, path of telegram-bin executable
  • WORKINGPATH, where to store temporary files

query

Line 43 The example query will extract changesets where relations with operator="CAI" or operator="Club Alpino Italiano" (and all its members) were changed yesterday from 00:00 to 24:00

crontab

to run periodically 5' after midnight, at prompt run "crontab -e" and add the following line: 5 0 * * * /your-path-to-script/monitor_tg.sh.sh >/dev/null 2>&1

monitor:sh

Note: outdated by monitor_tg.sh

  • generates an Openstreetmap changeset list involving daily changes based on overpass-turbo query
  • builds html page with changeset list
  • sends alert to telegram channel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published