Forecast.solar: fill empty, enforce hourly (#18802)

This commit is contained in:
Michael Geers 2025-02-14 14:49:43 +01:00 • committed by GitHub
parent e5e7377b5e
commit f46ef1964a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")),