I would like to buy this type of weather station: is it possible to automate it with Gladys?
I saw this post https://community.gladysassistant.com/t/station-meteo-quel-materiel-choisir/8993/5 that talks about it, is it still up to date? (@bong101)
Hi Chris
So this type of station works well, but with Gladys, I don’t know. I did… something!
The station is capable of sending data in Json format via a URL using the POST method.
At first, I made a small Python/Flask application that would receive the data and send it to MQTT while displaying a small HTML page with the data. I converted the data to the metric system.
Now it’s Station → Python/Flask → MQTT → Apache Nifi → MQTT → Python/Flask
The Python program retrieves the data, sends it raw to MQTT, Apache Nifi detects the data update, Frenchifies the keys, removes unnecessary keys, and converts the data to the metric system, then updates a new MQTT topic, still in Json format. The Python program displays the data from the new Json.
I did this to learn, mostly. I wanted to learn an ETL.
I don’t know if this will help you. I’m available if needed.
Olivier
Oops! Thanks for your help and the way you handled the issue, but as of today it’s a bit complicated for me and I chose Gladys for its ease of implementation! I’ll see what I can do with node-red.
I completely understand.
Maybe someone could develop an external integration?
I don’t realize the amount of work…it seems quite quick with the model set up by @pierre-gilles. Basically, a web server that receives the JSON and sends it to MQTT.
I can do it, but I don’t have a station at the moment. So it’s hard for testing. If someone is willing to help me test (some knowledge of Gladys and external integrations), I can get started.