Skip to content

Add uptime to sensors#13

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

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

Conversation

@mrsydster

@mrsydster mrsydster commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

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

Comment thread belaUI.js

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

Copy link
Copy Markdown
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