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

Changes the ip resolver from ip-api.com to ipapi.com because of https #78

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

ribalba
Copy link
Member

@ribalba ribalba commented Jun 5, 2024

See discussion here #77

Having https should be standard IMHO. Thx to vszakats for bringing this to our attention

Copy link

github-actions bot commented Jun 5, 2024

Old Energy Estimation

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run 6.62417 24.7645 1.7689 26
Measurement #1 0.717143 12.3823 1.7689 7
Sleep #2 0.858571 12.3823 1.7689 8

📈 Energy graph:

 
 2.00 ┼─────────────
       Watts over time

🌳 CO2 Data:
City: Boydton, Lat: 36.6534, Lon: -78.375
Carbon Intensity for this location: 394 gCO₂eq/kWh
SCI: 0.009757 gCO₂eq / pipeline run emitted

@vszakats
Copy link

vszakats commented Jun 5, 2024

Patch for the README:

--- a/README.md
+++ b/README.md
@@ -109,7 +109,7 @@ jobs:
 - `send-data`: (optional) (default: true)
   - Send metrics data to metrics.green-coding.io to create and display badge, and see an overview of the energy of your CI runs. Set to false to send no data. The data we send are: the energy value and duration of measurement; cpu model; repository name/branch/workflow_id/run_id; commit_hash; source (GitHub or GitLab). We use this data to display in our green-metrics-tool front-end here: https://metrics.green-coding.io/ci-index.html
 - `show-carbon`: (optional) (default: true)
-  - Gets the location using http://ip-api.com
+  - Gets the location using https://ipapi.co/
   - Get the CO2 grid intensity for the location from https://www.electricitymaps.com/
   - Estimates the amount of carbon the measurement has produced
 - `display-table`: (optional) (default: true)

@ribalba
Copy link
Member Author

ribalba commented Jun 5, 2024

Well spotted @vszakats thanks.

Copy link

github-actions bot commented Jun 5, 2024

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run 6.53583 24.7645 1.7689 25
Measurement #1 0.782857 12.3823 1.7689 7
Sleep #2 0.5 12.3823 1.7689 8

📈 Energy graph:

 
 2.00 ┼─────────────
       Watts over time

🌳 CO2 Data:
City: Chicago, Lat: 41.8874, Lon: -87.6318
Carbon Intensity for this location: 410 gCO₂eq/kWh
SCI: 0.010153 gCO₂eq / pipeline run emitted

@ArneTR ArneTR merged commit e040cd4 into main Jun 5, 2024
2 checks passed
ArneTR added a commit that referenced this pull request Jun 13, 2024
* main:
  Removing old GitHub runners
  Update README.md
  Changes the ip resolver from ip-api.com to ipapi.com because of https (#78)
@ArneTR ArneTR deleted the changes-ip-service-to-https branch July 17, 2024 10: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