Problem

Rooftop solar is one of the biggest climate actions a household or school can take, but the first question, "how much would my roof make?", is usually answered by a seller with one yearly number. People don't see the monsoon dip or what a flat or west-facing roof costs.

Intended users

Households, housing societies and schools in Indian cities that are thinking about rooftop solar.

Approach

A Python command line tool and a web page. The tool sends the location, panel size, tilt and direction to PVGIS 5.3 (the European Commission's photovoltaic model, 2005-2023 weather) and reports monthly and yearly yield, year-to-year spread, avoided grid CO2 (CEA FY 2023-24 factor, 0.727 kg/kWh), the share of a household's use it covers, and the size needed to match that use. sunroof orient shows 25 tilt and direction pairs as a share of the best. The web page uses stored PVGIS answers for ten cities.

Expected environmental benefit (real figures)

  • 1 kWp of panels avoids 1,030 kg (Kolkata) to 1,192 kg (Jaipur) of grid CO2 a year.
  • A 30 m² Delhi roof (5.4 kWp) makes 8,765 kWh a year and avoids about 6.4 t of CO2. A household using 250 kWh a month would need about 1.8 kWp to match its use.
  • A flat roof keeps a median 92% of the best yield, and east or west at 20° keeps 88-89%, so many "bad" roofs are still worth it.

Tools

Python 3 standard library only (urllib, argparse), the PVGIS 5.3 API, the CEA CO2 Baseline Database v20.0, HTML/CSS/JavaScript, pytest, GitHub Pages.

Limitations

No shading from buildings or trees, no prices or payback, a free-standing mount (flush panels run hotter), and avoided CO2 uses the grid average. The web page covers ten cities; the CLI covers any location.

Challenges

PVGIS does not allow browser requests from other sites, so the page uses per-kWp answers fetched ahead of time and scales them (PVGIS yield is linear in panel power, which I checked).

What I learned

How much the monsoon shapes solar output (Mumbai's July gives 42% of March), and that orientation matters less than people assume.

Data permission

PVGIS data: © European Union, reproduction authorised with acknowledgement. CEA data is a public government publication. No personal data.

AI assistance

Built with AI-assisted coding: an AI coding assistant helped write the code, tests and documentation. The README states this. All code was written on 1 Dec 2026.

Built With

Share this project:

Updates

Submission history