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

Update average intensity with latest data #135

Closed fershad closed 1 year ago

fershad commented 1 year ago

This PR updates the average Grid Intensity data in CO2.js with the latest available data from Ember. It changes a few things:

fershad commented 1 year ago

I've also fixed an error with the marginal intensity code that was causing the npm run intensity-data command to fail.

fershad commented 1 year ago

LOL of course this would cause tests to fail, since the average intensity data used in some of them is not out of sync. Definitely need to work out how to make the tests more robust/introduce an acceptable margin of error before automating data updates.

fershad commented 1 year ago

Update grid intensity data for 2022 in CO2.js

mrchrisadams commented 1 year ago

Hey fish, i'm happy to merge this in.