This page last changed on Mar 31, 2015 by coppo23.

Basic Newbie question - just playing at this stage.

I'm playing with openremote 2.1 as a front end to domoticz and am having trouble with basic json commands.

domoticz is running on a pi and openremote controller on a win7 machine.

If I create a new command using http get and put the complete URL as:
either http://192.168.1.170:8080/json.htm?type=command&param=switchlight&idx=34&switchcmd=On&level=0
OR http://192.168.1.170:8080/json.htm?type=command&param=switchlight&idx=34&switchcmd=Off&level=0

it will work perfectly.

If I try and split the command into URL and workload and use put or post methods nothing happens - no error - just no response
I have tried every combination of http put or post with the json workload set to:
json.htm?type=command&param=switchlight&idx=34&switchcmd=On&level=0

What have I missed or what am I doing wrong?

I haven't tried a switch yet and decoding the output from Domoticz - that's the next headache!

Cheers

Coppo

Document generated by Confluence on Jun 05, 2016 09:33