30.10.2017, 15:19
(This post was last modified: 30.10.2017, 15:20 by Erwin van der Zwart.)
Hi,
Use function suncalc() like this:
BR,
Erwin
Use function suncalc() like this:
Code:
lat = 52.5167747 -- Zwolle - Netherlands
lng = 6.0830219 -- Zwolle - Netherlands
time = os.time()
alt, az = suncalc(lat, lng, time)
grp.update('33/1/1', alt)
grp.update('33/1/2', az)
Erwin