Open ahokami opened 4 years ago
Hi
There is a automatic shutdown plugin available which shuts down your system. This will trigger the plugin to switch power off. But unfortunately there is a bug #17 and it does not reliable.
I could implement the same function as in the automatic shutdown plugin and trigger the switch bevore issue the system shutdown command.
Or do you wish the functionality to Power off without shutting down Octoprint bevore? This is only recomended if you not switch the power of your Octoprint Hardware too.
Hi,
Thank your for your answer. My PI isn't plugged to the mystromSwitch i want it to keep running. So only the printer need to be powered off (so only the Switch).
The idea is to power off my printer automaticaly when it finished a job to save unecessary power consumption. (Usefull on night prints or when i can't check it manualy).
Do you think that you can implement that ?
(by the way sorry for my bad english...)
Alright nice feature idea. I will implement this with the option to shutdown raspberry pi as well or not. Selectable over Plugin settings.
I would be also very intressted in this feature.
Hello, I'm very interested in this feature, are you going to add it?
Hi, will add this feature its still in progress
Great plugin, thanks a lot.
I am also very interested. My pi runs 24/ also for other automation tasks, but I would like to turn off printers power after printjob had been finished.
There are two options now. Only switch the Relais or Shutdown Octoprint and Switch the Relais. Checkboxes for autoshutdown are per default not checked. Feature need to be enabled for each print! I will implement a remember feature later
seems not to work for me. What do you need to debug? Keeps running after print is finished. My raspy runs 24/7 but I want to stop the printer after the print.
Hi, please send me the screenshot of your mystrom configuration
Then i also need the logfile from that day. Here a description where you can find the log files. https://community.octoprint.org/t/where-can-i-find-octoprints-and-octopis-log-files/299
There are timeouts in the log, however I can toggle the switch manually without issues.
Hi I thanks for providing the informations.
Two things: It seems that your wifi signal is weak for the printer or the switch. That causes many Timeout errors. If this happens the Plugin retries each command 3 times. After 3 failures the command is ignored. But this is not what happend in your case.
Your problem is that i have not defined a shutdown Command in Octoprint Settings. Add sudo shutdown -h now
and the automatic switch off will work. In your case you have defined to switch only the relais of and not shutdown the pi. The problem ist that the check for the shutdowncommand is done in both cases.
I see a lot of octoprint.plugins.mystromswitch - WARNING - systemShutdownCommand is not defined. Aborting shutdown...
messages in the logfile.
Hi,
Do you think it's possible to add a feature that automaticaly poweroff the switch when a print job is finished ?
Thanks