So a little context: i found an API that returns the Garbage Collection for my city in a JSON array, NICE! One problem though it returns the dates in some weird order, so i’m having some trouble determining which collection is next… (REST sensor)
Any help on sorting the output or an idea how i get the right entry?
example output:
[
{
"allDay":true,
"color":"brown",
"start":"2019-08-08T00:00:00+02:00",
"title":"P-K"
},
{
"allDay":true,
"color":"grey",
"start":"2019-08-09T00:00:00+02:00",
"title":"Restafval"
},
{
"allDay":true,
"color":"grey",
"start":"2019-08-16T00:00:00+02:00",
"title":"Restafval"
},
{
"allDay":true,
"color":"blue",
"start":"2019-08-21T00:00:00+02:00",
"title":"PMD"
},
{
"allDay":true,
"color":"grey",
"start":"2019-08-23T00:00:00+02:00",
"title":"Restafval"
},
{
"allDay":true,
"color":"grey",
"start":"2019-08-30T00:00:00+02:00",
"title":"Restafval"
},
{
"allDay":true,
"color":"grey",
"start":"2019-01-04T00:00:00+01:00",
"title":"Restafval"
},
{
"allDay":true,
"color":"lightgreen",
"start":"2019-01-04T00:00:00+01:00",
"title":"Kerstboom"
},
{
"allDay":true,
"color":"blue",
"start":"2019-01-09T00:00:00+01:00",
"title":"PMD"
}
]