PROJECT 12 • DAY 15 OF 90 • ENERGY INTELLIGENCE

AMPERENEST
ENERGY ENGINE.

An enterprise-grade Django 5.1 electricity management platform implementing verified Tamil Nadu TANGEDCO LT-1A telescopic slab calculations, multi-household sub-meter tracking, moving-average bill projections, appliance drain audits, and proactive 80% budget surge alerts.

Python 3.12Django 5.1.15PostgreSQL / SQLite3Plotly.jsTANGEDCO LT-1A28/28 Tests
AmpereNest Preview
TARIFF ENGINE
TANGEDCO LT-1A
TEST SUITE
28 / 28 Passed
7 Modules
Full Energy Suite
LT-1A Slabs
Verified TNPDCL Tiers
>=2 Guard
Sparse Forecast Shield
28 / 28
Automated Tests Passed
01 / Overview

ELIMINATING POST-FACTO ELECTRICITY BILL SHOCK.

Non-linear telescopic slabs make mid-cycle bill estimation difficult for households. AmpereNest tracks daily dial or kWh readings across sub-meters and exposes exact slab progression before cycle close.

01

TANGEDCO LT-1A Engine

Computes exact non-linear residential telescopic slabs (0–100 free, 101–200, 201–400, 401–500, >500 tiers) transparently.

02

Multi-Household & Sub-Meters

Switch workspaces across properties (e.g., Main 3-Phase Domestic vs Borewell Motor sub-meter) with Owner/Viewer RBAC.

03

Dial Rollover Validation

Supports both cumulative meter dial diffs and direct kWh logs while catching duplicate dates and dial inversions.

04

Cycle-End Bill Forecasting

Projects cycle-end units and INR bills using moving averages paired with a >= 2 readings sparse-data safeguard.

05

Appliance What-If Planner

Calculates kWh drain by wattage and daily run hours so households can simulate AC/heater schedule cuts.

06

Budget & Surge Alerts

Triggers rule-based warnings when daily usage spikes unexpectedly or monthly spending crosses 80% of budget.

02 / Architecture

HOW IT WORKS.

Requests pass HouseholdContextMiddleware into modular Django tariff, consumption, forecasting, alerting, and reporting services.

STAGE 01

Dial / kWh

Validate meter rollovers & inversions.

→
STAGE 02

LT-1A Slabs

Compute telescopic block-by-block cost.

→
STAGE 03

Forecasting

Moving-average cycle-end projection.

→
STAGE 04

Rule Alerts

Evaluate surge & 80% budget triggers.

→
STAGE 05

Plotly & Export

7 interactive views + Excel/CSV reports.

03 / Screenshots

APPLICATION SCREENSHOTS.

Live screens captured from the running application. Click any image to view full size, or follow setup instructions in the GitHub repository.

04 / Technical Details

UTILITY TARIFF & SAFETY SAFEGUARDS.

Key modules, rules, safety checks, and automated test results documented in the repository.

Service Module Domain Logic Verified Protection
HouseholdContextMiddleware Multi-property session switching & RBAC Blocks cross-tenant URL manipulation
Tariff & Slab Service TANGEDCO/TNPDCL LT-1A schedule engine Exact non-linear block verification
Forecast Safeguard Requires >= 2 readings in billing window Zero sparse-data hallucinated totals
Automated Tests Django unit & service verification suite 28 / 28 Passed (100%)
05 / Tech Stack

CORE TECHNOLOGIES.

Frameworks, databases, visualization tools, and testing libraries used in AmpereNest.

WEB FRAMEWORK
Django 5.1.15 • Python 3.12
DATABASE
PostgreSQL 15+ • SQLite3
VISUALIZATIONS
Plotly.js Interactive Charts
SECURITY
Household RBAC Middleware
EXPORTS
Excel & CSV Report Engine
VERIFICATION
28 / 28 Tests Passed
06 / Next Steps

FUTURE ENHANCEMENTS.

Upcoming improvements planned for AmpereNest.

Hardware smart-meter ingestion via DLMS/COSEM and MQTT streams.
Automated electricity bill OCR scanner powered by OpenCV & Tesseract.
Dual-register solar net-metering support for rooftop PV exports.
Telegram & WhatsApp conversational meter-reading logger.
Multi-state tariff presets beyond Tamil Nadu LT-1A schedules.
Seasonal cooling degree-day regression normalization.
OPEN-SOURCE PROJECT • GITHUB.COM/RAGURAMRRP

EXPLORE SOURCE & DOCS.

View the complete codebase, sample datasets, quick-launch scripts, and automated test suites on GitHub.