jensrossbach / node-red-contrib-chronos

Time-based Node-RED scheduling, repeating, queueing, routing, filtering and manipulating nodes
https://jensrossbach.github.io/node-red-contrib-chronos
MIT License
28 stars 1 forks source link

time filter with multiple outputs #110

Closed golfvert closed 1 year ago

golfvert commented 1 year ago

Hello, Thanks for the great set of nodes!! Like the switch node where we have multiple output, I would suggest in the time filter node to have one output per condition. Typically, I have various time range say 0 -> 6, 6 -> 12 and 12 -> 0. I would like to have one output per range. At the moment, I'd need three time range node, one with each between. At the moment we have logical or and logical and, it would be another option (not sure about the name...) . Thanks!

jensrossbach commented 1 year ago

Hi @golfvert, why don't you use a time switch node for your use case? I don't see the benefit of adding multiple outputs to the time filter node as this would actually make this node the same as the time switch node.

golfvert commented 1 year ago

My apologies. I didn't realise it was doable like that!!

golfvert commented 1 year ago

Wrong request ;) Thanks for the quick answer!!