Bonjour
J’ai un fichier json qui est rafraichi tous les jours :
cat saur_daily.json
[
{
"startDate": "2024-06-01T00:00:00",
"endDate": "2024-06-02T00:00:00",
"value": 0.1
},
{
"startDate": "2024-06-02T00:00:00",
"endDate": "2024-06-03T00:00:00",
"value": 0.17
},
{
"startDate": "2024-06-03T00:00:00",
"endDate": "2024-06-04T00:00:00",
"value": 0.08
},
{
"startDate": "2024-06-04T00:00:00",
"endDate": "2024-06-05T00:00:00",
"value": 0.15
},
{
"startDate": "2024-06-05T00:00:00",
"endDate": "2024-06-06T00:00:00",
"value": 0.1
},
{
"startDate": "2024-06-06T00:00:00",
"endDate": "2024-06-07T00:00:00",
"value": 0.13
},
{
"startDate": "2024-06-07T00:00:00",
"endDate": "2024-06-08T00:00:00",
"value": 0.15
},
{
"startDate": "2024-06-08T00:00:00",
"endDate": "2024-06-09T00:00:00",
"value": 0.17
},
{
"startDate": "2024-06-09T00:00:00",
"endDate": "2024-06-10T00:00:00",
"value": 0.19
},
{
"startDate": "2024-06-10T00:00:00",
"endDate": "2024-06-11T00:00:00",
"value": 0.08
},
{
"startDate": "2024-06-11T00:00:00",
"endDate": "2024-06-12T00:00:00",
"value": 0.35
},
{
"startDate": "2024-06-12T00:00:00",
"endDate": "2024-06-13T00:00:00",
"value": 0.29
},
{
"startDate": "2024-06-13T00:00:00",
"endDate": "2024-06-14T00:00:00",
"value": 0.12
},
{
"startDate": "2024-06-14T00:00:00",
"endDate": "2024-06-15T00:00:00",
"value": 0.33
},
{
"startDate": "2024-06-15T00:00:00",
"endDate": "2024-06-16T00:00:00",
"value": 0.19
},
{
"startDate": "2024-06-16T00:00:00",
"endDate": "2024-06-17T00:00:00",
"value": 0.2
},
{
"startDate": "2024-06-17T00:00:00",
"endDate": "2024-06-18T00:00:00",
"value": 0.15
},
{
"startDate": "2024-06-18T00:00:00",
"endDate": "2024-06-19T00:00:00",
"value": 0.14
},
{
"startDate": "2024-06-19T00:00:00",
"endDate": "2024-06-20T00:00:00",
"value": 0.23
},
{
"startDate": "2024-06-20T00:00:00",
"endDate": "2024-06-21T00:00:00",
"value": 0.08
},
{
"startDate": "2024-06-21T00:00:00",
"endDate": "2024-06-22T00:00:00",
"value": 0.09
},
{
"startDate": "2024-06-22T00:00:00",
"endDate": "2024-06-23T00:00:00",
"value": 0.14
},
{
"startDate": "2024-06-23T00:00:00",
"endDate": "2024-06-24T00:00:00",
"value": 0.18
},
{
"startDate": "2024-06-24T00:00:00",
"endDate": "2024-06-25T00:00:00",
"value": 0.2
},
{
"startDate": "2024-06-25T00:00:00",
"endDate": "2024-06-26T00:00:00",
"value": 0.22
},
{
"startDate": "2024-06-26T00:00:00",
"endDate": "2024-06-27T00:00:00",
"value": 0.28
},
{
"startDate": "2024-06-27T00:00:00",
"endDate": "2024-06-28T00:00:00",
"value": 0.21
},
{
"startDate": "2024-06-28T00:00:00",
"endDate": "2024-06-29T00:00:00",
"value": 0
},
{
"startDate": "2024-06-29T00:00:00",
"endDate": "2024-06-30T00:00:00",
"value": 0
},
{
"startDate": "2024-06-30T00:00:00",
"endDate": "2024-07-01T00:00:00",
"value": 0
}
]
J’aimerai le charger dans homeassistant pour l’afficher par exemple avec apex-charts
Comment faire ?
merci