From c2fc6ff297ffe53a69fa6d2d33e86e06430636ae Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 16 Feb 2025 16:52:56 +0100 Subject: [PATCH] chore: minor --- 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 6a3dbf606..36799c9e0 100644 --- a/templates/definition/tariff/forecast-solar.yaml +++ b/templates/definition/tariff/forecast-solar.yaml @@ -65,7 +65,7 @@ render: | source: http uri: https://api.forecast.solar/{{ if .apikey }}{{ .apikey }}/{{ end }}estimate/{{ .lat }}/{{ .lon }}/{{ .dec }}/{{ .az }}/{{ .kwp }}?time=utc&full=1&resolution=60{{ if .horizon }}&horizon={{ .horizon }}{{ end }} jq: | - [ .result.watt | to_entries.[] | { + [ .result.watts | to_entries.[] | { "start": (.key | strptime("%FT%T%z") | strftime("%FT%TZ")), "end": (.key | strptime("%FT%T%z") | mktime+3600 | strftime("%FT%TZ")), "price": .value