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

Add uptime to sensors #13

Open
wants to merge 4 commits into
base: ws_nodejs
Choose a base branch
from

Conversation

mrsydster
Copy link
Contributor

@mrsydster mrsydster commented Sep 7, 2022

A system uptime timer will be shown at the bottom of the sensors.

@@ -1258,6 +1258,7 @@ function notificationSendPersistent(conn) {

/* Hardware monitoring */
let sensors = {};
const systemStartTime = Date.now();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be incorrect if belaUI restarts, for example after an OTA update. I'll modify the code to parse /proc/uptime instead

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

Successfully merging this pull request may close these issues.

2 participants