I just finished my first rpi project and I wanted to share it. I made a clock that works as usual until a production website runs into problems. Then intead of showing time, it blinks continuously to draw my attention to the problem. The website uses "normal.css" if everything is ok and "hot.css" if there is a problem. So the clock looks at the name of the css file the website is using and acts accordingly.

I don't know much python so I recyled example code. Improvements or comments are welcome. Here is the /home/pi/clock.py I created:

After this I created a cron job to make sure that the script above is running and to restart it if it is not working. Since the only python program running in this rpi0 is the above clock script, the restart script simply looks if any python program is running and if there is none, restarts the clock script. Here is /home/pi/restart.sh I created: