Message Boards Message Boards

Create an API that returns the time when the sun is at a certain position?

Posted 7 years ago

I've created an API that returns the altitude and azimuth for my hometown at the current date and time.

http://api.wolframalpha.com/v2/query?appid=xxxxx-xxxxx&input=sun+azimuth+and+altitude+7.41E+49.23N&format=plaintext

(see also http://www.wolframalpha.com/input/?i=sun+azimuth+altitude+7.41E+49.23N for results)

But how can I create a API that returns the time when the sun is for example @ azimuth>=175°, or @ altitude >= 20° today for the given location? This would save a lot of API requests over the day :-)

(Purpose: Arduino project (with the Particle Photon) for home automation, driving shutters/blinds for shading of objects and energy harvesting)

Thanks in advance!

POSTED BY: MF 2015
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract