Open mrchrisadams opened 2 years ago
Oii it was you! https://github.com/thegreenwebfoundation/grid-intensity-go/commit/fbc0059b90bfb2d534fe16a756c37d3026661a35
I removed it from the readme and copy pasted it into an issue because we hadn't implemented it at the time 😄
hahah! Oops, I totally forgot about that. thank for clearing that up. Also, top quality good meme-age 👍
Hey @mrchrisadams like I mentioned in DM I'd like to have a go at this.
I think we could implement getting the 24h ahead forecast for all existing providers except Ember.
For the CLI the 2 best options I can see are
grid-intensity --provider WattTime --location ES --forecast
grid-intensity forecast --provider WattTime --location ES
My preference would be option A as I think its simpler. What do you both think?
For the Go library I'd propose adding this method to the interface.
GetForecast(ctx context.Context, location string) ([]CarbonIntensity, error)
The exporter is tricky as I can't see a good way of exposing the forecast as prometheus metrics. So I'd propose leaving this for now.
I'm putting @mrchrisadams's original work here, so we don't lose it, as it has some really cool ideas in it, that some API providers support but some don't.