# Sun Events Node

**URL:** https://discourse.nodered.org/t/sun-events-node/17615
**Category:** General
**Created:** [7 November 2019 02:30 UTC](https://discourse.nodered.org/t/sun-events-node/17615 "2019-11-07T02:30:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![budlyte](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@budlyte](https://discourse.nodered.org/u/budlyte)
#### Post date: [7 November 2019 02:30 UTC](https://discourse.nodered.org/t/sun-events-node/17615/1 "2019-11-07T02:30:30Z")

</div>

running hassio node red 5.0.3. sun events node has been working to turn lights on at sunset for at least a year. After updating to 5.0.3 no sun events are generated.

Also noted that when node red starts it shows all events 24 hours after actual event should occur.

any one having the same issues.

Thanks

---

<div class="post-metadata">

### Author: ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)
#### Post date: [7 November 2019 05:30 UTC](https://discourse.nodered.org/t/sun-events-node/17615/2 "2019-11-07T05:30:22Z")

</div>

To get help, people need more information than that.

Please post the full name, or better an NPM link of the contrib node you are referring to.  
Which version of Node-RED, NodeJS etc... are you running?

If it's a bug in the contrib node, you should raise an issue on their Github repo.

I am using [https://www.npmjs.com/package/node-red-contrib-sunevents](https://www.npmjs.com/package/node-red-contrib-sunevents) v0.0.5 on Node-RED 1.0.2 and its working fine. Did you set the Geo location correctly?

---

<div class="post-metadata">

### Author: ![budlyte](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@budlyte](https://discourse.nodered.org/u/budlyte)
#### Post date: [11 November 2019 18:23 UTC](https://discourse.nodered.org/t/sun-events-node/17615/3 "2019-11-11T18:23:22Z")

</div>

Kuema: Thaks for the reply. I have more information that might help. The node red add on to home assistant is version 5.0.3. The node Red version is v1.0.2 and the node red.js version is V1.0.2. I did verify that my lat long was correct 38.84844, -117.77777. I set up a simple node red flow to send me an e-mail whenever there is a sun event. I set it up last night and thus far I have received nothing. I did see a nidr event last evening just after a full sun set. below is the log info received after restarting node red.

11 Nov 10:12:13 - [info] [sun events:69e755ea.b7e03c] [sunevents] Calculating times for Mon Nov 11 2019 23:59:59 GMT-0800  
11 Nov 10:12:13 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting solarNoon Tomorrow at 11:36 AM in 25 hours  
11 Nov 10:12:13 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting nadir Today at 11:36 PM in 13 hours  
11 Nov 10:12:13 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting sunrise Tomorrow at 6:21 AM in 20 hours  
11 Nov 10:12:13 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting sunset Tomorrow at 4:51 PM in 30 hours  
11 Nov 10:12:13 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting sunriseEnd Tomorrow at 6:24 AM in 20 hours  
11 Nov 10:12:13 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting sunsetStart Tomorrow at 4:48 PM in 30 hours  
11 Nov 10:12:13 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting dawn Tomorrow at 5:55 AM in 19 hours  
11 Nov 10:12:13 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting dusk Tomorrow at 5:17 PM in 31 hours  
11 Nov 10:12:14 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting nauticalDawn Tomorrow at 5:25 AM in 19 hours  
11 Nov 10:12:14 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting nauticalDusk Tomorrow at 5:47 PM in 31 hours  
11 Nov 10:12:14 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting nightEnd Tomorrow at 4:55 AM in 18 hours  
11 Nov 10:12:14 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting night Tomorrow at 6:17 PM in 32 hours  
11 Nov 10:12:14 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting goldenHourEnd Tomorrow at 6:57 AM in 20 hours  
11 Nov 10:12:14 - [info] [sun events:69e755ea.b7e03c] [sunevents] Emitting goldenHour Tomorrow at 4:15 PM in 30 hours.

I did look at the flows to see if suncalc was running and it says it is enabled. sunevents has been working without a problem up until the time changed from daylight to standard time.

What additional information can I get that might point me in the right direction?

Thanks
