Router Watchdog script for Raspberry Pi using rpi-rf.
This script checks periodically a list of hosts and tries to connect to them, either via HTTP request or ICMP ping.
If there is repeatedly no working connection detected, the Raspberry Pi uses an 433Mhz sender to first disable and then re-enable a wireless socket.
cd router_watchdog/
sh install_dependencies.sh
python3 router_watchdog.py
Create a soft-link to systemd directory:
sudo ln -sf $(/bin/readlink -f router-watchdog.service) /etc/systemd/system/router-watchdog.service
sudo systemctl daemon-reload
sudo systemctl enable router-watchdog.service
sudo systemctl start router-watchdog.service
python3 -m pip freeze > requirements.txt