How krishna99-tech/energymonitoringsoftware works
The primary product is a multi-device energy-monitoring application: meters send UDP snapshots, the FastAPI backend stores history and exposes live, summary, and export APIs, and a browser dashboard presents current readings and historical shift consumption. A separate New_EMS Flask application provides plant/meter-focused monitoring and analysis; sample_working_codes is an earlier standalone dashboard. The supplied excerpts do not show every route or frontend call, so links not established by the README or excerpts are omitted.
Main entry points: app_fastapi.py Energy history · dashboard.js Dashboard logic · dashboard.html Dashboard markup · app.py Plant monitoring
Components 15
Ingestion and storage
- UDP receiver
app_fastapi.py - Energy history
app_fastapi.py
Monitoring APIs
- FastAPI service
app_fastapi.py - Shift calculations
app_fastapi.py - Device APIs
app_fastapi.py - Live stream
app_fastapi.py - CSV reports
app_fastapi.py
Dashboard experience
- Dashboard markup
dashboard.html - Dashboard logic
static/dashboard.js - Dashboard styles
static/styles_new.css
Earlier applications
- Plant monitoring
New_EMS/app.py - Plant dashboard logic
New_EMS/static/script.js - Standalone dashboard
sample_working_codes/main.py
Other components
- Meter devices
- Dashboard user
Connections 19
- Meter devices → UDP receiver: sends snapshots
README.md - UDP receiver → Energy history: stores readings
app_fastapi.py - FastAPI service → UDP receiver: starts listener
app_fastapi.py - FastAPI service → Energy history: initializes database
app_fastapi.py - Device APIs → Energy history: reads readings
app_fastapi.py - Shift calculations → Energy history: reads history
README.md - Device APIs → Shift calculations: calculates summaries
app_fastapi.py - Live stream → Energy history: reads snapshots
app_fastapi.py - CSV reports → Energy history: queries history
app_fastapi.py - FastAPI service → Dashboard markup: serves markup
app_fastapi.py - Dashboard user → Dashboard markup: opens dashboard
README.md - Dashboard logic → Live stream: subscribes SSE
static/dashboard.js - Dashboard logic → Device APIs: fetches summaries
static/dashboard.js - Dashboard logic → CSV reports: requests exports
README.md - Dashboard markup → Dashboard logic: loads logic
README.md - Dashboard markup → Dashboard styles: uses styling
README.md - Meter devices → Plant monitoring: sends readings
- Plant dashboard logic → Plant monitoring: requests plant data
- Meter devices → Standalone dashboard: sends UDP data
sample_working_codes/main.py