This object is in archive! 

Sun elevation and azimuth

Jacques shared this question 9 years ago
Answered

Does anybody have a php script to calculate the sun position to send to my virtual meter or something else to add to my roller shutter scripts ?


Thanks

Replies (5)

photo
1

any api ?

photo
1

I will migrate from Vera Edge to Zipabox when I can use current sun azimuth and altitude at my location in Zipabox.

Hans

photo
1

I don't have complete code for this, but this seems fairly straightforward using the date_sun_info function: http://php.net/manual/en/function.date-sun-info.php

photo
1

Hello guys,


you can use Astro events such as Sunrise and Sunset in the scheduler puzzle for your location if you use Virtual weather station. You can also use a +/- offset. Scheduler puzzle is then used to trigger a Rule at a certain time of the day on predetermined days of the week. For more info on our Rules creator please see our knowledgebase, the section Rules creator https://community.zipato.com/knowledge-base/articles


Regards

photo
1

Hrvoje, I use the astro to trigger a meter on/off at surise and sunset. Three times the last two weeks, the OFF (sunset) has not been triggered, though. I monitor my network, so there has not been internet downtime in my house at the time astro should have triggered the meter.


So I am not sure if I trust the scheduler before there is an explaination to this. I would definately not use it to control pacemakers, life support machines or other important equiment typically controlled by Zipabox (at sunset) ;)

Leave a Comment
 
Attach a file