rdmtc / node-red-contrib-sun-position

This is a ultimate Node-Red Timer, Sun, Moon and Blind flow control.
Apache License 2.0
105 stars 24 forks source link

msg.payload.altitudePercent Is negative at night #542

Open gobigdave opened 7 months ago

gobigdave commented 7 months ago

Describe the bug Sending a timestamp into sun-position node at night results in msg.payload.altitudePercent < 0%. My expectation and the doc indicates that this should be 0-100% only.

Screenshots If applicable, add screenshots to help explain your problem.

Expected behavior I expect msg.payload.altitudePercent to be between 0 and 100.

System information (please complete the following information):

Additional context This has worked fine for years. Only recently started acting funny.