node-red-contrib-sun-position icon indicating copy to clipboard operation
node-red-contrib-sun-position copied to clipboard

Clock-Timer

Open gerribaldi opened this issue 3 years ago • 5 comments

Hi,

is there a way to setup the clock timer in a way like this:

Start 08.00 - Stop 09.00; payload 1 Start 13.00 - Stop 15:00; payload 3 Start 20:15 - Stop 21:00; payload 1

Or do i need to set up a single within-time unit for each time which i want to switch something?

Regards gerribaldi

gerribaldi avatar Jun 28 '21 19:06 gerribaldi

maybe in node Red to use the Switch Node?

syswombat avatar Jul 26 '21 21:07 syswombat

Ah.... Yes, that could be an idea. Thanks for the tip

gerribaldi avatar Jul 30 '21 20:07 gerribaldi

The clock timer is more likely to output a certain payload at certain times.

So it could be at 08:00 -> payload 1 at 09:00 -> payload 2 at 13:00 -> payload 3 at 15:00 -> payload 4 ...

The within-time node can currently only pass the given message with its payload to a route based on the current time. There is a feature request (#292), that the payload could be modified if the message passes within time or not.

Hypnos3 avatar Aug 03 '21 14:08 Hypnos3

To realize this with clock timer i need to start setting up the certain times from midnight am to midnight pm?

like for example 0:01 -> payload 2 8:01 -> payload 4 13:01 -> payload 5 14:01 -> payload 2 22:22 -> payload 8

And after midnight pm it starts again with 0:01 or?

gerribaldi avatar Aug 30 '21 19:08 gerribaldi

yes, this is possible.

Hypnos3 avatar Sep 12 '21 21:09 Hypnos3