diff --git a/apps/sleeplog/settings.js b/apps/sleeplog/settings.js index 9bf37ed69..c11dbf291 100644 --- a/apps/sleeplog/settings.js +++ b/apps/sleeplog/settings.js @@ -13,6 +13,7 @@ minConsec: 18E5, // [ms] minimal time to count for consecutive sleep deepTh: 100, // threshold for deep sleep lightTh: 200, // threshold for light sleep + wearTemp: 27, // temperature threshold to count as worn // app settings breakToD: 12, // [h] time of day when to start/end graphs appTimeout: 0 // lock and backlight timeouts for the app @@ -345,6 +346,19 @@ 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": () => { settings.maxAwake = defaults.maxAwake; settings.minConsec = defaults.minConsec;