Energy Charts tariff: add 1h cache

This commit is contained in:
andig 2024-05-08 14:43:51 +02:00
parent 3808ed12b4
commit 9b2ff91643

View file

@ -41,3 +41,4 @@ render: |
source: http
uri: https://api.energy-charts.info/price?bzn={{ .bzn }}&end={{"{{"}} now | dateModify "+24h" | date "2006-01-02" {{"}}"}}
jq: '[.unix_seconds, .price] | transpose | map({ "start": (.[0] | todate), "end": ((.[0]+3600) | todate), "price": (.[1]/1000)}) | tostring'
cache: 1h