How ummadipravallika2115/sentinel-iot-backend works
Sentinel-IoT is an industrial machine-health monitoring web app. Its principal workflow is simulated or device telemetry reaching Flask ingestion, being classified and persisted, with emergency alerts; authenticated users view machine history and export audit reports. The README also documents CSV logging and live charts, which are not visible in the sampled backend excerpt, so those links are marked unverified. The simulator’s configured URL does not include the shown ingestion route, so its connection is documented but not confirmed.
Main entry points: app.py Telemetry Ingestion · sentinel_ultra.db Machine Log Store · dashboard.html Live Dashboard · device_simulator.py Device Simulator
Components 16
Telemetry Monitoring
- Device Simulator
device_simulator.py - Telemetry Ingestion
app.py - Health Classification
app.py - Machine Log Store
sentinel_ultra.db - CSV Audit Trail
machine_logs.csv
Access and Dashboard
- Login
templates/login.html - OTP Verification
templates/verify_otp.html - Authentication Routes
app.py - Dashboard Route
app.py - Live Dashboard
templates/dashboard.html
History and Reports
- Machine Listing
app.py - Telemetry History
app.py - Report Export
app.py - PDF Generation
app.py
External Integrations
- Telegram Alerts
Other components
- Operator
Connections 18
- Operator → Authentication Routes: signs in
app.py - Authentication Routes → Login: renders
app.py - Authentication Routes → OTP Verification: renders
app.py - Authentication Routes → Dashboard Route: redirects
app.py - Operator → Dashboard Route: requests
app.py - Dashboard Route → Live Dashboard: renders
app.py - Device Simulator → Telemetry Ingestion: sends telemetry
README.md - Telemetry Ingestion → Health Classification: classifies readings
app.py - Telemetry Ingestion → Telegram Alerts: sends emergency alert
app.py - Telemetry Ingestion → Machine Log Store: writes log
app.py - Telemetry Ingestion → CSV Audit Trail: logs readings
README.md - Live Dashboard → Machine Listing: requests machines
README.md - Live Dashboard → Telemetry History: requests trends
README.md - Machine Listing → Machine Log Store: queries
app.py - Telemetry History → Machine Log Store: queries
app.py - Operator → Report Export: requests report
README.md - Report Export → Machine Log Store: reads logs
app.py - Report Export → PDF Generation: generates report
app.py