AI-Powered Rooftop Solar Analysis Platform
Analyze rooftop solar potential instantly using satellite data, climate intelligence, and AI.
🌐 Live Demo · ⭐ Star on GitHub
SolarVision is a free, AI-powered web platform that helps homeowners, businesses, and policymakers instantly evaluate rooftop solar potential anywhere in the world.
Most people don’t know whether solar is worth it for their specific roof. Traditional solar assessments are:
- 💸 Expensive — $100–$500 per consultation
- 🔒 Technical — confusing jargon and spreadsheets
- 🌍 Limited — unavailable in many regions
SolarVision democratizes solar decision-making by combining:
- 🛰️ Satellite imagery for accurate rooftop selection
- ☀️ 6 years of NASA climate data for precise energy modeling
- 🤖 AI assistant for personalized explanations
- 📊 Financial modeling (ROI, LCOE, IRR, NPV, payback period)
- ⚡ Energy generation estimates with degradation modeling
- 🌱 Environmental impact metrics (CO₂ reduction, trees, cars off road)
Result: Instant, accurate, and free rooftop solar analysis — anywhere.
| Feature | Description |
|---|---|
| 🗺️ Interactive Map | Select rooftops using satellite imagery with OpenStreetMap building detection |
| ☀️ Energy Analysis | Monthly & annual generation using NASA POWER irradiance data |
| 💰 Financial ROI | DEWA-tiered rates, LCOE, IRR (Newton-Raphson), 25-year NPV |
| 🌱 Impact Metrics | CO₂ reduction, tree equivalents, cars-off-road equivalents |
| 🤖 AI Assistant | Powered by Groq LLaMA 3.3 70B |
| 📄 PDF Reports | Professional downloadable reports |
| 🌗 Light & Dark Mode | OS preference detection with full theme sync |
| 🎨 Premium UI | Glass morphism, smooth animations |
| 📱 Mobile Responsive | Fully optimized layout |
| 🔄 Expand Mode | Full-screen analysis dashboard |
| Layer | Technology |
|---|---|
| Frontend | HTML5, CSS3 (Glass Morphism), Vanilla JavaScript |
| Mapping | Leaflet.js, OpenStreetMap, Google Satellite, Turf.js |
| AI | Groq LLaMA 3.3 70B (via serverless proxy) |
| Climate Data | NASA POWER API |
| Backend | Python 3, Vercel Serverless Functions |
| jsPDF, html2canvas | |
| Deployment | Vercel |
graph LR
A[User Selects Roof] --> B[Roof Area Calculation]
B --> C[NASA Climate Data]
C --> D[Performance Modeling]
D --> E[Energy Output]
E --> F[Financial Analysis]
E --> G[Environmental Impact]
F --> H[Results Dashboard]
G --> H
H --> I[AI Explanation]
SolarVision is tuned for hot-desert environments (UAE).
| Parameter | Value |
|---|---|
| Electricity Rate | 0.38 AED/kWh (DEWA Slab 2) |
| Dust/Soiling Loss | 4% |
| Cloud Factor | 95% |
| Optimal Tilt | 25° |
| System Efficiency | 84% |
| Panel Degradation | 0.5% / year |
| CO₂ Factor | 0.42 kg/kWh |
git clone https://github.com/Hamdan772/SolarVision.git
cd SolarVision
cp .env.example .env
# Add your GROQ_API_KEY
python server_local.py| Page | URL |
|---|---|
| Landing Page | http://localhost:8000/index.html |
| Calculator | http://localhost:8000/solar_advanced.html |
| AI Proxy | http://localhost:8000/api/groq |
- UAE-optimized calculator
- Satellite rooftop selection
- AI assistant
- Financial & environmental modeling
- PDF generation
- Premium UI
- Global region support
- Progressive Web App
- Shading analysis
- Battery recommendations
- 3D roof modeling
- Installer marketplace
- Real-time monitoring
- Multi-language support
| Goal | Description |
|---|---|
| SDG 7 | Affordable & Clean Energy |
| SDG 11 | Sustainable Cities |
| SDG 12 | Responsible Consumption |
| SDG 13 | Climate Action |
git checkout -b feature/amazing-feature
git commit -m "Add amazing feature"
git push origin feature/amazing-featureOpen a Pull Request 🚀
This project is licensed under the MIT License.
⭐ Star this repo if you find it useful!
Built with ☀️ for a sustainable future.
