[sleeplogalarm] Correct times in sleeplog.trigger
parent
8d54208ade
commit
550b95d969
|
|
@ -59,8 +59,8 @@ exports = {
|
||||||
|
|
||||||
// insert sleeplogalarm conditions and function
|
// insert sleeplogalarm conditions and function
|
||||||
sleeplog.trigger.sleeplogalarm = {
|
sleeplog.trigger.sleeplogalarm = {
|
||||||
from: settings.time - settings.earlier * 6E4,
|
from: this.time - settings.earlier * 6E4,
|
||||||
to: settings.time - 1,
|
to: this.time - 1,
|
||||||
fn: function (data) {
|
fn: function (data) {
|
||||||
// execute trigger function if on light sleep or awake
|
// execute trigger function if on light sleep or awake
|
||||||
if (data.status === 3 || data.status === 2)
|
if (data.status === 3 || data.status === 2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue