how to control domoticz from internet with arduino

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.
Post Reply
BartSr
Posts: 29
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi
Domoticz version:
Contact:

how to control domoticz from internet with arduino

Post by BartSr » Thursday 08 November 2018 21:50

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

freijn
Posts: 396
Joined: Friday 23 December 2016 17:40
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands Purmerend
Contact:

Re: how to control domoticz from internet with arduino

Post by freijn » Thursday 08 November 2018 22:02

Do you have set requests coming from the same network does not require to use login password?

BartSr
Posts: 29
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: how to control domoticz from internet with arduino

Post by BartSr » Thursday 08 November 2018 23:12

wow.... such a simple thing.
works like a charm now

thanks a lot !!
-Bart

GiorgioIT
Posts: 1
Joined: Sunday 18 November 2018 22:22
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: how to control domoticz from internet with arduino

Post by GiorgioIT » Sunday 18 November 2018 23:14

I would like to start doing something with arduino, could you give me some clues or sketch arduino to start trying ?????

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests