I just need a kick in the right direction....
Although my question does not pertain to the functionality of Domoticz itself, I still would like to ask the question here, because I feel that it is closely related...
What I'm trying to achieve is this:
I have a WH3080 weather staion, and its data is received wirelessly using rtl_433. The JSON data is then fed into a MQTT server, and the MQTT client (which is installed on the Domoticz server) can subscribe to the messages without problem.
So, I now have JSON messages coming from my WH3080 available for processing on the Domoticz server.
These messages look like this:
Code: Select all
{"time" : "2018-03-06 11:45:56", "model" : "Fine Offset Electronics WH1080/WH3080 Weather Station", "msg_type" : 0, "id" : 55, "temperature_C" : 12.500, "humidity" : 48, "dire
ction_str" : "W", "direction_deg" : "270", "speed" : 2.448, "gust" : 4.896, "rain" : 443.700, "battery" : "OK"}
Code: Select all
"time" : "2018-03-06 11:47:28", "model" : "Fine Offset Electronics WH3080 Weather Station", "msg_type" : 2, "uv_sensor_id" : 100, "uv_status" : "OK", "uv_index" : 3, "lux" :
27101.000, "wm" : 39.679, "fc" : 2518.680}
I understand that I need to convert the original JSON messages into JSON messages Domoticz understands, and from what I have read sofar, Node-Red is the tool to do this.
However, I'm struggling to find documentation on how to do this.
Questions:
1) Do I need to use Node-Red ?
I think I could also write a script that parses the received JSON messages into a (series of) JSON messages ready to be used in Domoticz, and publish this output in another topic in MQTT, and read this in Domoticz.
2) If Node-Red is the way to go, can someone please point me in the right direction how to achieve my goal ?
Thanks for the help !
Hans
Edit
Found a post somewhere else that explains my question a bit more.
FYI: https://groups.google.com/forum/#!topic ... Qjt5uUobPo