freakent / node-red-contrib-sunevents

A node for node-red that generates events based on the position of the Sun at the appropriate time of day.
Apache License 2.0
15 stars 13 forks source link

Only works for 24-36 hours #25

Closed stk21 closed 3 years ago

stk21 commented 3 years ago

I have noticed that since the update to 3.x and the new flow, the node will crash after running for some time, even if injecting lat/lon to keep it up and running.

Actually it will continue to run, but the payload output changed from the label to just 0. Debug example below.

3/18/2021, 7:36:53 PMnode: bf0d830e.31aef sun_events_test : msg.payload : Object { value: 1616116747213, sunevent: "dusk" }

3/18/2021, 8:08:12 PMnode: bf0d830e.31aef sun_events_test : msg.payload : Object { value: 1616116747213, sunevent: "nauticalDusk" }

3/18/2021, 8:40:00 PMnode: bf0d830e.31aef sun_events_test : msg.payload : Object { value: 1616116747213, sunevent: "night" }

3/19/2021, 1:08:20 AMnode: bf0d830e.31aef sun_events_test : msg.payload : Object { value: 1616116747213, sunevent: "nadir" }

3/19/2021, 5:34:56 AMnode: bf0d830e.31aef sun_events_test : msg.payload : number 0

3/19/2021, 6:06:47 AMnode: bf0d830e.31aef sun_events_test : msg.payload : number 0

3/19/2021, 6:38:08 AMnode: bf0d830e.31aef sun_events_test : msg.payload : number 0

3/19/2021, 7:04:57 AMnode: bf0d830e.31aef sun_events_test : msg.payload : number 0

3/19/2021, 7:07:43 AMnode: bf0d830e.31aef sun_events_test : msg.payload : number 0

freakent commented 3 years ago

I've not been able to recreate this issue in testing, but I have performed a few extra checks. I've just pushed a new version. Please give v3.0.3 a try.

freakent commented 3 years ago

I believe this is the same as issue #24 which has been addressed by v3.0.3. Please advise if v3.0.3 solves this issue for you so I can close off this issue.

stk21 commented 3 years ago

Ill check it out. I however dont see 3.0.3 as an option to upgrade to. The palette still shows 3.0.2 and installing from the CLI still installs 3.0.2.

stk21 commented 3 years ago

This is a node-red add-on install in hass-io. But I can get into the container directly.

freakent commented 3 years ago

Did you manage to upgrade to v3.0.3 yet? I triggered a refresh in the node-red nodes catalog so it would pick up the change.

stk21 commented 3 years ago

Just upgraded this morning, and have been monitoring the system for a little bit and I am seeing the expected debug output. I believe this is working again. Thanks for the node and replying to a issue request.

freakent commented 3 years ago

No further issues reported so I am assuming this is resolved.