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

Too long events calculation: it takes more than 5 minutes to calculate events #39

Closed AlexBokhankovich closed 2 years ago

AlexBokhankovich commented 2 years ago

Please see screenshot below NR v2.1.6

image

freakent commented 2 years ago

Alex, please look at closed issues. This has been asked before. I can assure you it is not taking more than 5 minutes to calculate the events. Look at the green status telling you which event will fire next.

Regards, Martin

+44 7776490601

On 26 Jun 2022, at 13:22, Alexander Bokhankovich @.***> wrote:

 Please see screenshot below NR v2.1.6

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

[ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/freakent/node-red-contrib-sunevents/issues/39", "url": "https://github.com/freakent/node-red-contrib-sunevents/issues/39", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

AlexBokhankovich commented 2 years ago

Alex, please look at closed issues. This has been asked before. I can assure you it is not taking more than 5 minutes to calculate the events. Look at the green status telling you which event will fire next. Regards, Martin +44 7776490601 On 26 Jun 2022, at 13:22, Alexander Bokhankovich @.> wrote:  Please see screenshot below NR v2.1.6 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread. [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "#39", "url": "#39", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Thank you for your help. It is now so obvious to understand its logic. Now I got it. I was expecting once the node is called it returns an array of events with corresponding times.

freakent commented 2 years ago

If you want just a list of events then use SunCalc directly. I included a function example on how to do that in one of those closed issues.

Regards, Martin

+44 7776490601

On 26 Jun 2022, at 14:37, Alexander Bokhankovich @.***> wrote:

 Closed #39 as completed.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

[ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/freakent/node-red-contrib-sunevents/issues/39#event-6880365647", "url": "https://github.com/freakent/node-red-contrib-sunevents/issues/39#event-6880365647", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]