Question about run relays

Post Reply
rafek
Posts: 2
Joined: Tuesday 24 April 2018 10:45
Target OS: -
Domoticz version:
Contact:

Question about run relays

Post by rafek » Tuesday 24 April 2018 10:58

Hello,
I wonder how I should build an event by blocky, which would implement the scheme below (for my simple irrigation system):

echo 1 >/sys/class/gpio/gpio18/value
echo 0 >/sys/class/gpio/gpio27/value
echo 0 >/sys/class/gpio/gpio22/value
echo 0 >/sys/class/gpio/gpio23/value
sleep 5
echo 0 >/sys/class/gpio/gpio18/value
echo 1 >/sys/class/gpio/gpio27/value
echo 0 >/sys/class/gpio/gpio22/value
echo 0 >/sys/class/gpio/gpio23/value
sleep 5
echo 0 >/sys/class/gpio/gpio18/value
echo 0 >/sys/class/gpio/gpio27/value
echo 1 >/sys/class/gpio/gpio22/value
echo 0 >/sys/class/gpio/gpio23/value
sleep 5
echo 0 >/sys/class/gpio/gpio18/value
echo 0 >/sys/class/gpio/gpio27/value
echo 0 >/sys/class/gpio/gpio22/value
echo 1 >/sys/class/gpio/gpio23/value
sleep 5
echo 0 >/sys/class/gpio/gpio18/value
echo 0 >/sys/class/gpio/gpio27/value
echo 0 >/sys/class/gpio/gpio22/value
echo 0 >/sys/class/gpio/gpio23/value

ps. i'm newbie, sorry guys

rafek
Posts: 2
Joined: Tuesday 24 April 2018 10:45
Target OS: -
Domoticz version:
Contact:

Re: Question about run relays

Post by rafek » Tuesday 24 April 2018 12:40

I found som solution, but maybe is worth to tune up ? Maybe someone have more advanced solution ?
event.jpg
event.jpg (64.95 KiB) Viewed 812 times

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests