How to detect specific dates (daylight savings) with cron+ node

I know it should be easy, but I'm not that smart.

I want to get cron+ (as an example) to tell me when 2 events happen.
Daylight Savings - Start and Daylight Savings - End
Starting: 02:00 First Sunday of October.
End: 02:00 First Sunday of April.

The exact time is not essential.

This is the best I can do so far:
0 0 9 1,7 OCT SUN *
But that isn't showing me what I want in it's decoder pop up.
Its saying October 1 to 7 and on Sunday.
06:00 would suffice. But I don't know how to make the template to give that.

Thanks in advance.

OK, is this it?

[{"id":"7b296738.fd4788","type":"cronplus","z":"65c9b63cb09879a0","name":"Monthly","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"schedule1","payloadType":"str","payload":"SUMMER","expressionType":"cron","expression":"0 0 9 * OCT SUN#1 * ","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"schedule2","topic":"schedule2","payloadType":"str","payload":"NORMAL","expressionType":"cron","expression":"0 0 9 * APR SUN#1 * ","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":3420,"y":170,"wires":[[]]}]

Just want to check I understand it all.

0 0 2 ? 10 SUN#1 * - Starting: 02:00 First Sunday of October
0 0 2 ? 4 SUN#1 * - End: 02:00 First Sunday of April.

There is an example that would get you close...

Also, there is the expression builder

1 Like


In the node example I posted the ? was a *.

Yet it says it will do the same....

Would you mind looking at the node I posted and check that - please.

Just to follow on that...

Watching your movie....

easy expression maker... Nice. But if I have the basic thing I want and then click on it, I get a very different screen.
(Ok, not your node - is it? - but that also is throwing me)

Screenshot from 2021-10-03 19-11-36

Screenshot from 2021-10-03 19-11-45

Screenshot from 2021-10-03 19-11-50

(Ok.... Not the latest version of the node.... Updating now.)
Only to save me (maybe) having to repost.....

Hang on.

* means every day and ? means don't care/unspecified

So when you use * it will execute every day - HOWEVER - in this instance, * and ? are irrelevant because SUN#1 will limit the schedule to the first Sunday.

1 Like

I am stupid and the subtle difference isn't getting through.

Rock is not exactly accommodating to absorbing things. :wink:

Again: Thanks.

1 Like

Ah! When the pop up opens, I have to select MONTH in the one I get/see/showed you.

Then it all falls into place.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.