Skip to content

Add electricity map as an electricity impact factor provider #117

@da-ekchajzer

Description

@da-ekchajzer

Problem

I want to use the electricity map API to provide the carbon electrical impact factor when I evaluate the usage impacts of my devices and components.

Solution

See : https://static.electricitymap.org/api/docs/index.html#introduction

Embed electricity map query parameter in the usage object :

"usage":{
"electricity_map": {
   "zone": "elec_map_zone"
   "date":{"date", "latest"},
   "token": "elec_map_token"
}
}

if date is "latest" :
https://api.electricitymap.org/v3/carbon-intensity/latest?zone=[zone]

if date is a date :
https://api.electricitymap.org/v3/carbon-intensity/past?zone=[zone]&datetime=[date]

If date is not given:
https://api.electricitymap.org/v3/power-breakdown/latest?zone=[zone]

If zone is not given
zone=[usage_location]
note: A conversion need to be done between NATO country code use in Boaviztapi and electricity map zone name

-H 'auth-token: elec_map_token' must be added for each querry

TODO

  • Map electricity map zone with Nato country code
  • Implement the process describe above in the usage object (applicable for all objects with a usage)

Multicriteria

I added an issue to electricity map' repo to integrate multi-criteria impacts electricitymaps/electricitymaps-contrib#4518

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions