# UPDATE: V1.2.1 node-red-contrib-cron-plus scheduler (incl solar events and Timezone support)

**URL:** <https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686>\
**Category:** Share Your Nodes\
**Created:** [25 July 2019 11:54 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686 "2019-07-25T11:54:30Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [8 October 2019 19:24 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/63 "2019-10-08T19:24:42Z")

</div>

@afelix - I created something similar a while ago when a family member was ill (and I kept forgetting her meds!!)  
The biggest failing I found was that if I was busy - on phone, cooking, showering etc, I'd acknowledge the alert, but then a little later forget to give the meds... sound familiar??

I wanted to create (but never got around to it) an interface with a 'done' & 'snooze' button, so if I got distracted, the alert would sound again 10 minutes later, and re-occur until I pressed 'done'.

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [8 October 2019 19:46 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/64 "2019-10-08T19:46:04Z")

</div>

> [@Paul-Reed](#):
>
> I wanted to create (but never got around to it) an interface with a 'done' & 'snooze' button, so if I got distracted, the alert would sound again 10 minutes later, and re-occur until I pressed 'done'.

I can actually do that with Pushcut, but haven't gotten around yet to set it up properly. Setting an action to the alert that when clicking the "done" button/"snooze" button a message is POSTed back to Node-RED (would work as long as I'm local) to either acknowledge the action, or send it again 10 minutes later.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [8 October 2019 19:48 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/65 "2019-10-08T19:48:31Z")

</div>

> [@afelix](#):
>
> I can actually do that with Pushcut

That sounds ideal. I've never heard of Pushcut, but I'll check it out.

Ah, it's an app for apple lovers - no android version!

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [8 October 2019 20:23 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/66 "2019-10-08T20:23:54Z")

</div>

> [@Paul-Reed](#):
>
> Ah, it's an app for apple lovers - no android version!

It's an app specifically to connect push messages to Apple's own Shortcuts system, hence the name. So you can start Shortcuts running on your phone/tablet through a notification being send, where you are in control of which notifications and when. I use it with another Apple-only app: Pythonista

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [8 October 2019 23:09 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/67 "2019-10-08T23:09:07Z")

</div>

> [@afelix](#):
>
> would work as long as I'm local

With Telegram, you can do it both ways with a simple command.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 October 2019 14:17 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/68 "2019-10-20T14:17:35Z")

</div>

I finally got round to building a dashboard controlled demo...

[Dynamic cron schedules / timers via dashboard control](https://flows.nodered.org/flow/79a66966a6cc655a827872a4af794b94)

 ![2019-10-20_14-42-03](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/10ac0e5b7ab1b012827d3d84bf9945f3ecf9dcd7.gif)

Hopefully of some use to people

_(Apologies for spamming - I first replied to a another thread then realised I should have updated this thread first & simply posted a link to this entry - live and learn)_

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 October 2019 22:49 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/69 "2019-10-20T22:49:26Z")

</div>

## UPDATE V0.4.0 released & published in NPM

- Fix bug with some cron expressions not parsing correctly
- Improve editor layout
  - moved the dynamic cron description to a tooltip to reduce need for scrolling
  - maximized the schedule list size

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/3cc62e2b3c8b1e3c2530017ca248139200498984.png)

Should be in the [flow library](https://flows.nodered.org/node/node-red-contrib-cron-plus) and pallet soon

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [25 October 2019 13:46 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/70 "2019-10-25T13:46:20Z")

</div>

This is eithor a docup or a bug. Look at the time (I'm in the US east coast). It is 9:39 AM. The doc for the node says 0 0 12 \* \* \* means it will run everyday at noon, which is 2 hours and 20 minutes and some seconds away. However the yellow description area says it will next run in 22 hours and 20 minutes and a 27 seconds.

Something doesn't jib.

 ![cron-plus](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/6/6e7c2ebc5c29080bb23d4bdc06ceaf1daa5279a4.jpeg)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [25 October 2019 13:47 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/71 "2019-10-25T13:47:32Z")

</div>

Do you have the latest version because there were certainly timezone issues in the previous version

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [25 October 2019 13:51 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/72 "2019-10-25T13:51:09Z")

</div>

Sorry I should have added it is v0.4.0 - I upgraded after I saw the issue, restarted NR nand cleared the browsers cache and even used another browser. Same issue shows up.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 October 2019 17:40 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/73 "2019-10-25T17:40:11Z")

</div>

Where is node-red running and what is the timezone on that machine? -4h?

Also, what is the timezone where the browser is running?

Looks like a bug. Bah.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [25 October 2019 18:00 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/74 "2019-10-25T18:00:53Z")

</div>

> [@Steve-Mcl](#):
>
> Looks like a bug. Bah.

Friday bug tracking is Verboten!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 October 2019 18:20 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/75 "2019-10-25T18:20:36Z")

</div>

Just noticed localhost in browser address (so I know node-red and browser are on same machine)

So could you also tell me what version of nodejs and node-red please? Have a sneaky suspicion on something.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [25 October 2019 19:09 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/76 "2019-10-25T19:09:11Z")

</div>

Here you go Steve  
25 Oct 19:07:19 - [info] Node-RED version: v1.0.2  
25 Oct 19:07:19 - [info] Node.js version: v10.15.3  
25 Oct 19:07:19 - [info] Darwin 17.7.0 x64 LE  
25 Oct 19:07:23 - [info] Dashboard version 2.17.1 started at /ui

Running on a Mac macOS 10.13.6

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 October 2019 19:41 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/77 "2019-10-25T19:41:22Z")

</div>

And just to confirm, your Mac is set to GMT-4 right?

Oh and one other thing., If you don't mind, leave that flow in operation with the browser open and a debug node attached - I believe it will trigger at system time 12:00 (I hope anyway).

Or attach a flogger or file log or something so we can determine when it triggers.

Either way, it will give a head start.

Thanks for your support

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [25 October 2019 21:42 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/78 "2019-10-25T21:42:57Z")

</div>

yes it is set to GMT-4 - I'll leave it running overnight  
would it help if I changed my system clock and did some testing?

Also here are the settings with the Timezone option filled in  
 ![Timezone-America-New_York](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/9/983107bbc19156054233098e924b024254295e09.png)

and the Tmezone option empty

![Timezone-empty](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c353e1df1982f5f40f1c6de6c331cfc394910336.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [26 October 2019 15:08 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/79 "2019-10-26T15:08:05Z")

</div>

@Steve-Mcl  
Well it did finally fire, here is the debutg

```auto
10/26/2019, 8:00:00 AMnode: d63353cd.3ae53
noon : msg : Object
object
  cronplus: object
    triggerTimestamp: 1572091200000
    status: object
      type: "static"
      isRunning: true
      count: 1
      limit: 0 
      nextDescription: "in 1 day"
      nextDate: "2019-10-27T12:00:00.000Z"
      description: "At 12:00 PM"
    config: object
      name: "noon"
      expression: "0 0 12 * * *"
      payload: "noon"
      type: "str"
      limit: null
  topic: "noon" 
  payload: "noon"
  _msgid: "e8e42d3.fe32cd"

```

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [26 October 2019 20:03 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/80 "2019-10-26T20:03:16Z")

</div>

Hi.

So I'm still in no position to debug this but the notes and info will help when I get to it (likely a few days yet)

So that timestamp `1572091200000` equates to `Saturday, 26 October 2019 12:00:00` which is obviously correct however I assume it happened at 8am your time?

Timezones are sooooo confusing. Everything I've seen so far looks right (even your first screen shot is kinda correct (add 4h to your time and it's correct) but it's incorrect for you) dammit haha.

Thanks for all feedback so far. If you find anything else, let me know, otherwise I'll get back to you when I can.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [26 October 2019 22:05 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/81 "2019-10-26T22:05:44Z")

</div>

Yes it did happen at 8AM

> Timezones are sooooo confusing.

oh yeah it's mess. If you haven't seen it, you need to watch this video [https://www.youtube.com/watch?v=-5wpm-gesOY](https://www.youtube.com/watch?v=-5wpm-gesOY) 🤣

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [26 October 2019 22:43 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/82 "2019-10-26T22:43:01Z")

</div>

> [@zenofmud](#):
>
> you need to watch this video

His advice to "leave it to experts" is spot on. Here's an [expert having some fun](https://youtu.be/ieIzNP6gKqU). (For some reason the video does not open at the start. You'll have to roll back, sorry.)

[Previous page](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686.md?page=3)

[Next page](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686.md?page=5)
