Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue calling a script #496

Open
DiP-ER opened this issue Jan 18, 2023 · 0 comments
Open

Issue calling a script #496

DiP-ER opened this issue Jan 18, 2023 · 0 comments

Comments

@DiP-ER
Copy link

DiP-ER commented Jan 18, 2023

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant