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

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 sun azimuth altitude 7.41E 49.23N - Wolfram|Alpha 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 :slight_smile:

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

Thanks in advance!

Please see this post: http://community.wolfram.com/groups/-/m/t/992141