-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Allow developers to access real-time grid intensity data through Electricity Maps #134
Comments
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: And the API docs are here: |
There is now an API for Germany (or at least the northern part of Germany covered by the 50hz grid) https://eco2grid.50hertz.com/calculation API details below: |
This comment was marked as outdated.
This comment was marked as outdated.
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. |
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. |
This would also present an opportunity to:
|
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:
The text was updated successfully, but these errors were encountered: