How aimlnitishkumar/predictive-green-energy-engine works
MRV CleanTech is a tenant-scoped energy monitoring and carbon-accounting platform. Meter readings enter through the FastAPI ingestion API, are stored with tenant and meter records, and feed interval matching and emissions calculations. The dashboard requests an overview from that API and displays energy metrics; Celery tasks can aggregate readings into daily and monthly reports. The README also identifies compliance, meter management, and reporting as command-center capabilities, though the sampled frontend excerpt shows those areas primarily as dashboard UI. Source excerpts do not establish the full service wiring or report-task dispatch.
Main entry points: main.py Overview API · tasks.py Carbon report task · settings.py Django settings · App.tsx MRV dashboard
Components 12
Command center
- MRV dashboard
frontend/src/App.tsx - React entry
frontend/src/main.tsx
Ingestion and API
- Overview API
ingestion/main.py - Reading ingestion
ingestion/main.py
MRV domain
- Tenant meter readings
mrv/models.py - Carbon calculations
mrv/services.py - Carbon report task
mrv/tasks.py
Runtime configuration
- Celery app
config/celery.py - Django settings
config/settings.py
Other components
- Workspace user
- PostgreSQL / TimescaleDB
- Redis broker/backend
Connections 15
- Workspace user → MRV dashboard: views
README.md - React entry → MRV dashboard: renders
frontend/src/main.tsx - MRV dashboard → Overview API: fetches overview
frontend/src/App.tsx - Overview API → Tenant meter readings: reads tenant readings
ingestion/main.py - Overview API → Carbon calculations: calculates metrics
ingestion/main.py - Reading ingestion → Tenant meter readings: upserts readings
ingestion/main.py - Reading ingestion → PostgreSQL / TimescaleDB: writes
ingestion/main.py - Overview API → PostgreSQL / TimescaleDB: reads
ingestion/main.py - Carbon report task → Tenant meter readings: reads readings
mrv/tasks.py - Carbon report task → Carbon calculations: aggregates
mrv/tasks.py - Carbon report task → PostgreSQL / TimescaleDB: reads
mrv/tasks.py - Django settings → PostgreSQL / TimescaleDB: configures
config/settings.py - Django settings → Redis broker/backend: configures broker
config/settings.py - Celery app → Django settings: loads configuration
config/celery.py - Celery app → Redis broker/backend: uses broker