Logo Lanfrica

arcticournaling/New-Solar-Somalia

Domain:

environment and energy

Record type:

softwaretools
Creator:
arc
Host:
# New Solar New Solar is a lightweight MVP website for a commercial solar calculator focused on businesses in Mogadishu. ## Tech stack - Astro for pages and routing - Svelte for the calculator component only - Plain CSS - No authentication - No maps - Local browser storage for saved estimates ## Pages - Home: `/` - Calculator: `/calculator` - Methodology: `/methodology` ## Getting started Install dependencies: ```bash npm install ``` Start the development server: ```bash npm run dev ``` Build for production: ```bash npm run build ``` Preview the production build: ```bash npm run preview ``` ## Calculator assumptions - Average peak sun hours in Mogadishu: 5.7 hours/day - System efficiency factor: 0.75 - Panel power rating: 550W - Estimated roof area per panel: 2.6 square meters - Installed solar cost range: $1,000-$1,600 per kW - Battery cost estimate: $300-$500 per kWh - Battery recommendation: 30% of daily use when backup is selected - Example battery module size: 5 kWh ## Calculation notes The main calculation logic lives in `src/components/SolarCalculator.svelte`. Version 1 uses these formulas: ```text daily_kwh = monthly_kwh / 30 coverage_decimal = coverage_percentage / 100 target_daily_solar = daily_kwh * coverage_decimal system_size_kw = target_daily_solar / (peak_sun_hours * efficiency_factor) panel_count = ceil((system_size_kw * 1000) / panel_watts) roof_space_required = panel_count * panel_area max_panels_by_roof = floor(roof_area / panel_area) max_system_size_kw = (max_panels_by_roof * panel_watts) / 1000 effective_system_size_kw = roof-limited size when roof space is constrained monthly_solar_production = effective_system_size_kw * peak_sun_hours * 30 * efficiency_factor monthly_grid_savings = min(monthly_solar_production, monthly_kwh) * electricity_cost_per_kwh diesel_savings = 0 for none, monthly_diesel_cost * 0.25 for occasional, monthly_diesel_cost * 0.6 for daily total_monthly_savings = monthly_grid_savings + diesel_savings solar_ …