---
title: "Solar energy at home"
id: "website-demo-solar"
provider: "gemini"
date: "2026-11-25T00:00:00.000Z"
tags:
  - gemini-export
---

# Solar energy at home

## 👤 You

Explain how to estimate the daily energy from a rooftop solar system. Include a formula, a comparison table, a Python example, and sample data.

## 🤖 Assistant

## Estimate daily energy

A solar array turns sunlight into electricity. A simple estimate uses rated panel capacity, equivalent full-sun hours, and an efficiency factor.

$$
E = P \times H \times \eta
$$

For a 4 kW system with five sun-hours and 80% efficiency, the estimated output is **16 kWh** per day.

## Compare three conditions

| Sun hours | Efficiency | Daily energy |
| --- | --- | --- |
| 3 | 80% | 9.6 kWh |
| 5 | 80% | 16.0 kWh |
| 7 | 80% | 22.4 kWh |

## Calculate it in Python

```python
def daily_energy(capacity_kw, sun_hours, efficiency=0.8):
    return capacity_kw * sun_hours * efficiency

print(daily_energy(4, 5))  # 16.0 kWh
```

The example image illustrates relative daily output. The attached CSV contains synthetic readings. Actual production varies with weather, orientation, and shading.

![daily-output.png](assets/daily-output.png)

[daily-output.csv](files/daily-output.csv)
