Energy Charts tariff: add 1h cache
This commit is contained in:
parent
3808ed12b4
commit
9b2ff91643
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue