An update notification script for AsusWRT-Merlin based on the example script, which is run when there is a new version (checked every 48 hours at 2 am with a random offset).
Enable the service you would like to recieve notifications on (e.g. Telegram):
# Enable/Disable (Default: Disable)
TELEGRAM="enable"
BOT_TOKEN
This is the token for the bot. It is provided in the creation of a bot by following the steps provided in the Telegram bot API documentation.
CHAT_ID
This is the unique identifier for the target chat. It can be obtained by messaging the bot and executing the following command (replace $BOT_TOKEN
). The ID may be found at "chat": {"id": 12345678},
:
curl https://api.telegram.org/bot$BOT_TOKEN/getUpdates | python -m json.tool
- Copy
update-notification
into/jffs/scripts/
. For example:
scp update-notification [email protected]:/jffs/scripts/
- Apply execute permissions to the script.
chmod +x /jffs/scripts/update-notification