MWW1977
Posts: 58
Joined: Thu Feb 19, 2015 3:47 pm

Getting Domoticz data from pi zero to pi 3B+

Wed Nov 14, 2018 1:50 pm

Hi all,

I currently have a 3B+ setup with Domoticz to monitor my Xiaomi plantsensors.
However I would like to use my Pi Zero W to monitor my plant while I use the Pi 3B+ for my SmartMIrror project.
Normaly you would say: "use the SmartMirror Domoticz module to read out the plant sensors but the location of the smartmirror wil not be within bluetooth distance of the plant sensors.

So now my question: can I connect the pi zero with the pi 3B+ and foreward the Domoticz data via my wifi network?
And if so: how can this be done?

scotty101
Posts: 3958
Joined: Fri Jun 08, 2012 6:03 pm

Re: Getting Domoticz data from pi zero to pi 3B+

Wed Nov 14, 2018 2:23 pm

Sound like a question that the Domoticz forum might be able to help you with. I use Domoticz and whilst I haven't used the feature myself, I know that you can install Domoticz on two devices and have one be the share with another.
https://www.domoticz.com/wiki/Setting_up_Device_sharing

Another method is that you can use the Domoticz API to send updates for sensors from one device to the Domoticz device.
I use this method to post temperature reading from ESP8266 modules to Domoticz. It could also be done with a Pi zero and a python script using the python-requests library.
https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

MWW1977
Posts: 58
Joined: Thu Feb 19, 2015 3:47 pm

Re: Getting Domoticz data from pi zero to pi 3B+

Wed Nov 14, 2018 3:12 pm

scotty101 wrote:
Wed Nov 14, 2018 2:23 pm
Sound like a question that the Domoticz forum might be able to help you with. I use Domoticz and whilst I haven't used the feature myself, I know that you can install Domoticz on two devices and have one be the share with another.
https://www.domoticz.com/wiki/Setting_up_Device_sharing

Another method is that you can use the Domoticz API to send updates for sensors from one device to the Domoticz device.
I use this method to post temperature reading from ESP8266 modules to Domoticz. It could also be done with a Pi zero and a python script using the python-requests library.
https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s
But Ofcourse ...... DUH!!! Sorry! I should have put this question up at the Domoticz forum.
Didn't thought of that. I'll post it there also.
But THANKS :D :D :D :D anyway for replying to my question and for the links.
I'll follow them and hope it makes sense to me. :mrgreen:

And that "ESP8266 module" looks promising.
I'm I right assuming it is a wifi module with a separate sensor (temperature in your case) and the wifi module just sends out the data that your Pi picks up and displays it in Domotics?
Can that wifi module be used for more then just one sensor?
I could use this for an air quality sensor and a weather station I would like to build in my backyard.

scotty101
Posts: 3958
Joined: Fri Jun 08, 2012 6:03 pm

Re: Getting Domoticz data from pi zero to pi 3B+

Wed Nov 14, 2018 3:30 pm

MWW1977 wrote:
Wed Nov 14, 2018 3:12 pm
And that "ESP8266 module" looks promising.
I'm I right assuming it is a wifi module with a separate sensor (temperature in your case) and the wifi module just sends out the data that your Pi picks up and displays it in Domotics?
Can that wifi module be used for more then just one sensor?
I could use this for an air quality sensor and a weather station I would like to build in my backyard.
It is a small microcontroller with built in Wifi. You can connect a range of various sensors to it and send the data back to the Pi.
You probably could use it for an air quality sensor and a weather station.
If you want to buy one look either for the NodeMCU modules or Adafruit's version the HUZZAH. There are others too.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

Return to “General discussion”