thegreenwebfoundation / grid-intensity-go

A tool written in go to help you factor carbon intensity into decisions about where and when to run computing jobs.
Apache License 2.0
64 stars 7 forks source link

Figure out how to support monthly carbon intensity from Ember #38

Open rossf7 opened 2 years ago

rossf7 commented 2 years ago

Ember is releasing monthly carbon intensity data now.

We currently assume data is updated on an annual basis, and we do some data munging at our end to make sure you can query data by ISO-2 and ISO-3 character country codes.

This is issue is for discussion about how to incorporate monthly data into grid-intensity-go

mrchrisadams commented 9 months ago

Hey @rossf7 it's worth bearing in mind that we now run an automated monthly update in co2.js from Ember.

I think there's scope to either fetch the generated file, or duplicate the logic in the job if we need to something more specific to golang to support querying.