sleeplog 0.20: Increase default sleep thresholds, tweak settings to allow higher ones to be chosen
parent
8e537b1af8
commit
1c69208886
|
|
@ -15,3 +15,4 @@
|
|||
0.17: Minor code improvements
|
||||
0.18: Add back as a function to prevent translation making it a menu entry
|
||||
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
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ global.sleeplog = {
|
|||
// threshold settings
|
||||
maxAwake: 36E5, // [ms] maximal awake time to count for consecutive sleep
|
||||
minConsec: 18E5, // [ms] minimal time to count for consecutive sleep
|
||||
deepTh: 100, // threshold for deep sleep
|
||||
lightTh: 200, // threshold for light sleep
|
||||
deepTh: 150, // threshold for deep sleep
|
||||
lightTh: 300, // threshold for light sleep
|
||||
wearTemp: 19.5, // temperature threshold to count as worn
|
||||
}, require("Storage").readJSON("sleeplog.json", true) || {})
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"id":"sleeplog",
|
||||
"name":"Sleep Log",
|
||||
"shortName": "SleepLog",
|
||||
"version": "0.19",
|
||||
"version": "0.20",
|
||||
"description": "Log and view your sleeping habits. This app uses built in movement calculations. View data from Bangle, or from the web app.",
|
||||
"icon": "app.png",
|
||||
"type": "app",
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@
|
|||
// threshold settings
|
||||
maxAwake: 36E5, // [ms] maximal awake time to count for consecutive sleep
|
||||
minConsec: 18E5, // [ms] minimal time to count for consecutive sleep
|
||||
deepTh: 100, // threshold for deep sleep
|
||||
lightTh: 200, // threshold for light sleep
|
||||
deepTh: 150, // threshold for deep sleep
|
||||
lightTh: 300, // threshold for light sleep
|
||||
wearTemp: 19.5, // temperature threshold to count as worn
|
||||
// app settings
|
||||
breakToD: 12, // [h] time of day when to start/end graphs
|
||||
|
|
@ -324,9 +324,9 @@
|
|||
},
|
||||
/*LANG*/"Deep Sleep": {
|
||||
value: settings.deepTh,
|
||||
step: 1,
|
||||
step: 10,
|
||||
min: 30,
|
||||
max: 200,
|
||||
max: 500,
|
||||
wrap: true,
|
||||
noList: true,
|
||||
onchange: v => {
|
||||
|
|
@ -338,7 +338,7 @@
|
|||
value: settings.lightTh,
|
||||
step: 10,
|
||||
min: 100,
|
||||
max: 400,
|
||||
max: 800,
|
||||
wrap: true,
|
||||
noList: true,
|
||||
onchange: v => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue