diff --git a/templates/definition/tariff/spottyenergy.yaml b/templates/definition/tariff/spottyenergy.yaml new file mode 100644 index 000000000..4418d3e6d --- /dev/null +++ b/templates/definition/tariff/spottyenergy.yaml @@ -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'