Skip to content

Allow developers to access real-time grid intensity data through Electricity Maps #134

Open

Description

@fershad

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:

Activity

  1. added this to the 0.13 milestone on Mar 6, 2023
  2. mrchrisadams commented on Mar 9, 2023

    @mrchrisadams
    Member

    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

  3. fershad commented on Apr 5, 2023

    @fershad
    ContributorAuthor
  4. fershad commented on Apr 5, 2023

    @fershad
    ContributorAuthor
  5. moved this from Next to Now in CO2.js public roadmapon Apr 13, 2023
  6. modified the milestones: 0.13, 0.14 on Apr 13, 2023
  7. moved this from Now to Next in CO2.js public roadmapon Apr 13, 2023
  8. moved this from Next to Later in CO2.js public roadmapon May 5, 2023
  9. moved this from Later to Next in CO2.js public roadmapon Aug 25, 2023
  10. modified the milestones: 0.14, 0.15 on Sep 19, 2023
  11. 3 remaining items

  12. fershad commented on Jan 25, 2024

    @fershad
    ContributorAuthor

    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.

  13. fershad commented on Jan 27, 2024

    @fershad
    ContributorAuthor

    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.

  14. self-assigned this
    on Jan 27, 2024
  15. moved this from Next to Now in CO2.js public roadmapon Jan 30, 2024
  16. modified the milestones: 0.15, 0.17 on Feb 15, 2024
  17. moved this from Now to Next in CO2.js public roadmapon May 9, 2024
  18. added
    confirmedSpecced out and funded things that we are committing to release
    on Oct 11, 2024
  19. fershad commented on Oct 14, 2024

    @fershad
    ContributorAuthor

    This would also present an opportunity to:

    1. Build this in a way that supports a plugin architecture (similar to what's outlined in Switch to a plugin style approach to exposing models in CO2.js #206)
    2. Write this part of the library in TypeScript, so that we can start to move CO2.js towards using TypeScript incrementally.
  20. removed this from the 0.17 milestone on Nov 24, 2025
  21. added and removed
    confirmedSpecced out and funded things that we are committing to release
    on Nov 24, 2025
  22. fershad commented on Nov 24, 2025

    @fershad
    ContributorAuthor

    Deprioritised this implementation as it is something that would require some funding before we can dedicate time to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions