kantlivelong / OctoPrint-PSUControl

Smart control of your power supply via GPIO, GCODE Command, System Command, or variety of sub-plugins.
GNU Affero General Public License v3.0
203 stars 113 forks source link

[Feature Request] - The ability to execute System Command on power on #238

Open JesNoFear opened 2 years ago

JesNoFear commented 2 years ago

FYI URL https://feathub.com/kantlivelong/OctoPrint-PSUControl isn't resolving so posting here

So what I am trying to accomplish is this using PSUControl, switch a GPIO on to power the PSU's (Covered by RPi.GPIO) in doing that, my USB hub will power on and I will need to run "sudo systemctl restart webcamd" to get my cameras working. it would be nice if you could execute a system command just like you can trigger the GCODE script.

Currently in my GCODE Script I have "FIRMWARE_RESTART" and reading though other posts I installed the "https://github.com/kantlivelong/OctoPrint-GCodeSystemCommands" but it seems to only accept numeric codes, not the "FIRMWARE_RESTART" command