June 12, 2016
Description
My goal was to cut off ac power after printing ends...
I think this is not the best or easiest way (the easiest way is to replace the power supply with an ATX one, i suppose...)...
But i bought this hardware some time ago for personal arduino experiments, and my rpi 1 b+ was unused from months.... so... that's my project...
When raspberry Pi (with octoprint installed) start, automatically run a script and it short the contact's relè, so the printer ac power was enabled.
when the printing job ends, a octoprint plugin named "AutomaticShutdown" do a power off and the relè go off....
thats it...
You can find releon.py script in the download list...
sry for my bad english ;-)
License:
Creative Commons - Attribution