wxserver/README.md

26 wiersze
1.0 KiB
Markdown
Czysty Zwykły widok Historia

2016-09-28 17:09:14 +00:00
# ESP8266 driven weather station with Flask webserver frontend.
2016-09-28 16:34:41 +00:00
2016-09-28 17:09:14 +00:00
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
2016-09-28 16:34:41 +00:00
2016-09-28 17:09:14 +00:00
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.
2016-09-28 16:34:41 +00:00
Recommend platformio for compiling and distributing the esp8266 source to devices.
![Alt text](/screenshots/WXDevice_ESP8266.png?raw=true "Device Webpage")
2016-09-28 16:31:38 +00:00
Flask and SocketIO frontend to weather station. It can accept multiple stations simultaneously.
2016-09-28 17:09:14 +00:00
To setup:\
2016-09-28 16:31:38 +00:00
pip -r requirements
To run:
2016-09-28 17:09:14 +00:00
Run station receiver that pushes socketIO packets to flask webserver:\
2016-09-28 16:31:38 +00:00
$python stationServer.py
2016-09-28 17:09:14 +00:00
Run flask webserver that listens for SocketIO packets:\
2016-09-28 16:31:38 +00:00
$python app.py
Webpage will be located at and will update when packet is received from stations
http://localhost:5000/
2016-09-28 16:34:41 +00:00
![Alt text](/screenshots/FlaskWXServer.png?raw=true "Flask Server Webpage")