I have window blinds which can be controlled via the dominica website: Open, Close and Stop and are of type Blinds.
Now I want to control them to Open and stop after some seconds. I'm trying a unix shell script with an virtual switch to do this.
The only thing is that I only have On/Off http request of type 'switchlight':
Code: Select all
http://192.168.1.11:5901/json.htm?type=command¶m=switchlight&idx=109&switchcmd=On
http://192.168.1.11:5901/json.htm?type=command¶m=switchlight&idx=109&switchcmd=Off
I want something like for my blinds:
Code: Select all
#!/bin/sh
curl "http://192.168.1.11:5901/json.htm?type=command¶m=blinds&idx=116&switchcmd=On"
sleep(3)
curl "http://192.168.1.11:5901/json.htm?type=command¶m=blinds&idx=116&switchcmd=Stop"
Thanks.