alexwbaule / telegramopenwrt

Telegram Scripts for OpenWrt/Lede Project
Apache License 2.0
114 stars 42 forks source link

Push notifications to a Telegram bot #31

Open hova888 opened 4 months ago

hova888 commented 4 months ago

Hello, help create a plugin or script for openwrt that sends Push notifications to a Telegram bot when the connection is updated from the WAN interface.

alexwbaule commented 1 month ago

Hi @hova888 ,

It's simple.

Get the get_ip plugin on another bash script, in a while. Get the IP every 1 min, save it on a variable. In the next run, compare the IP and if is different, calls the telegram_sender script, with the message. Or even better, you can configure a ddns on your router. (Dynamic DNS).

I'm using duck DNS.