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

Help with shutdown #30

Closed
chrispi68 opened this issue Feb 9, 2021 · 2 comments
Closed

Help with shutdown #30

chrispi68 opened this issue Feb 9, 2021 · 2 comments
Labels
support how-to or assistance with operation

Comments

@chrispi68
Copy link

Hi,

I try to shutdown OctoPrint (RasPi) via MQTT. I set up a topic and OctoPrint seems to receive the MQTT message and shows the PopUp message. But it does not shutdown. I use these parameters:

REST API: /api/system/commands/core
REST Parameters: { "command": "shutdown" }

I also tried "/api/system/commands", "/api/system/" but it did not work. The user for the API key has "SYSTEM" rights.

Can someone point me to the right direction?

Best regards
Christoph

@jneilliii
Copy link
Owner

I think your API endpoint is wrong. I think it should be /api/system/commands/core/shutdown and your REST parameters would need to be { "source":"core", "action":"shutdown" }.

@jneilliii jneilliii added the support how-to or assistance with operation label Feb 9, 2021
@chrispi68
Copy link
Author

Thank you, this worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support how-to or assistance with operation
Projects
None yet
Development

No branches or pull requests

2 participants