From f216a440e1e4a36f43a259f4ae0fd6f310e84777 Mon Sep 17 00:00:00 2001 From: Hendrik Date: Mon, 24 Aug 2026 08:20:57 +0200 Subject: [PATCH] Energy Price Forecast: add api key (#33081) --- .../definition/tariff/energypriceforecast.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/templates/definition/tariff/energypriceforecast.yaml b/templates/definition/tariff/energypriceforecast.yaml index fda6b7222..b94f6d6d2 100644 --- a/templates/definition/tariff/energypriceforecast.yaml +++ b/templates/definition/tariff/energypriceforecast.yaml @@ -6,7 +6,7 @@ products: requirements: description: de: "Day-Ahead-Strompreise plus 4 Tage Prognose [energypriceforecast.eu](https://energypriceforecast.eu/de/evcc-strompreis-co2-prognose/)" - en: "Spot prices in day-ahead market plus 4 days prognosis [energypriceforecast.eu](https://energypriceforecast.eu)" + en: "Day-ahead spot prices plus a 4-day forecast [energypriceforecast.eu](https://energypriceforecast.eu/en/evcc-electricity-price-co2-forecast/)" evcc: ["skiptest"] group: price countries: ["DE", "NL", "BE", "DK", "FR", "AT", "CZ", "PL", "FI", "SE", "NO"] @@ -39,6 +39,10 @@ params: required: true - name: currency choice: ["EUR", "DKK", "CZK", "PLN", "SEK", "NOK"] + - name: apikey + help: + en: "Optional for forecasts up to 120 hours. [Get an API key](https://energypriceforecast.eu/en/api-early-access/)." + de: "Optional für Prognosen bis zu 120 Stunden. [API-Key erhalten](https://energypriceforecast.eu/de/api-early-access/)." - name: horizon default: 120 type: int @@ -46,6 +50,9 @@ params: description: en: Forecast horizon de: Prognosehorizont + help: + en: Anonymous access is limited to 48 hours from October 1, 2026. An API key allows up to 120 hours. + de: Anonymer Zugriff ist ab 1. Oktober 2026 auf 48 Stunden begrenzt. Mit API-Key sind bis zu 120 Stunden möglich. required: true - preset: tariff-base - preset: tariff-features @@ -56,3 +63,8 @@ render: | forecast: source: http uri: https://api.energypriceforecast.eu/api/v1/evcc/tariff?country={{.region}}&type=grid¤cy={{.currency}}&hours={{.horizon}} + {{ if .apikey }} + auth: + type: bearer + token: {{ .apikey }} + {{- end }}