-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Sustainable Web Design Model to Version 4 #119
Comments
Renamed this issue. The Sustainable Web Design Model has recently published an updated calculation based on newer data. This issue will capture the changes required in CO2.js to facilitate adding the new version to the library. The updated methodology is outlined on this page. The update includes a significant change to the calculation (linked here). Key changes from version 3 to version 4:
At this time, version 4 is open for comment. As such, version 3 (the current version implemented in CO2.js _will remain the default_. This will allow us to introduce version 4 into the library, allow users to opt-in to using it, and leave space to make changes should they be required. Eventually, we will outline a roadmap for defaulting to version 4. What this might look like: import { co2 } from '@tgwf/co2';
// These would use version 3 of the Sustainable Web Design Model
const default = new co2();
const version3 = new co2({ model: "swd" });
const explicitVersion3 = new co2({ model: "swd", version: "3" });
// This would use version 4 of the Sustainable Web Design Model
const version4 = new co2({ model: "swd", version: "4" }); As part of this update, we would also need to update the Sustainable Web Design Rating Scale that's being implemented in #207. The SWD group is working through making that update to the website & once that's done we'll look to replicate that in CO2.js. |
There's some more discussion about supporting new versions in the issue below. It's helpful context: |
Since the SWD model was worked into this library, new data and reports from DIMPACT, the IEA, Ember and Cisco systems have been published, many of which provide new top level numbers for total energy use, total transfer and so on.
This issue is a placeholder to check the original numbers in the SWD model, as well as confirm if they were using the 1024 based figure of gibibytes (often used for storage), or 1000 based figure for gigabytes (often used for transfer).
The text was updated successfully, but these errors were encountered: