https://github.com/pb-/stay-online
Makes sure your Raspberry Pi stays online
https://github.com/pb-/stay-online
internet raspberry-pi watchdog wifi
Last synced: 2 months ago
JSON representation
Makes sure your Raspberry Pi stays online
- Host: GitHub
- URL: https://github.com/pb-/stay-online
- Owner: pb-
- Created: 2020-11-10T20:52:29.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-18T21:36:48.000Z (over 5 years ago)
- Last Synced: 2025-06-20T10:48:40.348Z (about 1 year ago)
- Topics: internet, raspberry-pi, watchdog, wifi
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stay-online.py
Makes sure your Raspberry Pi stays online. WiFi stacks can be a bit funny sometimes, so it's good to invoke an old German proverb,
> Alles gut macht der Reboot.
This program tests for a usable internet connection, defined as _being able to establish a TCP connection with FAANG_, and reboots the machine if that repeatedly fails.
## Installation
Requires Python 3.
Move `stay-online.py` to `/home/pi/stay-online.py` and install the service unit with:
```
sudo cp stay-online.service /etc/systemd/system
sudo systemctl enable stay-online
```