thegreenwebfoundation / green-cost-explorer

See how much of your cloud bill is spent on fossil fuels ,so you can do the right thing and switch. We're in a climate crisis, remember?
Apache License 2.0
171 stars 18 forks source link

Show cost data over time #12

Closed vsmart closed 5 years ago

vsmart commented 5 years ago

As outlined in the readme, show cost data split over time using the API's given time series chunks:

|          | Grey   | Green  |
-----------|--------|--------|
|Aug  2018 |  40%   |  60%   |
|Sept 2018 |  40%   |  60%   |
|Oct  2018 |  40%   |  60%   |
|Nov  2018 |  40%   |  60%   |
|Dec  2018 |  40%   |  60%   |

rather than only

|          | Grey   | Green  |
-----------|--------|--------|
|Total     |  40%   |  60%   |

Changes are needed in two places to do this:

1) note timestamp when aggregating data by region here 2) respect timestamp when summing up total here

cc @mrchrisadams

mrchrisadams commented 5 years ago

Sounds good Franka 👍