MQTT getting data from database - New Domotic Project
-
Hi guys,
I´m working on a domotic project, my architecture is as follows:
I have already developed the 2.4GHz RF Low Power remote nodes and its receptor. These nodes are fully configurable via Serial Interface (FTDI). You can work with any listed sensor as you can see in this image:
These nodes work at 1Mhz and are based in Atmega328p and are fed by two AA batteries. I´m still having a hard time trying to measure the current consumption using a shunt resistor but my calculations indicates that the remote modules will work for over a year (depending on the transmitting time). An example of the transmission of data is shown in this image:
The next step (where I need your help guys) is to send this data to a Raspberry Pi through 2-wire serial communication and store it in a database. I need this data to be handled with ¿OpenHab? and MQTT protocol. Do you guys know if its possible to extract/write data from a database with MQTT protocol?
If you are interested in my project we may work together, I still have no experience with these kind of gateways and your experience will be appreciated.
-
There are some examples of using Node-Red to store MQTT data to different DBs. I think it could be the easiest way without coding too much.
-
Thanks Gohan, but what about getting stored data from a database and use it in MQTT?
-
I'd say it is the same but it would you will need to do more coding I guess. There is a node-red Google group if you want to ask there also.
Suggested Topics
-
Openhab Puzzle Rule Programmer
OpenHAB • 7 Dec 2014, 10:44 • C.r.a.z.y. 8 Dec 2014, 03:54 -
[SOLVED] ESP8266MQTTClientGateway problem
General Discussion • 24 Jan 2016, 19:32 • mbj 26 Jan 2016, 21:29 -
Is MQTT Necessary? or, Use Case for MQTT?
Controllers • 28 Mar 2016, 01:12 • TRS-80 9 Jan 2020, 09:01 -
Combining Serial and MQTT/Ethernet Gateway
Troubleshooting • 12 Feb 2015, 13:13 • codenea 28 Apr 2015, 15:09 -
ESP8266 gateway crashes while the node is in FOTA progress.
Troubleshooting • 25 Nov 2017, 00:22 • Abdu Sahin 13 Dec 2017, 20:50 -
OpenHAB MySensors binding 2.5: V_VAR1 and String values
OpenHAB • 3 Jun 2020, 19:09 • syntacrsc 7 Jun 2020, 18:01 -
MQTT gateway freezes on reboot/powering off and back on.
Troubleshooting • 21 Apr 2015, 01:41 • kunall 21 Apr 2015, 05:36