PSU Powered RasPi Repetier Server shut down via Alexa smart switch.
I have hard wired my Rasberry Pi 3b+ using a buck converter connected to my PRUSA PSU. I was wondering if there is if its possible for say......
1/ Shut down Repetier-Server via Pi Display or Web Interface.
2/ wait for hotend cool down.
3/ wait for a signal from the Pi to the Alexa smart switch.
4/ then smart switch turns plugs turns off plug to PRUSA PSU?
Writing this when I think of it would be difficult as the Raspberry Pi would have already shut down and there's no way to tell Alexa to shut down power to PRUSA? I guess it would have to be done on a timeout basis. i.E. Turn the power off 5 minutes after Repetier Server has powered down.
Thanks
1/ Shut down Repetier-Server via Pi Display or Web Interface.
2/ wait for hotend cool down.
3/ wait for a signal from the Pi to the Alexa smart switch.
4/ then smart switch turns plugs turns off plug to PRUSA PSU?
Writing this when I think of it would be difficult as the Raspberry Pi would have already shut down and there's no way to tell Alexa to shut down power to PRUSA? I guess it would have to be done on a timeout basis. i.E. Turn the power off 5 minutes after Repetier Server has powered down.
Thanks
Comments
2) Maybe
@waitForAllTemperatures maxDiff
Will wait for all set temperatures to be within the given difference. If maxDiff is omitted, the last or default value gets used. This will only prevent the running job from being executed while manual commands can still be send!
but problem is off is 0 which you will not reach so make maxDiff something like 40. Only useful in a automatic shutdown script.
3+4) Thats the problem. You can use then alexa to switch down main power but since pi is not running it can not do that. In other cases you would need some electronic with delay time to switch of main psu.
An alternative would be if there is some other always on device you can program. Then in shutdown script you could call that computer to disable switch with a delay.
https://github.com/ruedli/OctoPlugout?fbclid=IwAR0_cBPARbzvXP81dL1iI9Vh7VjBYcwzWkaFRgz2nXKG_Lqc8zNJHOjyuNU