Thanks for sharing!
Ill probably borrow a few code snippets to save me the stress when I start my Pi project.... if that's fine by you. 99% of what I do stays open source FYI.
I originally planned on making a generator monitoring system for my remote mining operations. When power goes out, it will turn on a generator, swap over the power to the miners and boot everything back up; then once power is found on the mains again, it will kill the generator and switch over...
The secondary function was going to be a "rig resetter" of sorts...
but Mine can't be dependent on an internet connection for auto-rebooting rigs, because there are unique conditions that add hiccups in my ability to remotely send reboot commands.
My secondary project was a open-source rig monitor/reset-er. The functionality should be very easy, and all I would need to do is make the webpage on the PI to interface with the system scripts I have in mind.
Good work!