Hello.
I'm planning to make a litte logic script for the outside light - based on the sunrise / sunset function.
But as i can read it, the sh.sunset abd sh.sunrise is only available through crontab?
Wouldn't be possible to use inside a logic?
I think it should work something like:
On at 06:00 and off again at sunrise - then on again on sunset until 24:00 - if i make that in crontab, i need to have multiple logics?
The sunrise/sunset is only run one time? So i can't set my logics for cycle = 5 and hope it "graps" the sunset command?
if i do like in the sample
will it then only execute the logics sunset<20.00 if sunset comes before 20.00 and then not run after that? meaning it wouldn't turn off again?
I'm planning to make a litte logic script for the outside light - based on the sunrise / sunset function.
But as i can read it, the sh.sunset abd sh.sunrise is only available through crontab?
Wouldn't be possible to use inside a logic?
I think it should work something like:
On at 06:00 and off again at sunrise - then on again on sunset until 24:00 - if i make that in crontab, i need to have multiple logics?
The sunrise/sunset is only run one time? So i can't set my logics for cycle = 5 and hope it "graps" the sunset command?
if i do like in the sample
Code:
crontab = 17:00<sunset # sunset, but not bevor 17:00 (locale time) crontab = sunset<20:00 # sunset, but not after 20:00 (locale time) crontab = 17:00<sunset<20:00 # sunset, beetween 17:00 and 20:00
Kommentar