EnergyForecast: add market zone

This commit is contained in:
andig 2026-01-24 15:05:00 +01:00
parent d1ec2ede17
commit aa2e55c7a3

View file

@ -8,6 +8,9 @@ countries: ["DE"]
params:
- name: token
required: true
- name: domain
type: choice
choice: [DE-LU, AT, FR, NL, BE, PL, DK1, DK2]
- preset: tariff-base
- preset: tariff-features
render: |
@ -16,7 +19,7 @@ render: |
{{ include "tariff-features" . }}
forecast:
source: http
uri: https://www.energyforecast.de/api/v1/predictions/next_96_hours?resolution=QUARTER_HOURLY&fixed_cost_cent=0&vat=0&token={{ .token }}
uri: https://www.energyforecast.de/api/v1/predictions/next_96_hours?resolution=QUARTER_HOURLY&fixed_cost_cent=0&vat=0&token={{ .token }}{{ if .domain }}&market_zone={{ .domain }}{{ .end }}
jq: |
map({
"start": .start | strptime("%Y-%m-%dT%H:%M:%S.%f%z") | mktime | strftime("%Y-%m-%dT%H:%M:%SZ"),