thegreenwebfoundation / co2.js

An npm module for accessing the green web API, and estimating the carbon emissions from using digital services
Other
385 stars 48 forks source link

[AUTOMATED] Update average annual grid intensities #152

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago
mrchrisadams commented 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?

fershad commented 1 year ago

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.