Steve-Mcl / node-red-contrib-cron-plus

A flexible scheduler node for Node-RED (featuring full dynamic control, sunrise/sunset by location and Timezone support)
MIT License
45 stars 12 forks source link

Multiple cron schedules do not get dispatched #54

Closed sefininio closed 2 years ago

sefininio commented 2 years ago

Hello,

I'd like to create a schedule that fires an "on" event every 3 hours between 10:00 and 19:00 and an "off" event every 3 hours between 11:00 and 20:00, so: 10:00 "on", 11:00 "off" 13:00 "on", 14:00 "off" 16:00 "on", 17:00 "off" 19:00 "on", 20:00 "off"

I defined the Cron Plus node as follows:

image

The first schedule is dispatched just fine, every 3 hours between 10:00 and 19:59 with "on" payload. However, the second schedule, that should be dispatched every 3 hours between 11:00 and 20:59 with "off" payload does not get dispatched.

What did I do wrong?

sefininio commented 2 years ago

Never mind, I figured it out... I used "Off" instead of "off". The node works flawlessly!