How xrothmans/ifb102_2025 works
This is a sensor-monitoring application: a DHT11 collector records temperature and humidity in CSV, while a Flask web app serves a page and exposes date-range data and analysis routes. Analysis summarizes readings and attempts to generate an HTML report with an OpenAI client; the repository excerpt does not show that client being initialized. A separate Express service emails reports. The README is empty, and the page template and CSV contents were not sampled, so their UI behavior and data format beyond the Python code are not inferred.
Main entry points: sensor_readings.csv Readings CSV · app.py Flask app · analyse.py Range analysis route · dht11.py DHT11 sensor
Components 10
Sensor collection
- DHT11 sensor
backend/dht11.py - Readings CSV
backend/sensor_readings.csv
Web and analysis
- Flask app
app.py - Dashboard page
templates/index.html - Range data route
backend/analyse.py - Range analysis route
backend/analyse.py
Report delivery
- Email server
static/emailServer.js
Other components
- User
- OpenAI service
- Gmail service
Connections 7
- DHT11 sensor → Readings CSV: writes readings
backend/dht11.py - Flask app → Dashboard page: renders page
app.py - Flask app → Range data route: registers routes
app.py - Range data route → Readings CSV: reads range
backend/analyse.py - Range analysis route → Readings CSV: reads range
backend/analyse.py - Range analysis route → OpenAI service: requests report
backend/analyse.py - Email server → Gmail service: sends email
static/emailServer.js