Add wear temperature setting
parent
ff92b515b6
commit
c046fcd182
|
|
@ -13,6 +13,7 @@
|
||||||
minConsec: 18E5, // [ms] minimal time to count for consecutive sleep
|
minConsec: 18E5, // [ms] minimal time to count for consecutive sleep
|
||||||
deepTh: 100, // threshold for deep sleep
|
deepTh: 100, // threshold for deep sleep
|
||||||
lightTh: 200, // threshold for light sleep
|
lightTh: 200, // threshold for light sleep
|
||||||
|
wearTemp: 27, // temperature threshold to count as worn
|
||||||
// app settings
|
// app settings
|
||||||
breakToD: 12, // [h] time of day when to start/end graphs
|
breakToD: 12, // [h] time of day when to start/end graphs
|
||||||
appTimeout: 0 // lock and backlight timeouts for the app
|
appTimeout: 0 // lock and backlight timeouts for the app
|
||||||
|
|
@ -345,6 +346,19 @@
|
||||||
writeSetting();
|
writeSetting();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/*LANG*/"Wear Temperature": {
|
||||||
|
value: settings.w,
|
||||||
|
step: 0.5,
|
||||||
|
min: 20,
|
||||||
|
max: 40,
|
||||||
|
wrap: true,
|
||||||
|
noList: true,
|
||||||
|
format: v => v + "°C",
|
||||||
|
onchange: v => {
|
||||||
|
settings.wearTemp = v;
|
||||||
|
writeSetting();
|
||||||
|
}
|
||||||
|
},
|
||||||
/*LANG*/"Reset to Default": () => {
|
/*LANG*/"Reset to Default": () => {
|
||||||
settings.maxAwake = defaults.maxAwake;
|
settings.maxAwake = defaults.maxAwake;
|
||||||
settings.minConsec = defaults.minConsec;
|
settings.minConsec = defaults.minConsec;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue