Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/sleeplog/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
0.19: Write sleep state into health event's .activity field
0.20: Increase default sleep thresholds, tweak settings to allow higher ones to be chosen
0.21: Use HRM data is polling is enabled, and add appropriate thresholds in settings. Change settings to feel more intuitive, rather than copied settings in different pages.
0.22: Fix bug with HRM threshold not updating
4 changes: 2 additions & 2 deletions apps/sleeplog/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ if (global.sleeplog.conf.enabled) {
if(data.hrm){

if (!Bangle.isCharging()) {
if (data.heartRate <= global.sleeplog.conf.hrDeepTh) {
if (data.heartRate <= global.sleeplog.conf.hrmDeepTh) {
data.status = 4; // deep sleep
} else if (data.heartRate <= global.sleeplog.conf.hrLightTh) {
} else if (data.heartRate <= global.sleeplog.conf.hrmLightTh) {
data.status = 3; // light sleep
} else {
data.status = 2; // awake
Expand Down
4 changes: 2 additions & 2 deletions apps/sleeplog/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"id":"sleeplog",
"name":"Sleep Log",
"shortName": "SleepLog",
"version": "0.21",
"description": "Log and view your sleeping habits. This app uses built in movement calculations, or HRM data is present. View data from Bangle, or from the web app.",
"version": "0.22",
"description": "Log and view your sleeping habits. This app uses built in movement calculations, or HRM data, if enabled. View data from Bangle.js, or from the web app.",
"icon": "app.png",
"type": "app",
"tags": "tool,boot,health",
Expand Down