suncalc icon indicating copy to clipboard operation
suncalc copied to clipboard

sun azimut / altitude as function of hour of day

Open roestigraben opened this issue 1 year ago • 2 comments

I need to get the azimut and altitude angles not only at sunrise sunset but as a function over time.

In the source code, I di not see this feature.

How would I derive it

roestigraben avatar Apr 15 '23 13:04 roestigraben

@roestigraben It sounds like you are looking for SunCalc.getPosition(timeAndDate, latitude, longitude), which returns an azimuth and altitude.

TheophileMot avatar May 02 '23 18:05 TheophileMot

Thanks a lot!

roestigraben avatar May 10 '23 09:05 roestigraben