{"repo":"annndruha/keenetic_wifi_telegram_logger","free":true,"listed":false,"github":"https://github.com/annndruha/keenetic_wifi_telegram_logger","clone":"git clone https://github.com/annndruha/keenetic_wifi_telegram_logger.git","description":"Send Telegram message when a device connected to Wi-Fi (Keenetic)","language":"Python","stars":11,"topics":["keenetic","keenetic-routers","logger","monitoring","wifi-logger","wifi-monitor"],"license":null,"category":"analytics","readme_excerpt":"Keenetic Wi-Fi/LAN clients Telegram logger README на русском языке Work only with Keenetic routers. Simple python script which sends you a Telegram message when a device connects or disconnects to Wi-Fi/LAN. Also sends message if router becomes unreachable or comes back online. Script use REST Keenetic-API. Machine on which this script is running must be located outside the network that you plan to monitor. The script ask router for list of clients every 5 seconds, but routers have a state update delay, so real refresh rate for device connect 20 seconds, for disconnect 1-10 minutes. How to run (on Linux server via Docker outside router network) 1. Clone repo and go to cloned folder: 2. Copy example .env-file as .env: 3. Change values in .env to you credentials as in copied file (Edit via nano etc.). Explanation: WIFI NAME - Human name of network for show in telegram message (Any value) WIFI HOST - Router domain WIFI LOGIN - Router web-interface login WIFI PASSWORD - Router web-interface password TG BOT TOKEN - Token for your bot from BotFather TG CHAT ID - Telegram id of the user who will receive notifications (Or group id) 4. Run container and detach: User notes A Telegram message consists of the following notations: Device connection mark as 🟢 symbol Device disconnection mark as 🔴 symbol Unregistered devices additionally mark with ⚠️ symbol If router became unreachable it marks with 🔥 symbol If router back online it marks with ✅ symbol Device name priority to show in mes","default_branch":null,"files":null,"tree":[],"storefront":"/r/annndruha","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/annndruha/keenetic_wifi_telegram_logger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}