A full-stack automation tool designed to streamline the energy auditing process by automatically extracting data from electricity bills and populating calculation spreadsheets. Built for the EnergyBae AI Engineering assessment.
- Automated Data Extraction: Utilizes multimodal OCR (Google Gemini 1.5 Flash) to accurately read and parse key fields from uploaded electricity bills (PDF/Images).
- Template Integration: Directly injects extracted data (Consumer Details, Sanctioned Load, 12-Month Billing History) into the provided Excel template without modifying existing proprietary formulas.
- Modern UI: Clean, responsive dashboard built with Next.js and Tailwind CSS featuring Light/Dark mode support for optimal user experience.
- Frontend: Next.js 14 (App Router), React, Tailwind CSS, Lucide React
- Backend: Next.js API Routes (Serverless)
- Data Processing: ExcelJS for robust
.xlsxmanipulation - AI/ML Integration: Google Generative AI SDK (
@google/generative-ai)
- Clone the repository:
git clone https://github.com/ayushshukla1807/energybae-load-calculator.git
- Install dependencies:
npm install
- Set up your environment variables by creating a
.env.localfile:GOOGLE_GENERATIVE_AI_API_KEY=your_gemini_api_key_here
- Run the development server:
npm run dev
- Open http://localhost:3000 in your browser.
- Upload an electricity bill (PDF or Image format).
- The backend connects to the extraction engine to parse the document.
- The server loads
public/template.xlsxand writes the extracted metrics into the exact input cells required by the EnergyBae workflow. - The user receives a download prompt for the finalized, populated Excel sheet.
Developed by Ayush Shukla