donskytech / dht22-weather-station-python-flask-socketio-multiple-sensors

A DHT22/DHT11 weather station that displays multiple sensor readings simultaneously using Python, Flask, Flask-SocketIO on your Raspberry Pi
Apache License 2.0
3 stars 1 forks source link

Multiple Sensors from different servers #1

Open nike-on opened 1 year ago

nike-on commented 1 year ago

On start I need to say - a very great job! :) It would be great if we could aggregate sensor readings from different Pi servers in this project. So that the temperature and humidity shows on top like now and in tabs from other pi servers.

it is possible? for example, on each other Pi's, put a webserver (gunicorn) that provides a clear value of temperature and humidity in text. And in app.py on "master server" to add new servers that would simply curl and puts it on the page :)

donskytech commented 1 year ago

I believe MQTT Over WebSocket would solve your problem. It would be hard to synchronize those values from multiple Raspberry Pi. It would be feasible if you are using MQTT especially if messages are sent thru the browser and thru WebSocket.