carbon-intensity / api-definitions

This is the Official Carbon Intensity API for Great Britain, developed by NESO.
http://carbonintensity.org.uk/
26 stars 3 forks source link

No generation data after the new year (2022) #12

Open adfi opened 2 years ago

adfi commented 2 years ago

Hi, I'm using the /generation endpoint from the API to query carbon intensity generation percentages for a range of dates. My query url is https://api.carbonintensity.org.uk/generation/<start date>/<end date>. The range of dates is usually the next 5 days.

However in the last 2 days my query did not produce any data for the new year. I've managed to recreate this in the browser. If I submit the query https://api.carbonintensity.org.uk/generation/2021-12-30/2022-01-02 I don't get data after the 31st. However when I submit a different query https://api.carbonintensity.org.uk/generation/2022-01-01/2022-01-02 the data does appear.

adfi commented 1 year ago

A year has passed and I didn't learn my lesson the first time. The problem is still there...now I just wish I had written down how I worked around it the last time.