Page 1 of 1

Switch time based on sunrise/sunset but between limits

Posted: Monday 16 January 2017 9:07
by paul402
I have built a window blind controller based on a Raspberry and I written it in Python and it works great for over a year now.

I would like to extend the system funtionality and use the external access that Domoticz offers and incorporate my scripts.

I have programmed some blinds to switch like this:

If switchtime(sunrise) <7:30 then
switchtime=7:30
else if switchtime(sunrise)>8:00 then
switchtime=8:00

Should I be using Blockly or LUA to provide this functionality?

Re: Switch time based on sunrise/sunset but between limits

Posted: Monday 16 January 2017 9:12
by Egregius
Easy in pass2php, but you only want to switch them on the exact sunrise time if the sunrise is between 7:30 and 8:00?