How ngcddev/sistema-distribuido-de-monitoreo-iot-simulado works
AgroSense simulates an environmental IoT network: the simulator reads active sensors and posts generated readings, which the Measurements API stores. Users enter through Home to inspect measurements and monitoring results; Monitoring fetches readings and sensor metadata, computes summaries, evaluates thresholds, and records alerts. The graph separates those domain responsibilities while retaining each service’s independent MySQL store. HTTP topology and Home proxy behavior are documented in the README; sampled source confirms simulator and Monitoring calls, persistence helpers, and browser requests. Other detailed service behavior is represented from README capabilities, not unsampled implementation.
Main entry points: script.js Home interface · monitoreo/app.py Threshold evaluation · mediciones/app.py Measurements API · database.py Monitoring MySQL
Components 13
User interface
- Home interface
home/script.js - Home proxy
home/nginx.conf
Sensor ingestion
- Reading simulator
simulador/app.py - Measurements API
mediciones/app.py
Sensor catalog
- Sensor catalog API
sensores/app.py
Monitoring
- Monitoring summaries
monitoreo/app.py - Threshold management
monitoreo/app.py - Threshold evaluation
monitoreo/app.py - Alert management
monitoreo/app.py
Persistence
- Measurements MySQL
mediciones/database.py - Sensors MySQL
sensores/database.py - Monitoring MySQL
monitoreo/database.py
Other components
- Browser user
Connections 19
- Browser user → Home interface: uses
README.md - Home interface → Home proxy: requests via
README.md - Home interface → Measurements API: fetches
home/script.js - Home interface → Monitoring summaries: fetches
home/script.js - Home interface → Threshold management: fetches
home/script.js - Home interface → Threshold evaluation: fetches
home/script.js - Home interface → Alert management: fetches
home/script.js - Reading simulator → Sensor catalog API: loads sensors
simulador/app.py - Reading simulator → Measurements API: posts readings
simulador/app.py - Measurements API → Measurements MySQL: reads/writes
mediciones/app.py - Sensor catalog API → Sensors MySQL: reads/writes
sensores/app.py - Monitoring summaries → Measurements API: fetches readings
monitoreo/app.py - Threshold evaluation → Measurements API: fetches readings
monitoreo/app.py - Threshold evaluation → Sensor catalog API: looks up sensor
monitoreo/app.py - Monitoring summaries → Monitoring MySQL: reads
monitoreo/app.py - Threshold management → Monitoring MySQL: reads/writes
monitoreo/app.py - Threshold evaluation → Monitoring MySQL: reads thresholds
monitoreo/app.py - Threshold evaluation → Alert management: records alerts
monitoreo/app.py - Alert management → Monitoring MySQL: reads/writes
monitoreo/app.py