Skip to content

Add uptime to sensors#13

Open
mrsydster wants to merge 4 commits intoBELABOX:ws_nodejsfrom
mrsydster:stream-runtime
Open

Add uptime to sensors#13
mrsydster wants to merge 4 commits intoBELABOX:ws_nodejsfrom
mrsydster:stream-runtime

Conversation

@mrsydster
Copy link
Contributor

@mrsydster mrsydster commented Sep 7, 2022

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


/* 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