Suncalc

I stumpled upon this page `Here
Copied the code and added to Homeyscript, but i don’t see how to get it to work.

Background; I am trying to update my SolarPanels script with a better day prognosis. Idea is that a prognosis is depending on sun up and sun down times. So i figured that my day prognosis is not that relevant because is is a month prognosis / days. Better would be that each day in a month get its part of the prognosis according to how many minutes the sun is up. This way I want to improve the daily prognosis.

someone can help me with this?

Got it. Done😊