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

Show Battery Status on Battery Powered Devices in Monitoring #26456

Closed
9 of 17 tasks
ghost opened this issue Apr 8, 2021 · 1 comment
Closed
9 of 17 tasks

Show Battery Status on Battery Powered Devices in Monitoring #26456

ghost opened this issue Apr 8, 2021 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement

Comments

@ghost
Copy link

ghost commented Apr 8, 2021

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe.
It seems that serverinfo repo is not active so I submit it here.
I host my NC on a battery powered device. I have to mind the battery level for fear that it may go poweroff.
However, to make it more durable, it's headless and the X11 is not enabled by default, which means I need another solution to check the battery status.

Describe the solution you'd like

  • Display the battery capacity by reading /sys/class/power_supply/*/capacity.
    • Multi battery support? I have only mono battery devices so I cannot debug it.
  • Detect charging status by reading /sys/class/power_supply/*/status.
  • BSD support?
  • Monitor the battery usage by displaying a chart.
    • Cron background jobs.
    • Migration and creation of the new table oc_serverinfo_battery.
  • API support.
    • What sort of useful data should the API respond?
  • Warn admin when battery low.
    • How low? 25%? 50%?
    • Drop app.php and use new Application.php.
  • L10N support.
  • UI Improvements.
    • Make the chart pretty.
    • Draw new battery icons or grab some free assets.
    • Add a live battery icon that changes with the battery capacity.

Screenshot

0
1
2

@ghost ghost added 0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement labels Apr 8, 2021
@kesselb
Copy link
Contributor

kesselb commented Apr 9, 2021

Duplicate of nextcloud/serverinfo#290

@kesselb kesselb marked this as a duplicate of nextcloud/serverinfo#290 Apr 9, 2021
@kesselb kesselb closed this as completed Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement
Projects
None yet
Development

No branches or pull requests

1 participant