- PHP 100%
Maupno
Map Update Notifier
This is the source code for a Telegram bot which can let you know when there are updates available for OsmAnd map files
https://telegram.me/MaupnoBot is the instance operated by the maintainer of this repository
Installation
If anyone has an interest in setting this up, ask me to make more detailed
instructions! In short, clone the repository on a web server, copy
config-example.php to config.php, and open the
file to see what configurations you can set. This will point you to steps like
setting directory permissions for SQLite, obtaining the bot API token, and how
to configure Telegram to send requests to your web server when someone sends a
message to your bot. Finally, call periodic-check.php
on a regular schedule (such as every 8 hours; be a good netizen!), for example
using cron, which will query the map file dates on OsmAnd servers and, when
applicable, send out messages to anyone who requested the alerts on Telegram.
Messages sent to the bot are handled in update.php
and you can run tests by opening tests.php from a web browser.
Log messages may appear in ./protected/bot.log by default; see the config.
Contributions
...of any kind are welcome!
License
AGPLv3, see the file LICENSE.txt.