# Suncalc

**URL:** <https://community.homey.app/t/suncalc/35358>\
**Category:** Developers\
**Created:** [October 2, 2020, 8:23am UTC](https://community.homey.app/t/suncalc/35358 "2020-10-02T08:23:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [October 2, 2020, 8:23am UTC](https://community.homey.app/t/suncalc/35358/1 "2020-10-02T08:23:22Z")

</div>

I stumpled upon this page [`Here](https://github.com/mourner/suncalc)  
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?

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [October 20, 2020, 4:26pm UTC](https://community.homey.app/t/suncalc/35358/2 "2020-10-20T16:26:46Z")

</div>

Got it. Done😊
