thegreenwebfoundation / co2.js

An npm module for accessing the green web API, and estimating the carbon emissions from using digital services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mohan-murali opened this issue · comments

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

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?

Thanks, I will check that.

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