Hi
Ive written an Plugin for Octoprint Octoprint MyStrom Switch this Plugin integrates a wifi switch into Octoprint. This switch has an feature that allows to tell the switch turn off relais in xy seconds. This is very useful in combination with octopi. With that i can shutdown the printer and after 60 seconds if the raspberry pi is shutted down it turns off power as well.
There is one Problem if I issue the command sudo shutdown -h now the network connection is shutted down bevore the plugin gets the shutdown event. Therefore the wifiswitch wont turn off.
see this Issue
The fix is to add # Required-Stop: networking to the init script
I think this could be useful for other plugins too.
Hi
Ive written an Plugin for Octoprint Octoprint MyStrom Switch this Plugin integrates a wifi switch into Octoprint. This switch has an feature that allows to tell the switch turn off relais in xy seconds. This is very useful in combination with octopi. With that i can shutdown the printer and after 60 seconds if the raspberry pi is shutted down it turns off power as well.
There is one Problem if I issue the command
sudo shutdown -h nowthe network connection is shutted down bevore the plugin gets the shutdown event. Therefore the wifiswitch wont turn off.see this Issue
The fix is to add
# Required-Stop: networkingto the init scriptI think this could be useful for other plugins too.