How steveio/arduino works
This repository is a collection of Arduino/ESP IoT prototypes plus Python weather-data and browser-visualization tools. The documented weather workflow runs from a sensor station through MQTT ingestion and MongoDB to time-series analysis and websocket-provisioned charts; the README also describes standalone automated plant watering. Source excerpts confirm the MQTT subscriber’s database write and the analytics scripts’ roles, but do not show all firmware or dashboard wiring, so those links are documented at README level. The Node.js MQTT-to-websocket relay and hosted chart pages are external to this tree.
Main entry points: weather Weather files · WeatherStation.ino Weather station · weatherMqttClient.py MQTT subscriber · weather.py File analytics
Components 15
Embedded prototypes
- Weather station
WeatherStation/WeatherStation.ino - Plant watering
PlantWater/PlantWater.ino
Weather ingestion
- MQTT broker
- MQTT subscriber
weatherMqttClient.py - Weather MongoDB
Weather analytics
- Weather files
data/weather - File analytics
weather.py - Time-series analysis
python/weather.py - Mongo analytics
python/weather_mongo.py
Web visualization
- MQTT-WebSocket relay
- Gauge renderer
python/ResponsiveGauge.js - Browser charts
- Serial-WebSocket server
python/serialToWebsocket.py
Other components
- Operator
- Serial device
Connections 16
- Operator → Weather station: deploys
- Weather station → MQTT broker: sends readings
README.md - MQTT broker → MQTT subscriber: publishes messages
weatherMqttClient.py - MQTT subscriber → Weather MongoDB: writes JSON
weatherMqttClient.py - Weather MongoDB → Mongo analytics: provides records
- Weather files → File analytics: loads weather data
- Weather files → Time-series analysis: loads weather data
- File analytics → Operator: plots statistics
weather.py - Time-series analysis → Operator: plots statistics
python/weather.py - Mongo analytics → Operator: plots statistics
python/weather_mongo.py - MQTT broker → MQTT-WebSocket relay: relays readings
README.md - MQTT-WebSocket relay → Browser charts: streams weather data
README.md - Gauge renderer → Browser charts: renders gauges
- Operator → Plant watering: configures watering
README.md - Serial device → Serial-WebSocket server: streams serial data
python/serialToWebsocket.py - Serial-WebSocket server → Browser charts: sends websocket data
python/serialToWebsocket.py