[sleeplogalarm] Correct times in sleeplog.trigger

master
storm64 2022-11-17 09:33:00 +01:00
parent 8d54208ade
commit 550b95d969
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ exports = {
// insert sleeplogalarm conditions and function
sleeplog.trigger.sleeplogalarm = {
from: settings.time - settings.earlier * 6E4,
to: settings.time - 1,
from: this.time - settings.earlier * 6E4,
to: this.time - 1,
fn: function (data) {
// execute trigger function if on light sleep or awake
if (data.status === 3 || data.status === 2)