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