System commands through the web ui
I've moved over from octoprint and the only thing I miss so far is being able to invoke system commands. Ie I used to use the gpio command to turn on/off a relay. I could run this command through a button in the octoprint webui.
I also would use things like curl commands to connect to other web services to do something when a print was done or canceled.
So is there anything like this in repetier server?
I also would use things like curl commands to connect to other web services to do something when a print was done or canceled.
So is there anything like this in repetier server?
Comments
I have my printer connected to a Z-wave breaker and I can turn on and off my printer by calling the Domoticz API (Domoticz running on other Pi 3) using curl or wget. My printer does not have PS_ON. The board on my printer will stay on with the LCD on and dim text, powered by the Raspberry Pi's USB-port. Because of that I kill the power supply to the USB-devices with "sudo hub-ctrl -h 0 -P 2 -p 0" (-p 1 for power on). This works good but it kills power to all USB-devices (except ethernet), the usb camera too so I call killall for mjpeg_streamer before hub-ctrl to get rid of the segfault errors in dmesg when camera looses power. Will the system try to restart mjpeg_streamer all the time or is there any command that I can run to make repetier-server to not try to restart the webcam service when printer is off? Also, how do I send gcodes using the extcommands.xml? I want to home all before I kill power and usb.