{"id":18596051,"url":"https://github.com/losuler/asuswrt-update-notify","last_synced_at":"2025-08-01T20:02:30.871Z","repository":{"id":133523228,"uuid":"242811021","full_name":"losuler/asuswrt-update-notify","owner":"losuler","description":"An update notification script for AsusWRT-Merlin.","archived":false,"fork":false,"pushed_at":"2021-10-13T00:09:47.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T22:07:07.185Z","etag":null,"topics":["asuswrt-merlin","notifications","telegram"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/losuler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-24T18:26:58.000Z","updated_at":"2021-10-13T00:09:51.000Z","dependencies_parsed_at":"2023-07-10T01:32:43.658Z","dependency_job_id":null,"html_url":"https://github.com/losuler/asuswrt-update-notify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losuler%2Fasuswrt-update-notify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losuler%2Fasuswrt-update-notify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losuler%2Fasuswrt-update-notify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losuler%2Fasuswrt-update-notify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/losuler","download_url":"https://codeload.github.com/losuler/asuswrt-update-notify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239379324,"owners_count":19628684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asuswrt-merlin","notifications","telegram"],"created_at":"2024-11-07T01:22:55.209Z","updated_at":"2025-02-17T23:09:44.836Z","avatar_url":"https://github.com/losuler.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/losuler/asuswrt-update-notify\"\u003e\n    \u003cimg src=\"img/asuswrt-merlin.png\" alt=\"logo\"\u003e\n  \u003c/a\u003e\n  \u003cp align=\"center\"\u003e\n    \u003ch3 align=\"center\"\u003eAsusWRT Update Notify\u003c/h3\u003e\n    \u003cp align=\"center\"\u003e\n      Notifications for AsusWRT Merlin updates.\n    \u003c/p\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\n## About\n\nAn update notification script for [AsusWRT-Merlin](https://www.asuswrt-merlin.net/) based on the [example script](https://github.com/RMerl/asuswrt-merlin.ng/wiki/Update-Notification-Example), which is run when there is a new version ([checked every 48 hours at 2 am with a random offset](https://github.com/RMerl/asuswrt-merlin.ng/blob/f32e73d911c839ad43937e28003509e3c011ba75/release/src/router/rc/watchdog.c#L7017)).\n\n## Configuration\n\nEnable the service you would like to recieve notifications on (e.g. Telegram):\n\n```sh\n# Enable/Disable (Default: Disable)\nTELEGRAM=\"enable\"\n```\n\n### Telegram\n\n`BOT_TOKEN`\n\nThis 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](https://core.telegram.org/bots#3-how-do-i-create-a-bot).\n\n`CHAT_ID` \n\nThis 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},`:\n\n```sh\ncurl https://api.telegram.org/bot$BOT_TOKEN/getUpdates | python -m json.tool\n```\n\n### Matrix\n\n`MATRIX_DOMAIN`\n\nThis is the domain for the Matrix server your room is hosted on. For most people this will likely be `matrix.org`.\n\n`MATRIX_ROOM`\n\nThis 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 ➝ `Settings` ➝ `Advanced`.\n\n`MATRIX_TOKEN`\n\nThis 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`:\n\n```sh\ncurl -XPOST -d '{\"type\":\"m.login.password\", \"user\":\"$USERNAME\", \"password\":\"$PASSWORD\"}' \\\n    \"https://matrix.org/_matrix/client/r0/login\"\n```\n\n## Installation\n\n1. Copy `update-notification` into `/jffs/scripts/`. For example:\n\n```sh\nscp update-notification root@192.168.1.1:/jffs/scripts/\n```\n\n2. Apply execute permissions to the script.\n\n```sh\nchmod +x /jffs/scripts/update-notification\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flosuler%2Fasuswrt-update-notify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flosuler%2Fasuswrt-update-notify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flosuler%2Fasuswrt-update-notify/lists"}