mt104
-
Posts
26 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Gallery
Downloads
Events
Posts posted by mt104
-
-
I've been using this driver for ages and find it very useful, thanks.
Is it possible to include Control4 variables in an HTTP GET URL? I've seen mention of including PARAM{deviceid, variableid} but I'm not sure what that means.
I'd like to use it to pass data from Control4 to a Domoticz server using URLs looking like /json.htm?type=command¶m=udevice&idx=IDX&nvalue=0&svalue=TEMP
Thanks,
Mark.
Chowmain - Generic TCP Command Driver
in Third Party Software
Posted
Hi Alan,
Ok, thanks for adding that to your to-do list.
I've sorted out including the variable now, by using the generic TCP command, but I'm having problems with ampersands. I'm trying to send the following string, but a packet trace shows that the ampersands are escaped as would be usual for HTTP requests but which unfortunately isn't understood by this web server.
This...
GET /json.htm?type=command¶m=udevice&idx=104&nvalue=0&svalue=PARAM{1146,1012} HTTP/1.0\r\n\r\n
Is converted to...
GET /json.htm?type=command¶m=udevice&idx=104&nvalue=0&svalue=8 HTTP/1.0
If I telnet to the web server (Domoticz) and paste in the command without conversion then it works, but if I paste in the version with ampersands escaped like this then it fails.
Is there a way to send an un-escaped ampersand?
Thanks,
Mark.