Skip to content

Commit

Permalink
Energy Charts tariff: add 1h cache
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed May 8, 2024
1 parent 3808ed1 commit 9b2ff91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/definition/tariff/energy-charts-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9b2ff91

Please sign in to comment.