Anybody know how to fix it and get it working again? It’s clearly been abandoned and hasn’t received an update in years. It’s such a good way to automate Home Assistant with, as you can use all the different points of the sun and moon to make your automations with - more options compared to the standard sun.sun
entity. I’m disappointed to see this n not working anymore.
The git repo is here: https://github.com/freakent/node-red-contrib-sunevents
@Kermit given that you’re the most knowledgeable here about Node-RED, perhaps you have an idea on why it doesn’t work anymore?
EDIT: upon checking the Node-RED logs, I can see that it somehow is putting me in a completely different timezone (GMT). So all the calculations are way off. As you can see, the timezone is off, the times are off, and this is probably what’s causing my issue. How do I get it to retrieve the proper timezone?
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] Calculating sun event times for some_latitude, some_longitude.
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Initialising job to calculate sunevents
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Calculating times for Sat Feb 15 2020 23:59:59 GMT-0600
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting solarNoon Tomorrow at 12:02 PM in 34 hours
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting nadir Tomorrow at 12:02 AM in 22 hours
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting sunrise Tomorrow at 6:35 AM in 29 hours
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting sunset Tomorrow at 5:29 PM in 40 hours
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting sunriseEnd Tomorrow at 6:38 AM in 29 hours
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting sunsetStart Tomorrow at 5:27 PM in 40 hours
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting dawn Tomorrow at 6:09 AM in 28 hours
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting dusk Tomorrow at 5:56 PM in 40 hours
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting nauticalDawn Tomorrow at 5:39 AM in 28 hours
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting nauticalDusk Tomorrow at 6:26 PM in 41 hours
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting nightEnd Tomorrow at 5:09 AM in 27 hours
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting night Tomorrow at 6:55 PM in 41 hours
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting goldenHourEnd Tomorrow at 7:11 AM in 29 hours
15 Feb 01:24:42 - [info] [sun events:f8fcd0e.096f9b] [sunevents] Emitting goldenHour Tomorrow at 4:54 PM in 39 hours