string match
This commit is contained in:
parent
39c4669912
commit
bb9f4b26c2
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue