Closed github-actions[bot] closed 1 year ago
hey @fershad this is an automated pull request to, update the numbers each month, but I'm a little unsure about when the underlying data is was taken from. Do you know if we have docs to tell if this is data from readings for June, for example?
Thanks @mrchrisadams, so good to see this come through!
The underlying data here is fetched directly from Ember's dataset https://github.com/thegreenwebfoundation/co2.js/blob/005fbef141f623919937296bc045eed807e26735/data/functions/generate_average_co2.js#L5 and parsed so that the data for the latest available year is retained.
It's still average annual grid intensity, but by running this query every month we can keep closely up to date with regular data changes that Ember makes.
.github/workflows/update-average-intensities.yml
anddata/functions/generate_average_co2.js