http requests for open/close/stop window blinds?

tne7laa
Posts: 2
Joined: Sunday 05 March 2017 11:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

http requests for open/close/stop window blinds?

Postby tne7laa » Friday 31 March 2017 10:31

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.

tne7laa
Posts: 2
Joined: Sunday 05 March 2017 11:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Postby tne7laa » Sunday 02 April 2017 10:45

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...

gerbala
Posts: 1
Joined: Monday 10 July 2017 23:00
Target OS: Windows
Domoticz version:
Contact:

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

Postby gerbala » Tuesday 11 July 2017 8:32

Yes, it helped me. Thank you, pal!
I'm using Domoticz to make my life more comfortable. Because time which I was spending to house keeping now I spend to play with my kids


Return to “PHP and all others”

Who is online

Users browsing this forum: No registered users and 1 guest