{"id":19608919,"url":"https://github.com/fire1ce/udm-failover-telegram-notifications","last_synced_at":"2025-04-27T20:33:09.930Z","repository":{"id":37457795,"uuid":"459974489","full_name":"fire1ce/UDM-Failover-Telegram-Notifications","owner":"fire1ce","description":"UDMP Failover Telegram Notifications","archived":false,"fork":false,"pushed_at":"2025-02-24T08:29:30.000Z","size":16,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-05T03:23:12.049Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fire1ce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"fire1ce","patreon":"fire1ce","custom":["https://www.buymeacoffee.com/fire1ce"]}},"created_at":"2022-02-16T11:26:06.000Z","updated_at":"2025-02-24T08:29:33.000Z","dependencies_parsed_at":"2025-02-24T09:25:25.763Z","dependency_job_id":"e03742bd-98f1-4dc5-81b1-d935a16ec126","html_url":"https://github.com/fire1ce/UDM-Failover-Telegram-Notifications","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/fire1ce%2FUDM-Failover-Telegram-Notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fire1ce%2FUDM-Failover-Telegram-Notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fire1ce%2FUDM-Failover-Telegram-Notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fire1ce%2FUDM-Failover-Telegram-Notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fire1ce","download_url":"https://codeload.github.com/fire1ce/UDM-Failover-Telegram-Notifications/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251204774,"owners_count":21552288,"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":[],"created_at":"2024-11-11T10:18:33.561Z","updated_at":"2025-04-27T20:33:09.644Z","avatar_url":"https://github.com/fire1ce.png","language":"Shell","funding_links":["https://github.com/sponsors/fire1ce","https://patreon.com/fire1ce","https://www.buymeacoffee.com/fire1ce"],"categories":[],"sub_categories":[],"readme":"# UDM Failover Telegram Notifications\n\n## Changelog\n\n- 2023-02-22 - Added support for multiple UDM versions 1.x, 2.x and 3.x\n\n## Persistence on Reboot\n\nThis script need to run every time the system is rebooted since the UDM overwrites crons every boot.\nThis can be accomplished with a boot script. Flow this guide: [UDM / UDMPro Boot Script](https://github.com/unifi-utilities/unifios-utilities/tree/main/on-boot-script)\n\n## Compatibility\n\n- Tested on [UDM PRO][amz-udm-pro-url]\n\n## Installation\n\n```bash\ncurl -s https://raw.githubusercontent.com/fire1ce/UDM-Failover-Telegram-Notifications/main/install.sh | sh\n```\n\nSet your Telegram Chat ID and Bot API Key at\n\n$DATA_DIR for 1.x = /mnt/data\n$DATA_DIR for 2.x and 3.x = /data\n\n```bash\n$DATA_DIR/UDMP-Failover-Telegram-Notifications/failover-notifications.sh\n```\n\n### Config\n\n| Parameters             | Description                                                       |\n| ---------------------- | ----------------------------------------------------------------- |\n| telegram_bot_API_Token | Telegram Bot API Token                                            |\n| telegram_chat_id       | Chat ID of the Telegram Bot                                       |\n| echo_server_ip         | IP of a server to test what interface is active (Default 1.1.1.1) |\n| run_interval           | Interval to run a failover check (Default 60 seconds)             |\n\n## Uninstall\n\nDelete the **UDMP-Failover-Telegram-Notifications** folder\n\n```bash\nrm -rf $DATA_DIR/UDMP-Failover-Telegram-Notifications\n```\n\nDelete on boot script file\n\n```bash\nrm -rf $DATA_DIR/on_boot.d/99-failover-telegram-notifications.sh\n```\n\n## Usage\n\nAt boot the script with create a cronjob that will run once. This is done to prevent boot blocking.\n\nManual run to test notifications:\n\n```bash\n$DATA_DIR/UDMP-Failover-Telegram-Notifications/failover-notifications.sh\n```\n\n**It's strongly recommended to perform a reboot in order to check the on boot initialization of the notifications**\n\n\u003c!-- --- --\u003e\n\n[amz-udm-pro-url]: https://amzn.to/3J4fezk 'Amazon Unifi UDM Pro'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffire1ce%2Fudm-failover-telegram-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffire1ce%2Fudm-failover-telegram-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffire1ce%2Fudm-failover-telegram-notifications/lists"}