Open mrchrisadams opened 2 years ago
thanks for opening this. The inbound mail was from me and so I am interested help fixing it. Have just to see what day next two weeks could be a good time for me for that.
Do you have a link / more info about the co2.js npm module in the meantime?
Sure.
You can see it here:
https://github.com/thegreenwebfoundation/co2.js/
And it's in use here by Wikipedia in sitespeed.io:
https://www.sitespeed.io/sitespeed.io-12.1-and-browsertime-8.1/ https://www.thegreenwebfoundation.org/news/how-to-build-a-more-sustainable-web-with-a-little-help-from-sitespeed-io/
I've been meaning to update it, but I've been holding off because I had some questions about the methodology here:
https://github.com/thegreenwebfoundation/co2.js/issues/2
Ideally, a new release would implement the methodology outlined here:
https://github.com/Green-Software-Foundation/software_carbon_intensity
From an inbound support email:
We really should update the language in the greenhouse-audit part here, and it wouldn't be that complicated to do so.
https://github.com/thegreenwebfoundation/lighthouse-plugin-greenhouse/blob/master/src/audits/greenhouse-audit.js#L19-L27
It's probably worth updating this to use the co2.js npm module now as well actually, so the sitespeed, and lighthouse action both use the same libary
Here's some information we use to refer to green energy in this context - it contains links to where it in turn bases these ideas.
https://www.thegreenwebfoundation.org/what-we-accept-as-evidence-of-green-power/