1
0
Fork 0

sleepphasealarm fixes

Fix dated events alarm on wrong date
master
Erik Andresen 2023-01-27 17:59:07 +01:00
parent 1abb3c84e5
commit 5f11e6dec1
3 changed files with 4 additions and 3 deletions

View File

@ -13,3 +13,4 @@
0.10: Fix: Do not wake when falling asleep 0.10: Fix: Do not wake when falling asleep
0.11: Minor tweaks 0.11: Minor tweaks
0.12: Support javascript command to execute as defined in scheduler 'js' configuration 0.12: Support javascript command to execute as defined in scheduler 'js' configuration
0.13: Fix dated events alarm on wrong date

View File

@ -10,7 +10,7 @@ const config = Object.assign({
disableAlarm: false, disableAlarm: false,
} }
}, require("Storage").readJSON(CONFIGFILE,1) || {}); }, require("Storage").readJSON(CONFIGFILE,1) || {});
const active = alarms.filter(a=>a.on); const active = alarms.filter(alarm => require("sched").getTimeToAlarm(alarm));
const schedSettings = require("sched").getSettings(); const schedSettings = require("sched").getSettings();
let buzzCount = schedSettings.buzzCount; let buzzCount = schedSettings.buzzCount;
let logs = []; let logs = [];

View File

@ -2,7 +2,7 @@
"id": "sleepphasealarm", "id": "sleepphasealarm",
"name": "SleepPhaseAlarm", "name": "SleepPhaseAlarm",
"shortName": "SleepPhaseAlarm", "shortName": "SleepPhaseAlarm",
"version": "0.12", "version": "0.13",
"description": "Uses the accelerometer to estimate sleep and wake states with the principle of Estimation of Stationary Sleep-segments (ESS, see https://ubicomp.eti.uni-siegen.de/home/datasets/ichi14/index.html.en). This app will read the next alarm from the alarm application and will wake you up to 30 minutes early at the best guessed time when you are almost already awake.", "description": "Uses the accelerometer to estimate sleep and wake states with the principle of Estimation of Stationary Sleep-segments (ESS, see https://ubicomp.eti.uni-siegen.de/home/datasets/ichi14/index.html.en). This app will read the next alarm from the alarm application and will wake you up to 30 minutes early at the best guessed time when you are almost already awake.",
"icon": "app.png", "icon": "app.png",
"tags": "alarm", "tags": "alarm",
@ -14,6 +14,6 @@
{"name":"sleepphasealarm.settings.js","url":"settings.js"}, {"name":"sleepphasealarm.settings.js","url":"settings.js"},
{"name":"sleepphasealarm.img","url":"app-icon.js","evaluate":true} {"name":"sleepphasealarm.img","url":"app-icon.js","evaluate":true}
], ],
"data": [{"name":"sleepphasealarm.json","storageFile":true}], "data": [{"name":"sleepphasealarm.json"}],
"interface": "interface.html" "interface": "interface.html"
} }