I want to turn on LED when my printer is off and no gcode´s can be sent.
I thought i could realize this through system commands drop down. But always i try octoprint is crashing and i have to reboot th Pi4 and delte the system command again.
I can run it through ssh but not know if it is not possible to run curl through system commands or there is a failure in my setup.
The command is: curl --header "Content-Type: application/json" --header "X-Api-Key: YOURAPIKEY" --request POST --data '{"command": "toggle_lights"}' http://127.0.0.1/api/plugin/ws281x_led_status
I tried it as curl, python and bash. All of the work via ssh connection but not system command button.
I used abolute paths as well.