Issue calling a script #496

Open
opened 2023-01-18 15:11:29 +00:00 by DiP-ER · 0 comments
DiP-ER commented 2023-01-18 15:11:29 +00:00 (Migrated from github.com)

I'm trying to call a script to control PSU control but the following line seems to cause issues. Of course, the correct API key and server address has been changed.

curl -s -H "Content-Type: application/json" -H "X-Api-Key: YOUR_API_KEY" -X POST -d '{ "command":"turnPSUOn" }' http://YOUR_OCTOPRINT_SERVER/api/plugin/psucontrol

I created a script to touch a file which works, but doesn't like the above line.

I've read running scripts have been hit or miss. Any one have any insight?

I'm trying to call a script to control PSU control but the following line seems to cause issues. Of course, the correct API key and server address has been changed. curl -s -H "Content-Type: application/json" -H "X-Api-Key: YOUR_API_KEY" -X POST -d '{ "command":"turnPSUOn" }' http://YOUR_OCTOPRINT_SERVER/api/plugin/psucontrol I created a script to touch a file which works, but doesn't like the above line. I've read running scripts have been hit or miss. Any one have any insight?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Gandalf/OctoPrint-Enclosure#496