Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Dec 2, 2024
2 parents 63d60c9 + 4e778a2 commit 2f7b7fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/definition/tariff/allinpower.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ render: |
forecast:
source: http
uri: https://api.allinpower.nl/troodon/api/p/spot_market/prices/?product_type=ELK
jq: '[.timestamps, .prices] | transpose | map({ "start": (.[0] | strptime("%Y-%m-%dT%H:%M:%S.%f%z") | strftime("%Y-%m-%dT%H:%M:%SZ")), "end": (.[0] | strptime("%Y-%m-%dT%H:%M:%S.%f%z") | mktime + 3600 | strftime("%Y-%m-%dT%H:%M:%SZ")), "price": .[1] }) | tostring'
jq: |
[.timestamps, .prices] | transpose | map({
"start": (.[0] | strptime("%FT%T.%f%z") | strftime("%FT%TZ")),
"end": (.[0] | strptime("%FT%T.%f%z") | mktime + 3600 | strftime("%FT%TZ")),
"price": .[1]
}) | tostring'

0 comments on commit 2f7b7fd

Please sign in to comment.