File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 15150.17: Minor code improvements
16160.18: Add back as a function to prevent translation making it a menu entry
17170.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
Original file line number Diff line number Diff 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} ;
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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
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 => {
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 => {
You can’t perform that action at this time.
0 commit comments