how to control domoticz from internet with arduino
Posted: Thursday 08 November 2018 20:50
Hi !
From a webbrowser I can control domoticz by:
domoticzIP:8080/json.htm?type=command¶m=udevice&idx=1078&nvalue=0&svalue=10;20;0
This 'command' gives a virtual tempsensor with IDX=1078 a value.
Now I want to do same using an Arduino using :
(just one line of code displayed. there is already a connection with domoticz)
client.print("GET /json.htm?type=command¶m=udevice&idx=1078&nvalue=0&svalue=10;20;0");
But this does not give any result.
Does Domoticz require a setting to accept this "controldata"?
Maybe anyone has a working example? I tried several from the web but all without the desired result.....
Any help is welcome.
BTW I am an absolute beginner in trying to transmit data in this way.
KR
-Bart
From a webbrowser I can control domoticz by:
domoticzIP:8080/json.htm?type=command¶m=udevice&idx=1078&nvalue=0&svalue=10;20;0
This 'command' gives a virtual tempsensor with IDX=1078 a value.
Now I want to do same using an Arduino using :
(just one line of code displayed. there is already a connection with domoticz)
client.print("GET /json.htm?type=command¶m=udevice&idx=1078&nvalue=0&svalue=10;20;0");
But this does not give any result.
Does Domoticz require a setting to accept this "controldata"?
Maybe anyone has a working example? I tried several from the web but all without the desired result.....
Any help is welcome.
BTW I am an absolute beginner in trying to transmit data in this way.
KR
-Bart