You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow developers to access real-time grid intensity data through Electricity Maps #134
Currently, there is historical yearly average and marginal grid intensity data available in CO2.js. We would like to take this a step further by giving developers a way to use CO2.js to access real-time grid intensity data from Electricity Maps and CO2signal.
This would be done by effectively providing a wrapper function that calls the Electricity Maps or CO2signal API to fetch data. Developers would need to have their own API token for the service they wish to use.
Docs for both APIs can be found at the links below:
This would separate the code logic for using an external data source from the CO2 calculation. In this way, we would also make it easier for folks to contribute other data sources (like the Germany one @mrchrisadams linked to above).
In this way developers can also use CO2.js as a means of connecting with an external data source, even if they don't want to use that data for a carbon calculations.
To make this possible, we'd have to create a new Class, which we can then expose to users. This can then be imported into a project.
Activity
mrchrisadams commentedon Mar 9, 2023
Electricity Maps isn't the only provider of information like this, but they do seem to offer the broadest global coverage.
I found out recently that in Germany, one of the major grid operators is exposing realtime information over an API too, without charging.
You can see the map version below:
https://co2map.the-nest.io
And the API docs are here:
https://portal.traxes.io/co2intensity-dev/documentation/co2itensity
fershad commentedon Apr 5, 2023
fershad commentedon Apr 5, 2023
3 remaining items
fershad commentedon Jan 25, 2024
After chatting with @rossf7 about this, based on his experience with thegreenwebfoundation/grid-intensity-go I'd like to make this a more modular approach.
This would separate the code logic for using an external data source from the CO2 calculation. In this way, we would also make it easier for folks to contribute other data sources (like the Germany one @mrchrisadams linked to above).
In this way developers can also use CO2.js as a means of connecting with an external data source, even if they don't want to use that data for a carbon calculations.
To make this possible, we'd have to create a new Class, which we can then expose to users. This can then be imported into a project.
fershad commentedon Jan 27, 2024
Being worked on in https://github.com/thegreenwebfoundation/co2.js/tree/add-external-data-sources
Should have a PR ready for review in the next couple of days.
fershad commentedon Oct 14, 2024
This would also present an opportunity to:
fershad commentedon Nov 24, 2025
Deprioritised this implementation as it is something that would require some funding before we can dedicate time to it.