# Forecast.Solar

Source: https://docs.evcc.io/en/tariffs/forecast-solar

[forecast.solar](https://forecast.solar) can be used for free. Paid plans can also be used by specifying an API key.

Supported features: Global

## Parameters

| Name | Description | Default / example | |
| --- | --- | --- | --- |
| lat | Latitude | 55.7351 |  |
| lon | Longitude | 9.1275 |  |
| az | Azimuth Orientation of PV modules in degree. -180 = north, -90 = east, 0 = south, 90 = west, 180 = north | 0 |  |
| dec | Decline 0 = horizontal, 90 = vertical | 25 |  |
| kwp | Maximum generator power | 9.8 kWp |  |
| horizon | Horizon Simulates terrain shadows, [doc.forecast.solar](https://doc.forecast.solar/horizon) | 0,0,15,30,45,60,60,60,45,30,15,0 | advanced |
| apikey | API Key |  | advanced |
| interval | Interval | 1h | advanced |

## Configuration example for evcc.yaml

```yaml
tariffs:
    solar:
      - type: template
        template: forecast-solar
        lat: 55.7351 # Latitude
        lon: 9.1275 # Longitude
        az: 0 # Azimuth, Orientation of PV modules in degree. -180 = north, -90 = east, 0 = south, 90 = west, 180 = north
        dec: 25 # Decline, 0 = horizontal, 90 = vertical
        kwp: 9.8 # Maximum generator power (kWp)
        horizon: 0,0,15,30,45,60,60,60,45,30,15,0 # Horizon, Simulates terrain shadows, [doc.forecast.solar](https://doc.forecast.solar/horizon) (optional)
        apikey: # API Key, optional
        interval: 1h # Interval, optional
```
