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

Is there a way we can allow carbon intensity value to be passed into swd calculations? Also seems like the green web hosting check is not being used at all in SWD model #132

Closed mohan-murali closed 1 year ago

mohan-murali commented 1 year ago

Hi,

Is there a way in which I can pass a carbon intensity value into the perVisit and perByte function to help me in calculating the co2? Also it seems that current the green web hosting flag is not being used at all. I feel that it is wrong.

image

fershad commented 1 year ago

In the v0.12.0 release we introduced two new functions which allow for custom CO2 intensity figures to be passed into the SWD model. We're working on documenting this on the developer docs site, but these release notes should help you get started.

https://www.thegreenwebfoundation.org/news/release-guide-co2-js-v0-12/

@mohan-murali could you elaborate on what you mean by the green web hosting flag not being used at all?

mohan-murali commented 1 year ago

Thanks, I will check that.

mohan-murali commented 1 year ago

Sorry, Just now checked the code. Seems like the green web hosting flag is being used. Closing the issue. Thanks for the help!