[HSTouch] GET url on button press ON / OFF

Alles m.b.t. HSTtouch (DUTCH forum)

Moderators: TANE, Ruud

Post Reply
raymonvdm
Senior Member
Senior Member
Posts: 1153
Joined: Sun Dec 18, 2011 1:23 am

[HSTouch] GET url on button press ON / OFF

Post by raymonvdm »

I would like to open an URL to switch a device from on to off / off to on

http://user:password@xx.xx.xx.xx/dev/ir_ctrl.cgi?ir=0

It does not need to open a webinterface but just perform the get command
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
raymonvdm
Senior Member
Senior Member
Posts: 1153
Joined: Sun Dec 18, 2011 1:23 am

Re: [HSTouch] GET url on button press ON / OFF

Post by raymonvdm »

I created an event with the following

Code: Select all


IF	Camera Infrarood changes and becomes On
Then	Execute the command: &hs.GetURL ("http://username:password@ipadress","/dev/ir_ctrl.cgi?ir=1", TRUE, 80)

Camera Infrarood is a virtual devices used in HSTouch :-)
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
Post Reply

Return to “Homeseer HStouch Forum”