-
-
Notifications
You must be signed in to change notification settings - Fork 237
Closed
Labels
Description
The URL to API-call of co2signal.com seems outdated. co2signal.com redirects to (https://www.electricitymaps.com/). api.co2signal.com is not responding. API docs are found here: https://portal.electricitymaps.com/developer-hub/api/reference#carbon-intensity-latest
corresponding code: codecarbon/core/co2_signal.py
To Reproduce
Steps to reproduce the behavior:
- Add the co2_signal_api_token in .codecarbon.config.
- Run Code with tracking.
- Get Error: [codecarbon ERROR @ 22:50:14] co2_signal.get_emissions: HTTPSConnectionPool(host='api.co2signal.com', port=443): Max retries exceeded with url: /v1/latest?lat=49.4823&lon=8.4397 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f7ff00840d0>: Failed to resolve 'api.co2signal.com' ([Errno -2] Name or service not known)")) >>> Using CodeCarbon's data.
Desktop (please complete the following information):
- OS: Linux-6.17.0-4-cachyos-x86_64-with-glibc2.42
- Python Version 3.10.19
- CodeCarbon Version v3.0.8
Let me know if I can assist with more detailed information.
Greetings from Germany,
Dominic