Skip to content

Commit 1c69208

Browse files
committed
sleeplog 0.20: Increase default sleep thresholds, tweak settings to allow higher ones to be chosen
1 parent 8e537b1 commit 1c69208

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

apps/sleeplog/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@
1515
0.17: Minor code improvements
1616
0.18: Add back as a function to prevent translation making it a menu entry
1717
0.19: Write sleep state into health event's .activity field
18+
0.20: Increase default sleep thresholds, tweak settings to allow higher ones to be chosen

apps/sleeplog/boot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ global.sleeplog = {
1111
// threshold settings
1212
maxAwake: 36E5, // [ms] maximal awake time to count for consecutive sleep
1313
minConsec: 18E5, // [ms] minimal time to count for consecutive sleep
14-
deepTh: 100, // threshold for deep sleep
15-
lightTh: 200, // threshold for light sleep
14+
deepTh: 150, // threshold for deep sleep
15+
lightTh: 300, // threshold for light sleep
1616
wearTemp: 19.5, // temperature threshold to count as worn
1717
}, require("Storage").readJSON("sleeplog.json", true) || {})
1818
};

apps/sleeplog/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id":"sleeplog",
33
"name":"Sleep Log",
44
"shortName": "SleepLog",
5-
"version": "0.19",
5+
"version": "0.20",
66
"description": "Log and view your sleeping habits. This app uses built in movement calculations. View data from Bangle, or from the web app.",
77
"icon": "app.png",
88
"type": "app",

apps/sleeplog/settings.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
// threshold settings
1212
maxAwake: 36E5, // [ms] maximal awake time to count for consecutive sleep
1313
minConsec: 18E5, // [ms] minimal time to count for consecutive sleep
14-
deepTh: 100, // threshold for deep sleep
15-
lightTh: 200, // threshold for light sleep
14+
deepTh: 150, // threshold for deep sleep
15+
lightTh: 300, // threshold for light sleep
1616
wearTemp: 19.5, // temperature threshold to count as worn
1717
// app settings
1818
breakToD: 12, // [h] time of day when to start/end graphs
@@ -324,9 +324,9 @@
324324
},
325325
/*LANG*/"Deep Sleep": {
326326
value: settings.deepTh,
327-
step: 1,
327+
step: 10,
328328
min: 30,
329-
max: 200,
329+
max: 500,
330330
wrap: true,
331331
noList: true,
332332
onchange: v => {
@@ -338,7 +338,7 @@
338338
value: settings.lightTh,
339339
step: 10,
340340
min: 100,
341-
max: 400,
341+
max: 800,
342342
wrap: true,
343343
noList: true,
344344
onchange: v => {

0 commit comments

Comments
 (0)