We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4208ff commit 1679f89Copy full SHA for 1679f89
apps/sleeplog/boot.js
@@ -155,7 +155,7 @@ if (global.sleeplog.conf.enabled) {
155
// check if global variable accessable
156
if (!global.sleeplog) return new Error("sleeplog: Can't process health event, global object missing!");
157
// check if movement is available
158
- if (!data.movement) return;
+ if (!data.movement&&!data.bpm) return;
159
// add timestamp rounded to 10min, corrected to 10min ago
160
data.timestamp = data.timestamp || ((Date.now() / 6E5 | 0) - 1) * 6E5;
161
// add preliminary status depending on charging and movement thresholds
0 commit comments