first commit
This commit is contained in:
17
volets3.sh
Executable file
17
volets3.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
DOMO_IP="localhost" # Domoticz IP Address
|
||||
DOMO_PORT="81" # Domoticz Port
|
||||
Gauche_IDX=684 # numéro ID de l interrupteur du relais
|
||||
Droit_IDX=701
|
||||
Milieu_IDX=699
|
||||
|
||||
|
||||
lockfile-create "/tmp/volet3.lockfile"
|
||||
echo "Avant $1" >>/tmp/test
|
||||
curl -s "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=switchlight&idx=$Droit_IDX&switchcmd=$1" &
|
||||
sleep 1
|
||||
curl -s "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=switchlight&idx=$Milieu_IDX&switchcmd=$1" &
|
||||
sleep 1
|
||||
curl -s "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=switchlight&idx=$Gauche_IDX&switchcmd=$1" &
|
||||
echo "Apres" >>/tmp/test
|
||||
lockfile-remove "/tmp/volet3.lockfile"
|
||||
Reference in New Issue
Block a user