|
|
|
@ -25,8 +25,8 @@ async function minuteCheck() {
|
|
|
|
|
.minutes(+alarm.alarmTime.split(':') [ 1 ])
|
|
|
|
|
let secDiff = alarmTime.diff(timeRN, 'seconds')
|
|
|
|
|
//
|
|
|
|
|
console.log(alarmTime.format('HH:mm'), secDiff)
|
|
|
|
|
if (secDiff > -5 && secDiff < 65) {
|
|
|
|
|
console.log(alarmTime.format("HH:mm"), secDiff)
|
|
|
|
|
if (alarmTime.format("HH:mm") == timeRN.format("HH:mm")) {
|
|
|
|
|
console.log("TRIGGER", alarm.alarmSchedulingMode)
|
|
|
|
|
let alarmTrigger = false
|
|
|
|
|
switch (alarm.alarmSchedulingMode) {
|
|
|
|
|