# Cronplus Sunset

**URL:** <https://discourse.nodered.org/t/cronplus-sunset/82621>\
**Category:** General\
**Created:** [5 November 2023 13:55 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621 "2023-11-05T13:55:32Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [5 November 2023 16:50 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/21 "2023-11-05T16:50:56Z")

</div>

Here's what I get:

![Cronplus 01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/5/e51e1da931f8908fa088a0855531eb1fecdcd8d3.jpeg)

I tried taking the time-zone out, leaving just the location as you have; same problem it's skipping over the sunset time showing the next as Schedule 1 at 8:30PM; saying sunset for the next day.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 November 2023 17:01 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/22 "2023-11-05T17:01:20Z")

</div>

Have we checked that you are using the latest version of cron plus, and a current version of nodejs?

---

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [5 November 2023 17:02 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/23 "2023-11-05T17:02:31Z")

</div>

I just downloaded it a week ago; I presume it's the latest; how would I check otherwise?

I didn't see any versioning in the "help' information.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 November 2023 17:05 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/24 "2023-11-05T17:05:35Z")

</div>

> [@xytsrm](#):
>
> how would I check otherwise?

Look in Manage Palette. Current is 2.1.0 (it will offer to upgrade if there is a later version).

You can see the nodejs version in the system info popup that you were using earlier. Ideally it should be 18 or 20, but 14 or 16 should be ok.

---

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [5 November 2023 17:07 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/25 "2023-11-05T17:07:28Z")

</div>

Looks up to date:  
 ![cronplus version](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/70a70e3ef9075a09aead797c8d1ee71417388ec5.jpeg)

---

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [5 November 2023 17:12 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/26 "2023-11-05T17:12:15Z")

</div>

BTW: I want to thank you guys about educating me on some of the inner workings of Node-Red (System Information, node versioning).; it's all great.

Looks like we have a real puzzle here with cronplus.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 November 2023 17:20 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/27 "2023-11-05T17:20:55Z")

</div>

> [@xytsrm](#):
>
> Looks up to date:

And nodejs?

---

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [5 November 2023 17:24 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/28 "2023-11-05T17:24:03Z")

</div>

You may remember a few weeks ago at your advisement I updated Node.js and Node.Red.

---

<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:** [5 November 2023 17:27 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/29 "2023-11-05T17:27:26Z")

</div>

> [@xytsrm](#):
>
> Looks like we have a real puzzle

Indeed. Unless this is related to your NodeJs version, very puzzling. Your node-red server appears to be correctly set.

For completeness (and for me to debug later) please state exactly which version of node JS your node-red is running on (again, available in the system info)

I'm bowing out here for the evening. Will keep an eye out as Colin is very good at diagnosing issues and he may spot something I've missed.

---

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [5 November 2023 17:29 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/30 "2023-11-05T17:29:44Z")

</div>

From System Information:

> },  
> "nodejs": {  
> "version": "v18.14.2",  
> "arch": "x64",  
> "platform": "win32",

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 November 2023 17:46 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/31 "2023-11-05T17:46:27Z")

</div>

That should be ok. I have to bow out for the evening too. I don't know what else to suggest at the moment.

---

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [5 November 2023 18:01 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/32 "2023-11-05T18:01:46Z")

</div>

Well, I'll standby and keep checking this thread; hopefully you guys can turn-up something.  
It's been an education 😃

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 November 2023 18:05 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/33 "2023-11-05T18:05:49Z")

</div>

What OS and hardware are you running? Perhaps that is a factor.

---

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [5 November 2023 18:21 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/34 "2023-11-05T18:21:14Z")

</div>

Window 10, Asus & HP PC's.  
BTW: I corrected the sunset by using a -1440 offset; now it shows the correct sunset time. I know it's not a fix, more of a test.

UPDATE: I just tried running the browser on the PC running the server; with the -1440 offset it also displays the now corrected sunset time. So both PC's are responding the same.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 November 2023 21:31 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/35 "2023-11-05T21:31:31Z")

</div>

Do you have a Pi or other linux system you could run the flow on?

---

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [5 November 2023 21:33 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/36 "2023-11-05T21:33:38Z")

</div>

I ran the flow on my Android cellphone and got the same results.

---

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [5 November 2023 21:35 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/37 "2023-11-05T21:35:29Z")

</div>

I also just ran it in a different browser (Chrome, was using Firefox), and got the same results.

---

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [5 November 2023 21:38 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/38 "2023-11-05T21:38:03Z")

</div>

BTW: I would also remind you that for exactly the same UTM the suncalc does not have any issues.

I assume the cronplus works correctly for you guys?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 November 2023 21:48 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/39 "2023-11-05T21:48:52Z")

</div>

> [@xytsrm](#):
>
> I ran the flow on my Android cellphone and got the same results.

Did you install node-red on the phone?  
If you mean you opened the page in the browser, with node-red running on the Windows machine, then you are not running the flow on the phone, you are running it in Windows machine and looking at it from the phone.

---

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [5 November 2023 21:57 UTC](https://discourse.nodered.org/t/cronplus-sunset/82621/40 "2023-11-05T21:57:35Z")

</div>

I was using the same server; I just wanted to see what it would do with the browser running on a different OS; I don't have any other OS PC to install the software.

BTW:  
I also discovered something very interesting about cronplus that indicates it has a flaw. Before I experimented with using the offset to correct the sunset time, I simply tried adjusting the UTM; giving UTM coordinates that corrected the sunset time. For my location that meant selecting a spot out in the Atlantic.  
It worked, but I corrected too far; as I inched back closer to the East coast it got better. Then, all of a sudden it skipped over the sunset schedule, to the 8:30PM fixed schedule again. No matter how carefully I inched closed to the correct time, it would just jump over the sunset schedule all of a sudden; this should not have happened. This suggests there's a flaw in the way it's handling UTM; depending on where you are it may work.

[Previous page](https://discourse.nodered.org/t/cronplus-sunset/82621.md?page=1)

[Next page](https://discourse.nodered.org/t/cronplus-sunset/82621.md?page=3)
