Jump to content
C4 Forums | Control4

mt104

c4Forums Member
  • Posts

    26
  • Joined

  • Last visited

Everything posted by mt104

  1. 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&param=udevice&idx=104&nvalue=0&svalue=PARAM{1146,1012} HTTP/1.0\r\n\r\n Is converted to... GET /json.htm?type=command&param=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.
  2. 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&param=udevice&idx=IDX&nvalue=0&svalue=TEMP Thanks, Mark.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.