From f46ef1964a7349948e789f9f30774aec3065d2f4 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Fri, 14 Feb 2025 14:49:43 +0100 Subject: [PATCH] Forecast.solar: fill empty, enforce hourly (#18802) --- templates/definition/tariff/forecast-solar.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/definition/tariff/forecast-solar.yaml b/templates/definition/tariff/forecast-solar.yaml index 9280b0fb1..79dea0a3b 100644 --- a/templates/definition/tariff/forecast-solar.yaml +++ b/templates/definition/tariff/forecast-solar.yaml @@ -54,7 +54,7 @@ render: | tariff: solar forecast: source: http - uri: https://api.forecast.solar/{{ if .apikey }}{{ .apikey }}/{{ end }}estimate/{{ .lat }}/{{ .lon }}/{{ .dec }}/{{ .az }}/{{ .kwp }}?time=utc&no_sun=1 + uri: https://api.forecast.solar/{{ if .apikey }}{{ .apikey }}/{{ end }}estimate/{{ .lat }}/{{ .lon }}/{{ .dec }}/{{ .az }}/{{ .kwp }}?time=utc&full=1&resolution=60 jq: | [ .result.watt_hours_period | to_entries.[] | { "start": (.key | strptime("%FT%T%z") | strftime("%FT%TZ")),