Switch time based on sunrise/sunset but between limits

Post Reply
paul402
Posts: 41
Joined: Monday 23 May 2016 23:07
Target OS: Raspberry Pi
Domoticz version:
Contact:

Switch time based on sunrise/sunset but between limits

Post by paul402 » Monday 16 January 2017 10:07

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?

User avatar
Egregius
Posts: 2714
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: Beta
Location: Beitem, BE
Contact:

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

Post by Egregius » Monday 16 January 2017 10:12

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?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests