Add Spotty Energy tariff (#16946)

This commit is contained in:
Tom Jason Schwanke 2024-10-29 11:46:12 +01:00 • committed by GitHub
parent adf1e5a9c0
commit de704d2107
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,23 @@
template: spottyenergy
products:
- brand: Spotty Energie
requirements:
description:
de: "Nur für Österreich verfügbar."
en: "Only available for Austria."
group: price
params:
- name: contractId
example: ffffffff-4444-6666-2222-aaaaaabbbbbb
required: true
help:
de: "Die Vertragsnummer bekommst du im Kundenportal https://i.spottyenergie.at/"
en: "You can get your contract id from the customer portal https://i.spottyenergie.at/"
- preset: tariff-base
render: |
type: custom
{{ include "tariff-base" . }}
forecast:
source: http
uri: https://i.spottyenergie.at/api/prices/MARKET/{{ .contractId }}
jq: '[.[] | {start: .from, end: (.from | fromdate + 3600 | todate), price: (.price/100)}] | tostring'