Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add ElectricityMaps support #38

Merged
merged 4 commits into from
Sep 14, 2023

Conversation

rossf7
Copy link
Contributor

@rossf7 rossf7 commented Aug 22, 2023

Towards #27

Copy link
Contributor Author

@rossf7 rossf7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is an example of the data. The Electricity Maps forecast is 24 hours with data in hourly increments.

https://static.electricitymaps.com/api/docs/index.html#forecasted-carbon-intensity

kubectl -n kube-system get configmap carbon-intensity -o json | jq -r '.binaryData["data"]' | base64 -D | jq . | head -n 30
[
  {
    "location": "westus",
    "timestamp": "2023-08-22T13:00:00Z",
    "duration": 60,
    "value": 340
  },
  {
    "location": "westus",
    "timestamp": "2023-08-22T14:00:00Z",
    "duration": 60,
    "value": 333
  },
  {
    "location": "westus",
    "timestamp": "2023-08-22T15:00:00Z",
    "duration": 60,
    "value": 286
  },
  {
    "location": "westus",
    "timestamp": "2023-08-22T16:00:00Z",
    "duration": 60,
    "value": 260
  },
  {
    "location": "westus",
    "timestamp": "2023-08-22T17:00:00Z",
    "duration": 60,
    "value": 248
...

README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
charts/carbon-intensity-exporter/values.yaml Show resolved Hide resolved
docker/server/Dockerfile Show resolved Hide resolved
Copy link
Collaborator

@pauldotyu pauldotyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great to me! Thanks @rossf7 for your contribution!

README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
charts/carbon-intensity-exporter/values.yaml Show resolved Hide resolved
docker/server/Dockerfile Show resolved Hide resolved
Copy link
Contributor

@helayoty helayoty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM many thanks for your contribution @rossf7

@helayoty helayoty merged commit b8cea44 into Azure:main Sep 14, 2023
2 checks passed
@rossf7 rossf7 deleted the feat/electricity-maps-support branch September 14, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants