Page 1 of 1

[HSTouch] GET url on button press ON / OFF

Posted: Tue Feb 09, 2016 10:01 pm
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

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

Posted: Thu Feb 11, 2016 9:09 am
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 :-)