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

[Feature] Shutdown button (and others) #39

Closed
normen opened this issue Mar 1, 2018 · 4 comments
Closed

[Feature] Shutdown button (and others) #39

normen opened this issue Mar 1, 2018 · 4 comments

Comments

@normen
Copy link

normen commented Mar 1, 2018

It would be nice to have a shutdown button for the whole computer as well. As many people use Raspberry PI computers without any physical power button the web interface would be an easy way to shut down the computer.

Other buttons could be added too for restarting etc. - maybe the whole thing could be a configuration option to extend the top bar with custom commands.

Thanks again for this awesome plugin.

@oznu
Copy link
Member

oznu commented Mar 16, 2018

This has been implemented in 3.3.0.

The extra actions menu will only show up on linux when not running in docker.

If you wish to customise the restart and shutdown commands you can add this to your config block:

{
  "platform": "config",
  "name": "Config",
  "port": 8080,
  "sudo": true,
  "linux": {
     "shutdown": "my custom shutdown command",
     "restart": "my custom restart command"
  }
}

@normen
Copy link
Author

normen commented Feb 15, 2020

I'm sorry but was the option to have custom commands removed? I'd like to set up a backup script I can start from config-ui-x.

Cheers!

@oznu
Copy link
Member

oznu commented Feb 15, 2020

The config example in my comment above to customise the restart and shutdown commands should still work.

https://github.com/oznu/homebridge-config-ui-x/blob/master/config.schema.json#L298

@normen
Copy link
Author

normen commented Feb 15, 2020

Sorry, I was under the impression that you could enter any command as well as shutdown/reboot, I'll make this a feature request then ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants