Page 1 of 1

http requests for open/close/stop window blinds?

Posted: Friday 31 March 2017 10:31
by tne7laa
Hello,
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&param=switchlight&idx=109&switchcmd=On
http://192.168.1.11:5901/json.htm?type=command&param=switchlight&idx=109&switchcmd=Off
With this I can only open/close but not Stop.

I want something like for my blinds:

Code: Select all

#!/bin/sh
curl "http://192.168.1.11:5901/json.htm?type=command&param=blinds&idx=116&switchcmd=On"
sleep(3)
curl "http://192.168.1.11:5901/json.htm?type=command&param=blinds&idx=116&switchcmd=Stop"
Are there http requests for blinds directly? I can't find them.
Thanks.

Re: http requests for open/close/stop window blinds?

Posted: Sunday 02 April 2017 10:45
by tne7laa
Ok, I figured it out myself with the help of Fiddler:

Blinds Up:

Code: Select all

http://192.168.1.11:5901/json.htm?type=command&param=switchlight&idx=109&switchcmd=Off
Blinds Stop:

Code: Select all

http://192.168.1.11:5901/json.htm?type=command&param=switchlight&idx=109&switchcmd=Stop
Blinds Down:

Code: Select all

http://192.168.1.11:5901/json.htm?type=command&param=switchlight&idx=109&switchcmd=On
Hope it will help someone else...

Re: http requests for open/close/stop window blinds?

Posted: Tuesday 11 July 2017 8:32
by gerbala
Yes, it helped me. Thank you, pal!

Re: http requests for open/close/stop window blinds?

Posted: Saturday 26 May 2018 9:33
by salopette
Thanks for your help
How can I set it to stop the blind after 10, 20, 30 seconds?