Skip to content

losuler/asuswrt-update-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

logo

AsusWRT Update Notify

Notifications for AsusWRT Merlin updates.

About

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).

Configuration

Enable the service you would like to recieve notifications on (e.g. Telegram):

# Enable/Disable (Default: Disable)
TELEGRAM="enable"

Telegram

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

Matrix

MATRIX_DOMAIN

This is the domain for the Matrix server your room is hosted on. For most people this will likely be matrix.org.

MATRIX_ROOM

This is the internal room ID. The syntax is ! followed by a random set of letters, for example !abCDEfGhiJKLMnopQRs. In Element you can find this by going to the room ➝ SettingsAdvanced.

MATRIX_TOKEN

This is the access token or secret that is used to authenticate the sending of the messages. You may retrieve this by either logging into Element through the browser or running the following command and copying the value from access_token:

curl -XPOST -d '{"type":"m.login.password", "user":"$USERNAME", "password":"$PASSWORD"}' \
    "https://matrix.org/_matrix/client/r0/login"

Installation

  1. Copy update-notification into /jffs/scripts/. For example:
scp update-notification [email protected]:/jffs/scripts/
  1. Apply execute permissions to the script.
chmod +x /jffs/scripts/update-notification

About

An update notification script for AsusWRT-Merlin.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages