How bluehorizon65/solar_scope works
This repository is a solar-planning web application backed by separate services for PV analysis, satellite imagery, rooftop detection, and 3D modeling. The principal workflow is: select a location and system options, submit them through the proxy, gather solar and imagery results, detect and measure the roof, and return results for display. The README also documents standalone simulation and model-viewer entry points. Some frontend and service internals were not sampled, so links between those components are included only where the excerpts or README support them.
Main entry points: App.jsx Planning app · index.js API proxy · FormPanel.jsx System form · main_v2.py PV calculator
Components 17
Planning interface
- Planning app
frontend/src/App.jsx - Location picker
frontend/src/components/MapPicker.jsx - System form
frontend/src/components/FormPanel.jsx - Solar results
frontend/src/components/SolarResults.jsx - Invoice preview
frontend/src/preview/Preview.jsx
Request orchestration
- API proxy
backend/index.js
Solar and roof analysis
- PV calculator
pv_simulation/main_v2.py - Component datasets
pv_simulation - Satellite imagery
satellite/satellite_zoom_server.py - Rooftop detection
AI/rooftop_fastapi.py
Area and 3D modeling
- Area calculation
stl/area_pipeline.py - Model generation API
stl/stl/api.py - Model creation
stl/stl/create.py - 3D model viewer
stl/stl/web.py
Other components
- Planner
- NASA POWER
- Tile provider
Connections 18
- Planner → Location picker: selects location
- Location picker → Planning app: reports location
frontend/src/App.jsx - Planner → System form: enters options
frontend/src/components/FormPanel.jsx - System form → API proxy: submits request
frontend/src/components/FormPanel.jsx - API proxy → PV calculator: requests calculation
backend/index.js - PV calculator → Component datasets: loads components
- PV calculator → NASA POWER: fetches weather
pv_simulation/main_v2.py - API proxy → Satellite imagery: requests imagery
backend/index.js - Satellite imagery → Tile provider: downloads tiles
satellite/satellite_zoom_server.py - API proxy → Rooftop detection: sends roof image
backend/index.js - API proxy → Model generation API: requests model
backend/index.js - Planning app → System form: renders form
frontend/src/App.jsx - Planning app → Location picker: renders picker
frontend/src/App.jsx - System form → Planning app: returns results
frontend/src/App.jsx - Planning app → Solar results: renders results
frontend/src/App.jsx - Planning app → Invoice preview: opens preview
frontend/src/App.jsx - Model generation API → Model creation: delegates generation
- Planner → 3D model viewer: views model
stl/stl/web.py