Script used with SatNOGS (https://satnogs.org/) ground stations to notify the owner via email when it is failing to pick up signals.
The main script is checkSignalStatus.py, when run it will output logs to checkSignalStatus.log - currently it writes to SatNOGSNotifier/checkSignalStatus.log on the assumption that you are running it in the home folder.
I suggest regularly running this script using crontab with this cron job NOTE: it needs to be run more regularly than MAX_ALLOWED_TIME_SINCE_REBOOT_S or it won't stop trying to reboot and just send you an email
30 */12 * * * /bin/python3 /home/{your username}/SatNOGSNotifier/checkSignalStatus.py
Rename the file "privateSettingsTEMPLATE.py" to "privateSettings.py" and fill in your information before trying to run the program.
The email code I used was based on this guide:
https://towardsdatascience.com/how-to-easily-automate-emails-with-python-8b476045c151
You can follow the beginning of it (Step 1) to learn how to get your GMAIL_LOGIN_KEY value