electricitymaps / bloom-contrib

Making carbon footprint data available to everyone.
https://www.bloomclimate.com
MIT License
434 stars 104 forks source link

Use 2011 exchange rates for monetary emission factors calculations #413

Closed martincollignon closed 4 years ago

martincollignon commented 4 years ago

Full process for determining the carbon footprint of a transaction 1) Assign transaction to a transaction category 2) Convert the transaction amount to 2011 amount in the country of purchase (currently using annual consumer price index averages by country, improvement possibilities: category averages & monthly consumer price index by country) 3) Convert the transaction amount in 2011 amount in the country of purchase to transaction amount in 2011 EUR amount in the country of purchase. Currently we're using the latest available in https://github.com/tmrowco/northapp-contrib/blob/master/integrations/utils/currency/exchange_rates.json 4) Multiply the transaction amount in 2011 EUR amount in the country of purchase to the emission factor.

What this issue is about Convert the transaction amount in 2011 amount in the country of purchase to transaction amount in 2011 EUR amount in the country of purchase. Currently we're using the latest available in https://github.com/tmrowco/northapp-contrib/blob/master/integrations/utils/currency/exchange_rates.json

Solution