Reading data from Domoticz to nodeMCU

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mackowiakp
Normal user
Posts: 531
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

Reading data from Domoticz to nodeMCU

#1 Post by mackowiakp » 02 Dec 2018, 16:21

I have Domoticz instance with many remote sensors connected to nodeMCU. Some sensors are 100 km or more, connected to Domoticz via routers equipped with OpenVPN (because of security reasons).. I have to display temperature taken from one such distant sensor on LED display connected to other distant nodeMCU.
How can I obtain value of temperature from Domoticz an place it in for example dummy sensor?

xury
Normal user
Posts: 44
Joined: 02 Apr 2018, 12:54

Re: Reading data from Domoticz to nodeMCU

#2 Post by xury » 03 Dec 2018, 15:26

Reading data from dummy sensor in domoticz is not so easy. You have to create your own lua/dzEvents script and trigger it.
Even domoticz remote server can't pass dummy data.

mackowiakp
Normal user
Posts: 531
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

Re: Reading data from Domoticz to nodeMCU

#3 Post by mackowiakp » 03 Dec 2018, 19:50

Maybe I described my problem in wron way. I want to write value taken FROM Domoticz physical sensor TO dummy sensor in nodeMCU. Does not matter if connection for such operation will be initiated by nodeMCU or Domoticz. Is it possible?

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Reading data from Domoticz to nodeMCU

#4 Post by enesbcs » 03 Dec 2018, 20:59

mackowiakp wrote: 03 Dec 2018, 19:50 Maybe I described my problem in wron way. I want to write value taken FROM Domoticz physical sensor TO dummy sensor in nodeMCU. Does not matter if connection for such operation will be initiated by nodeMCU or Domoticz. Is it possible?
If the sensor has an IP address, and Domoticz can reach it's port 80, you can use %eventvalue% parameter to send a value from Domoticz (for example through LUA OpenURL) to a Dummy, for example:
https://www.letscontrolit.com/forum/vie ... 683#p20141

Post Reply

Who is online

Users browsing this forum: No registered users and 42 guests