Skip to content

Router Watchdog script for Raspberry Pi using rpi-rf

Notifications You must be signed in to change notification settings

Bungeefan/router_watchdog

Repository files navigation

Router Watchdog

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.

Install

cd router_watchdog/

Install dependencies (in venv)

sh install_dependencies.sh

Run

Manually (without service)

python3 router_watchdog.py

Service

Setup service

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

Enable and start service

sudo systemctl enable router-watchdog.service
sudo systemctl start router-watchdog.service

Helpful resources:


Developer Notes:

Upgrade dependencies

python3 -m pip freeze > requirements.txt

About

Router Watchdog script for Raspberry Pi using rpi-rf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published