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

Implement Reboot/Poweroff of pi from within MYC #450

coderpop opened this issue May 9, 2018 · 1 comment

Implement Reboot/Poweroff of pi from within MYC #450

coderpop opened this issue May 9, 2018 · 1 comment


Copy link

@coderpop coderpop commented May 9, 2018

As per forum post request.....

Implement this feature by executing direct Linux command. Add an API to execute OS commands and provide an example to add custom buttons on the dashboard.


This comment has been minimized.

Copy link

@jkandasa jkandasa commented Jun 30, 2018

@coderpop Support included in the SNAPSHOT version,

Add OS Reboot and Date button on the dashboard.


Select OS Commands from widget list,

Update button details as follows,

If we enabled confirmation for a button, will be displayed as follows, Here it is reboot button

Button JSON content:

    "name": "<i class='fa fa-power-off'></i>",
    "os": "linux",
    "command": "reboot",
    "btnType": "danger",
    "confirmation": true
    "name": "Date",
    "os": "linux",
    "command": "date"
Supported fields:
  • name - (Mandatory) Name of the button. can be in the form of HTML also. HTML or icons(recommended: font awesome icons)
  • os - (Optional) Operating System, supports, linux and common. If we leave, will be considered as common.
  • btnType - (Optional) can be any one of value in the list [default, primary, success, info, warning, danger] when we leave this field field as blank, default will be selected. Each value give
  • confirmation - (Optional) If you want to confirm before execute this command. Will be good to add on reboot, poweroff commands. Default: false.
@jkandasa jkandasa closed this in 5c85639 Jun 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.