ElectricityMaps supports a history endpoint that is already used by Elephant's history endpoint.
However, other carbon intensity API providers does not support such an endpoint, e.g. Carbon-Aware-Computing.com only support the current and future carbon intensity.
To be able to provide consistent history data independent of the used API provider we need to use a polling mechanism and store the values in a cache.
ElectricityMaps supports a
historyendpoint that is already used by Elephant's history endpoint.However, other carbon intensity API providers does not support such an endpoint, e.g. Carbon-Aware-Computing.com only support the current and future carbon intensity.
To be able to provide consistent history data independent of the used API provider we need to use a polling mechanism and store the values in a cache.