microsoft / microsoft/Web-Dev-For-Beginners
Switch from CO2Signal API to ElectricityMap
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 96.7k
- Forks
- 15.9k
- PR merge metrics
- No merged PRs in 30d
Description
The CO2Signal API is no longer available for new API keys. The code has to be switched to the ElectricityMap API, which uses two separate REST calls to grab carbonIntensity and fossilFuelPercentage (https://portal.electricitymaps.com/docs/getting-started#granularity).
This tutorial needs to be updated to handle two REST calls: 5-browser-extension/2-forms-browsers-local-storage
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open 5-browser-extension/2-forms-browsers-local-storage and start at the “Display Carbon Usage” section. Trace the existing CO2Signal request, then read the linked ElectricityMap documentation to understand the two required REST calls. Done means the tutorial retrieves carbonIntensity and fossilFuelPercentage and displays the carbon usage correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100