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
Multicriteria
I added an issue to electricity map' repo to integrate multi-criteria impacts electricitymaps/electricitymaps-contrib#4518
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 :
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 querryTODO
Multicriteria
I added an issue to electricity map' repo to integrate multi-criteria impacts electricitymaps/electricitymaps-contrib#4518