Calculating carbon intensity
In this tutorial, you will learn how to use FlatPeak API to calculate carbon footprint of your devices, in addition to the monetary cost of energy they use.
Introduction
FlatPeak enables access to carbon intensity rates for any location in the world, and access to historic carbon data is available up to 72 hours into the future. You can use this service to report historic carbon consumption costs and to schedule your products and services to use low-carbon energy.
Combining monetary and carbon cost
With FlatPeak, you can access both tariff and carbon datasets pre-normalized for the requested time interval:
How FlatPeak obtains carbon data
FlatPeak is not a carbon data supplier. We source carbon data from ElectricityMaps (paid) and CarbonIntensityUK (free). You will need to provide API keys from your account with ElectricityMaps to use this service anywhere outside of the United Kingdom - where we use CarbonIntensityUK, which is free and does not require you to enter an API key.
Supplier | Description |
---|---|
ElectricityMaps | provides global coverage using your own ElectricityMaps account details. You can sign up for a free trial if you’re not already a customer. Once you have their API key, enter it in the Integrations sections in FlatPeak Dashboard. |
CarbonIntensityUK | is very granular, enabled by default, and free but only provides data for the United Kingdom. |
Troubleshooting carbon datasource integration
If you are not getting carbon intensity data when making requests to tariff-rates or cost-calculations API endpoints, follow these steps to troubleshoot:
Check Location object
Make sure that the Location object has a value in the carbon
property:
Get carbon region record from FlatPeak Grid API
Query /regions endpoint of FlatPeak Grid API to get the description for the assigned region; make sure it is what you are expecting, i.e. if you supplied a postal address in the Republic of Ireland, reference_id
shall be set to IE:
Get carbon source record from FlatPeak Grid API
Note thesource_id
and query /sources endpoint of FlatPeak Grid API. The response will provide information about the carbon data supplier.
Understanding the error
If supplier name is CarbonIntensityUK | Used for all UK addresses and geolocations. If you are querying for a UK location and not getting carbon data, contact support |
If supplier name is ElectricityMaps | Used for the rest of the world. If you are not getting data, you probably have not purchased access for that region from ElectricityMaps; contact them for support. |
Was this page helpful?