Page 1 of 1

how to control domoticz from internet with arduino

Posted: Thursday 08 November 2018 20:50
by BartSr
Hi !
From a webbrowser I can control domoticz by:
domoticzIP:8080/json.htm?type=command&param=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&param=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

Re: how to control domoticz from internet with arduino

Posted: Thursday 08 November 2018 21:02
by freijn
Do you have set requests coming from the same network does not require to use login password?

Re: how to control domoticz from internet with arduino

Posted: Thursday 08 November 2018 22:12
by BartSr
wow.... such a simple thing.
works like a charm now

thanks a lot !!
-Bart

Re: how to control domoticz from internet with arduino

Posted: Sunday 18 November 2018 22:14
by GiorgioIT
I would like to start doing something with arduino, could you give me some clues or sketch arduino to start trying ?????

Re: how to control domoticz from internet with arduino

Posted: Thursday 31 January 2019 13:09
by BartSr
@ GiorgioIT
What you wanna achieve?

Re: how to control domoticz from internet with arduino

Posted: Thursday 31 January 2019 14:45
by freijn
GiorgioIT wrote: Sunday 18 November 2018 22:14 I would like to start doing something with arduino, could you give me some clues or sketch arduino to start trying ?????
https://www.letscontrolit.com/wiki/index.php/ESPEasy

all you need :-)

Re: how to control domoticz from internet with arduino

Posted: Monday 18 February 2019 8:34
by Ranchor
Thanks for the link you posted, it's been helpful to me. Here is a link to my work.