yeah sometimes its flakey, I did experience that too. currently this works though
https://mijn.easyenergy.com/nl/api/tariff/getapxtariffs?startTimestamp=2022-10-17&endTimestamp=2022-10-18
Ill whop it into the tool you posted, lets see what givesā¦
wel, that works:
{"converted":{"ArrayOfEnergyTariff":{"@xmlns":"http://schemas.datacontract.org/2004/07/GreatValue.Common.Models.Tariffs","@xmlns:i":"http://www.w3.org/2001/XMLSchema-instance","EnergyTariff":[{"SupplierId":"0","TariffReturn":"0.12831","TariffUsage":"0.139857900000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-16T22:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.11441","TariffUsage":"0.124706900000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-16T23:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.10565","TariffUsage":"0.115158500000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T00:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.08964","TariffUsage":"0.097707600000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T01:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.07823","TariffUsage":"0.085270700000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T02:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.10133","TariffUsage":"0.110449700000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T03:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.12301","TariffUsage":"0.134080900000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T04:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.15417","TariffUsage":"0.168045300000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T05:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.18242","TariffUsage":"0.198837800000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T06:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.16110","TariffUsage":"0.175599000000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T07:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.13680","TariffUsage":"0.149112000000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T08:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.13745","TariffUsage":"0.149820500000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T09:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.12302","TariffUsage":"0.134091800000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T10:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.13207","TariffUsage":"0.143956300000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T11:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.13727","TariffUsage":"0.149624300000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T12:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.14032","TariffUsage":"0.152948800000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T13:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.16877","TariffUsage":"0.183959300000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T14:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.22116","TariffUsage":"0.241064400000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T15:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.26325","TariffUsage":"0.286942500000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T16:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.26816","TariffUsage":"0.292294400000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T17:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.19000","TariffUsage":"0.207100000000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T18:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.16425","TariffUsage":"0.179032500000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T19:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.17291","TariffUsage":"0.188471900000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T20:00:00Z","d3p1:OffsetMinutes":"0"}},{"SupplierId":"0","TariffReturn":"0.14502","TariffUsage":"0.158071800000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T21:00:00Z","d3p1:OffsetMinutes":"0"}}]}},"extracted":null}
formatted it a bit:
{"converted":
{"ArrayOfEnergyTariff":
{"@xmlns":"http://schemas.datacontract.org/2004/07/GreatValue.Common.Models.Tariffs",
"@xmlns:i":"http://www.w3.org/2001/XMLSchema-instance",
"EnergyTariff":[{"SupplierId":"0","TariffReturn":"0.12831","TariffUsage":"0.139857900000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-16T22:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.11441","TariffUsage":"0.124706900000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-16T23:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.10565","TariffUsage":"0.115158500000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T00:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.08964","TariffUsage":"0.097707600000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T01:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.07823","TariffUsage":"0.085270700000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T02:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.10133","TariffUsage":"0.110449700000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T03:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.12301","TariffUsage":"0.134080900000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T04:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.15417","TariffUsage":"0.168045300000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T05:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.18242","TariffUsage":"0.198837800000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T06:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.16110","TariffUsage":"0.175599000000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T07:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.13680","TariffUsage":"0.149112000000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T08:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.13745","TariffUsage":"0.149820500000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T09:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.12302","TariffUsage":"0.134091800000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T10:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.13207","TariffUsage":"0.143956300000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T11:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.13727","TariffUsage":"0.149624300000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T12:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.14032","TariffUsage":"0.152948800000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T13:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.16877","TariffUsage":"0.183959300000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T14:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.22116","TariffUsage":"0.241064400000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T15:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.26325","TariffUsage":"0.286942500000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T16:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.26816","TariffUsage":"0.292294400000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T17:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.19000","TariffUsage":"0.207100000000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T18:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.16425","TariffUsage":"0.179032500000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T19:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.17291","TariffUsage":"0.188471900000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T20:00:00Z","d3p1:OffsetMinutes":"0"}},
{"SupplierId":"0","TariffReturn":"0.14502","TariffUsage":"0.158071800000000000","Timestamp":{"@xmlns:d3p1":"http://schemas.datacontract.org/2004/07/System","d3p1:DateTime":"2022-10-17T21:00:00Z","d3p1:OffsetMinutes":"0"}}]}},"extracted":null}
and its really weird. I can use [0]
for attributes_path
, and then it starts at the 0 element of the array in EnergyTariff
.
Meaning, the root of the return of the resource is that EnergyTariff
? But, and thatās my search, EnergyTariff
itself is the 2nd element of the real root, being ArrayOfEnergyTariff
??
so, how to get to that root, and show the full Array of EnergyTariff
in the attributesā¦
In other words, I am trying to do this:
- name: Energieprijzen
value_template: "Ok"
json_attributes_path: "$.ArrayOfEnergyTariff"
json_attributes:
- EnergyTariff