# 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:** 13

<div class="post-metadata">

### Author: ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)
#### Post date: [11 June 2020 13:09 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/243 "2020-06-11T13:09:52Z")

</div>

Confirmed, it's fixed.

How about just pushing it? Thorough testing would anyway require setting up various schedules and waiting for them to occur. That would be better done by "production" testing by the users. 🙂

---

<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: [11 June 2020 15:55 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/244 "2020-06-11T15:55:03Z")

</div>

> [@ristomatti](#):
>
> How about just pushing it? Thorough testing would anyway require setting up various schedules and waiting for them to occur. That would be better done by "production" testing by the users. 🙂

Release a beta/staging version. It’s not worth testing changes like these on a stable version, especially on a 1.0.0 release. Speaking as QA engineer here, we had a client who did this, rolled out a breaking change to production and staging (our test env) at the same time. Before we had the time to report a huge impact issue with caching, one of their customers (realtors all over Europe) did, and the change was rolled back. It was the day they learnt to wait for our initial reports coming in before rolling out to production.

In short, test your 1.0.0 release properly. It might have breaking changes but you more or less promise a stable interface, and you might do a bugfix release (shortly) afterwards, but best to test properly and only squash bugs that were truly missed afterwards. Fix the rest before the release.

---

<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: [11 June 2020 16:03 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/245 "2020-06-11T16:03:38Z")

</div>

@afelix @ristomatti,

Thanks for your comments.

I have been running various schedules and checking them for some days.

I've imported as many old flows as I can to ensure new properties are defaulted in a sane manner etc.

I'm itching to release but I'd hate to have someone point out a school boy error.

Would be great if another set of eyes have it a once over.

Thanks again.

---

<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: [11 June 2020 16:07 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/246 "2020-06-11T16:07:44Z")

</div>

Steve, if I can find a moment I’ll run it on my staging environment. Not doing too well at the moment so I can’t make any promises.

---

<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: [11 June 2020 20:57 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/247 "2020-06-11T20:57:23Z")

</div>

V1.0.0 Now tagged and published to NPM and [flow Library](https://flows.nodered.org/node/node-red-contrib-cron-plus)

Last minute tweaks were required (as always) - mostly mobile and smaller devices

🤞

---

<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: [11 June 2020 21:32 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/248 "2020-06-11T21:32:23Z")

</div>

No v1 ever survives contact with the enemy 🤣

---

<div class="post-metadata">

### Author: ![howl](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@howl](https://discourse.nodered.org/u/howl)
#### Post date: [15 June 2020 08:33 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/249 "2020-06-15T08:33:24Z")

</div>

Hi,  
i have a node with only one solar event, "eveningGoldenHourStart".  
After it has triggered once it goes to "all stopped" and not to the next date.  
Holger

---

<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: [15 June 2020 08:34 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/250 "2020-06-15T08:34:34Z")

</div>

Interesting (jn a bad way)

Would you export the node with that config & I will double check.

Thanks.

---

<div class="post-metadata">

### Author: ![howl](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@howl](https://discourse.nodered.org/u/howl)
#### Post date: [15 June 2020 08:40 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/251 "2020-06-15T08:40:19Z")

</div>

Here it is, I just changed the coordinates a bit.  
Yesterday I created a 2nd node with sunset (as an extra solar event), that worked and today the new goldenhour is available again.

Holger

```auto
[{"id":"b1e3c303.962a3","type":"cronplus","z":"bf2c78c8.6daee","name":"","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"goldenhour","payloadType":"default","payload":"","expressionType":"solar","expression":"0 * * * * * *","location":"51.581987088049675 12.565923404431669","offset":"0","solarType":"selected","solarEvents":"eveningGoldenHourStart"}],"x":465,"y":2940,"wires":[[]]}]

```

---

<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: [15 June 2020 08:44 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/252 "2020-06-15T08:44:14Z")

</div>

I've done a bit testing - I believe it is just superficial (i.e. the status of the node is incorrectly showing no schedule but there is)

If the node still shows no schedule, would you connect an `inject` into the cron node with the topic set as a string `status-all`

The output from the corn node should show there is a "next event"

please let me know.

EDIT:  
your code whould be placed between three backticks  
`````  
`like this`  
`````  
as its not importable otherwise (the forum messes with square brackets etc e.g. should be `[]`

---

<div class="post-metadata">

### Author: ![howl](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@howl](https://discourse.nodered.org/u/howl)
#### Post date: [15 June 2020 08:51 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/253 "2020-06-15T08:51:06Z")

</div>

ok, I have prepared this, a 2nd also for solarnoon, but that is here only in about 4 hours.  
Holger

---

<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: [15 June 2020 08:52 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/254 "2020-06-15T08:52:21Z")

</div>

Thanks for taking the time to test (note: you could use an offset of -240 to hurry it along 😉 )

---

<div class="post-metadata">

### Author: ![howl](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@howl](https://discourse.nodered.org/u/howl)
#### Post date: [15 June 2020 09:02 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/255 "2020-06-15T09:02:25Z")

</div>

yes, you are right and solarnoon was just now 😉

Status "all stopped" but status-all say in result/status "nextDescription solarNoon in 1 Day and 5 seconds"  
So just the status is wrong?  
Holger

---

<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: [15 June 2020 09:04 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/256 "2020-06-15T09:04:05Z")

</div>

> [@howl](#):
>
> So just the status is wrong?

Yeah - I'll fix that - but you can rest assured the events will still fire (phew)

If you dont mind monitoring and feeding back - i'd be grateful.

thanks.

---

<div class="post-metadata">

### Author: ![howl](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@howl](https://discourse.nodered.org/u/howl)
#### Post date: [15 June 2020 09:14 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/257 "2020-06-15T09:14:01Z")

</div>

I'll be in touch. Great tool, by the way.

---

<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: [15 June 2020 10:31 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/258 "2020-06-15T10:31:48Z")

</div>

Please do.

In the mean time, it works (bar the status update)

NOTE: I believe i have it fixed.  
 ![hbqEQwlfrL](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/d/8de05af3d902d66137621521ac39aabf5673b7ab.gif)

will update repository soon

---

<div class="post-metadata">

### Author: ![howl](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@howl](https://discourse.nodered.org/u/howl)
#### Post date: [15 June 2020 11:21 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/259 "2020-06-15T11:21:45Z")

</div>

I have now updated to 1.0.2.  
another question, there is the "inject" button, can i trigger it via the input, if so how?  
background, i want to output sun positions as time and i need a "start" after creating or restarting  
Holger

---

<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: [15 June 2020 11:46 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/260 "2020-06-15T11:46:35Z")

</div>

If you connect an inject into the cron node you can do many things - see the built in help for what you can do. On your question...

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

so if you add an inject set to send a topic of `status` and a payload of `schedule-name`  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/4/b4c9526495d94a17d57b7eb4e09ada8c0ea0dd86.png)

you will be able to understand the current solar state and solar times...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/8/48baa8964871d8c1d38874765745e87c596fd599.png)

TBH, you dont even need to create a schedule at all - you can use the `describe` command.

Try some of the examples i added in the import demos  
(`CTRL+I` \> examples)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/0/a091813ead557d634a2d439ae6d4870defc1ad35.png)

* * *

**EDIT...**  
If you want this status at node-red start up time, use an inject set to fire on start up.

---

<div class="post-metadata">

### Author: ![howl](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@howl](https://discourse.nodered.org/u/howl)
#### Post date: [16 June 2020 06:06 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/261 "2020-06-16T06:06:28Z")

</div>

the new version now runs without errors. thanks a lot.  
Holger

---

<div class="post-metadata">

### Author: ![Klara](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/klara/32/24419_2.png) [@Klara](https://discourse.nodered.org/u/Klara)
#### Post date: [23 June 2020 11:02 UTC](https://discourse.nodered.org/t/update-v1-2-1-node-red-contrib-cron-plus-scheduler-incl-solar-events-and-timezone-support/13686/262 "2020-06-23T11:02:34Z")

</div>

Hi Steve,  
so far I'm really happy with the node, everything works fine.  
But I get the error "ReferenceError: force is not defined" from the node whenever I remove schedules.  
Is there something I'm missing to define for the schedule?

[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=12)

[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=14)
