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

How to reboot #80

Closed
flatsiedatsie opened this issue Jan 10, 2020 · 2 comments
Closed

How to reboot #80

flatsiedatsie opened this issue Jan 10, 2020 · 2 comments

Comments

@flatsiedatsie
Copy link
Contributor

The Power Settings add-ons has a reboot functionality. I changed it to use the internal api, per your request. But it doesn't seem to work anymore?

window.API.postJson('/system/actions', {action: 'restartSystem'}).catch(console.error);

@mrstegeman
Copy link
Contributor

mrstegeman commented Jan 10, 2020

Your URL is wrong. It should be /settings/system/actions.

(Sorry, just realized I told you wrong before.)

@flatsiedatsie
Copy link
Contributor Author

No problem! The odd thing is it seemed to work before :-D

flatsiedatsie added a commit to flatsiedatsie/power-settings that referenced this issue Jan 13, 2020
flatsiedatsie added a commit to flatsiedatsie/power-settings that referenced this issue Jan 13, 2020
flatsiedatsie added a commit to flatsiedatsie/addon-list that referenced this issue Jan 13, 2020
mrstegeman pushed a commit to WebThingsIO/addon-list that referenced this issue Jan 13, 2020
@mrstegeman mrstegeman added this to Done in WebThings Gateway Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants