Bump numpy from 1.11.1 to 1.22.0 in /app
|6 months ago|
|Grafana||6 years ago|
|app||9 months ago|
|esp8266||7 years ago|
|screenshots||6 years ago|
|.gitignore||6 years ago|
|README.md||6 years ago|
ESP8266 driven weather station with a Flask webserver frontend and Influx/Grafana plotting.
There are two main components to this project. The device source in esp8266/ and the webserver in app/. Data on device can be accessed directly via:
http://deviceIP. Additionally, a Grafana and Influx server can be configured to display historical data and is highly configurable.
For debugging purposes, the device can have firmware uploaded directly from the webpage. It's recommended that after deployment, this feature be removed for security.
I'd recommend platformio for compiling and distributing the esp8266 source to devices.
Flask and SocketIO frontend to weather station. It can accept multiple stations simultaneously.
pip -r requirements
To run: Run station receiver that pushes socketIO packets to flask webserver which also posts the data to an Influx database server. You'll need to change the database server if it's not the localhost:
In this file, you'll need to specify the Influx server and create a database on it named StationDB.
Run flask webserver that listens for SocketIO packets:
Webpage will be located at and will update when packet is received from stations http://localhost:5000/
Influx and Grafana configuration
I'd recommend installing Influx and Grafana via docker for minimal headache. Install docker here:
###InfluxDB setup: Pull down the influxdb docker images:
docker pull influxdb
Then run the image as a container named influx. The port forwarding is done from the container to your local machine.
docker run -d --name influx -p 8086:8086 -p 8083:8083 -v /local/machine/path/to/db:/var/lib/influxdb -e INFLUXDB_ADMIN_ENABLED=true influxdb
Navigate to http://localhost:8083 and create a database with name StationDB
###Grafana setup: As with Influx, pull down the docker image for grafana:
docker pull grafana/grafana docker run -d --name grafana -p 3000:3000 grafana/grafana
Navigate to http://localhost:3000 and start creating Grafana dashboards for plotting and monitoring your data.
An example json file of a sample dashboard is given in Grafana/sample.json