Shift date and / or time before calling the API
Closed this issue · 0 comments
jnioche commented
The API returns the 30min slot with the range inclusive of the start date
carbonintensity-api -s 2023-11-19 postcode bs7
2023-11-18 23:30:00, 223
2023-11-19 00:00:00, 241
...
We should rewrite the start date so that it is aligned with the closest 30 min boundary + 1min