VOOZH about

URL: https://dev.to/jaysid97/ecotwin-an-ai-climate-coach-for-real-world-emissions-cuts-4dk7

⇱ EcoTwin: An AI Climate Coach for Real-World Emissions Cuts - DEV Community


DEV Weekend Challenge: Earth Day

What I Built
Most climate tools diagnose. EcoTwin prescribes.

EcoTwin is a personalized climate action coach that turns a few everyday inputs, like commute habits, food choices, home energy use, and travel frequency, into a practical action plan with estimated annual CO2e savings.

Instead of stopping at a “guilt score,” EcoTwin estimates a baseline footprint, shows a before/after projection, and recommends the highest-impact changes first.

Users get:

  • A baseline annual footprint estimate
  • A personalized set of top climate actions
  • Projected annual CO2e savings
  • A concise AI coaching summary powered by Gemini (with fallback if a key is unavailable)

Demo
Live demo:https://ecotwin-qsgv.onrender.com/

Quick walkthrough:

  1. Open the app
  2. Enter a city and lifestyle inputs
  3. Click Generate My Climate Plan
  4. Review before/after footprint and recommended actions
  5. Read the AI coach summary

Code
Source code is in the project folder and includes:
-Backend:Flask API for scoring, recommendations, and AI summary
-Frontend:HTML/CSS/JS dashboard with interactive results
-Data:Curated action library with estimated CO2e savings

Core implementation highlights:

  • Transparent footprint estimation model
  • Rule-based personalization by user profile
  • Gemini API integration for natural-language coaching
  • Stable local fallback summary for reliability

How I Built It
I built EcoTwin as a focused full-stack Flask app to keep it easy to run, easy to demo, and easy to judge.

Architecture flow:

  1. Frontend collects a lightweight user profile
  2. Backend computes annual baseline emissions
  3. Action library is filtered by relevance and sorted by impact
  4. App calculates projected reductions and renders before/after metrics
  5. Gemini generates a short personalized coaching summary

Design decisions:

  • Kept input friction low so users can get value in seconds
  • Prioritized practical behavior-change suggestions over abstract climate theory
  • Added clear before/after visuals to make impact tangible during a live demo

Prize Categories
This submission is for:

  • Best Use of Google Gemini
  • Best Use of GitHub Copilot

Team
Solo submission.