So it’s that time of year again when my local council Green bin collection stops and I wind up with a weekly message in my logs from my rest integration.
I raised this question last year without success so to avoid rewriting here’s the previous post.
And here’s the JSON response:
{
"BinCollections": [
[
{
"JobId": 54874379,
"Usrn": 27300999.0,
"BinType": "Green bin",
"JobName": "Empty Bin 240L Green",
"JobScheduledStart": "2023-11-02T00:00:00",
"JobStatus": "Collected",
"CustomerAllowedToReportMissedBin": false,
"LastDateMissedBinCanBeReported": "2023-11-06T00:00:00",
"PremisesEvents": []
},
{
"JobId": 54827920,
"Usrn": 27300999.0,
"BinType": "Orange bin",
"JobName": "Empty Bin 240L Orange",
"JobScheduledStart": "2023-11-02T00:00:00",
"JobStatus": "Collected",
"CustomerAllowedToReportMissedBin": false,
"LastDateMissedBinCanBeReported": "2023-11-06T00:00:00",
"PremisesEvents": []
}
],
[
{
"JobId": 54994125,
"Usrn": 27300999.0,
"BinType": "Black bin",
"JobName": "Empty Bin 240L Black",
"JobScheduledStart": "2023-11-09T00:00:00",
"JobStatus": "Collected",
"CustomerAllowedToReportMissedBin": false,
"LastDateMissedBinCanBeReported": "2023-11-13T00:00:00",
"PremisesEvents": []
}
],
[
{
"JobId": 55114988,
"Usrn": 27300999.0,
"BinType": "Green bin",
"JobName": "Empty Bin 240L Green",
"JobScheduledStart": "2023-11-16T00:00:00",
"JobStatus": "Collected",
"CustomerAllowedToReportMissedBin": false,
"LastDateMissedBinCanBeReported": "2023-11-20T00:00:00",
"PremisesEvents": []
},
{
"JobId": 55194723,
"Usrn": 27300999.0,
"BinType": "Orange bin",
"JobName": "Empty Bin 240L Orange",
"JobScheduledStart": "2023-11-16T00:00:00",
"JobStatus": "Collected",
"CustomerAllowedToReportMissedBin": false,
"LastDateMissedBinCanBeReported": "2023-11-20T00:00:00",
"PremisesEvents": []
}
],
[
{
"JobId": 55266377,
"Usrn": 27300999.0,
"BinType": "Black bin",
"JobName": "Empty Bin 240L Black",
"JobScheduledStart": "2023-11-23T00:00:00",
"JobStatus": "Collected",
"CustomerAllowedToReportMissedBin": false,
"LastDateMissedBinCanBeReported": "2023-11-27T00:00:00",
"PremisesEvents": []
}
],
[
{
"JobId": 55407508,
"Usrn": 27300999.0,
"BinType": "Green bin",
"JobName": "Empty Bin 240L Green",
"JobScheduledStart": "2023-11-30T00:00:00",
"JobStatus": "Collected",
"CustomerAllowedToReportMissedBin": true,
"LastDateMissedBinCanBeReported": "2023-12-04T00:00:00",
"PremisesEvents": []
},
{
"JobId": 55465715,
"Usrn": 27300999.0,
"BinType": "Orange bin",
"JobName": "Empty Bin 240L Orange",
"JobScheduledStart": "2023-11-30T00:00:00",
"JobStatus": "Collected",
"CustomerAllowedToReportMissedBin": true,
"LastDateMissedBinCanBeReported": "2023-12-04T00:00:00",
"PremisesEvents": []
}
],
[
{
"JobId": 55487225,
"Usrn": 27300999.0,
"BinType": "Black bin",
"JobName": "Empty Bin 240L Black",
"JobScheduledStart": "2023-12-07T00:00:00",
"JobStatus": "Scheduled",
"CustomerAllowedToReportMissedBin": false,
"LastDateMissedBinCanBeReported": "2023-12-11T00:00:00",
"PremisesEvents": []
}
],
[
{
"JobId": 55639600,
"Usrn": 27300999.0,
"BinType": "Orange bin",
"JobName": "Empty Bin 240L Orange",
"JobScheduledStart": "2023-12-14T00:00:00",
"JobStatus": "Scheduled",
"CustomerAllowedToReportMissedBin": false,
"LastDateMissedBinCanBeReported": "2023-12-18T00:00:00",
"PremisesEvents": []
}
],
[
{
"JobId": 55741292,
"Usrn": 27300999.0,
"BinType": "Black bin",
"JobName": "Empty Bin 240L Black",
"JobScheduledStart": "2023-12-21T00:00:00",
"JobStatus": "Scheduled",
"CustomerAllowedToReportMissedBin": false,
"LastDateMissedBinCanBeReported": "2023-12-27T00:00:00",
"PremisesEvents": []
}
],
[
{
"JobId": 57348367,
"Usrn": 27300999.0,
"BinType": "Orange bin",
"JobName": "Empty Bin 240L Orange",
"JobScheduledStart": "2023-12-29T00:00:00",
"JobStatus": "Scheduled",
"CustomerAllowedToReportMissedBin": false,
"LastDateMissedBinCanBeReported": "2024-01-03T00:00:00",
"PremisesEvents": []
}
],
[
{
"JobId": 57339190,
"Usrn": 27300999.0,
"BinType": "Black bin",
"JobName": "Empty Bin 240L Black",
"JobScheduledStart": "2024-01-05T00:00:00",
"JobStatus": "Scheduled",
"CustomerAllowedToReportMissedBin": false,
"LastDateMissedBinCanBeReported": "2024-01-09T00:00:00",
"PremisesEvents": []
}
]
]
}
I’d still really like to handle the Green bin collection suspension without a logged warning every time the sensor updates.
Any suggestion on how I can achieve that would be appreciated.