24.10.2017, 06:59
(This post was last modified: 24.10.2017, 08:34 by gjniewenhuijse.)
Thanks,
And i see i can use the following script to get these values:
Is it also possible to get the Sunset and Sunrise time without using the rscalc function, because internally the sunset and Sunrise is also used for the scheduler (how is that calculated)?
So i like to get directly, in a script, the Sunrise and Sunset times used in the scheduler.
And i see i can use the following script to get these values:
Code:
require('uci')
lat = uci.get('genohm-scada.core.latitude')
lat = tonumber(lat)
lng = uci.get('genohm-scada.core.longitude')
lng = tonumber(lng)
Is it also possible to get the Sunset and Sunrise time without using the rscalc function, because internally the sunset and Sunrise is also used for the scheduler (how is that calculated)?
So i like to get directly, in a script, the Sunrise and Sunset times used in the scheduler.