30.10.2017, 18:43
(30.10.2017, 15:19)Erwin van der Zwart Wrote: Hi,Hi,
Use function suncalc() like this:
BR,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
I get error:
Common functions:212: attempt to index global 'cec' (a nil value)
stack traceback:
Common functions:212: in main chunk