thegreenwebfoundation / developer-docs

The developer documentation site for The Green Web Foundations open source libraries.
https://developers.thegreenwebfoundation.org
Apache License 2.0
5 stars 13 forks source link

Update SWD docs to make it clear what grid intensity is used when a data center is green #35

Closed fershad closed 5 months ago

fershad commented 6 months ago

Related to https://github.com/thegreenwebfoundation/co2.js/issues/197

When using the perByteTrace or perVisitTrace functions for the Sustainable Web Design model in CO2.js, the user can adjust the grid intensity used when calculating data center emissions. This is captured in https://github.com/thegreenwebfoundation/developer-docs/blob/main/src/docs/co2js/tutorials/customise-website-carbon-calculations.md

However, if the user passes in a value of true for the green parameter the grid intensity used for the data center is set to 50g CO2e/kWh (as per the Sustainable Web Design model).

The purpose of this issue is so that we can ensure we clearly highlight this in the docs.