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

Feature Request #34

Closed aaron1uk closed 2 years ago

aaron1uk commented 2 years ago

Firstly great little Node, I have a feature Request, instead of waiting and getting the next solar event it would be beneficial to return the current solar event (or the closest solar event) instantly.

freakent commented 2 years ago

This is has been asked before. The whole point of this node is to output the events when they happen. If you just want to find the next event or the last event you can do it with 4 simple lines of Javascript in a Function node. I already provided an example before here https://github.com/freakent/node-red-contrib-sunevents/issues/28#issuecomment-877872960

aaron1uk commented 2 years ago

apologies must have missed that thanks for the reply