microsoft / microsoft/Web-Dev-For-Beginners

Switch from CO2Signal API to ElectricityMap

Open
#1,423 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

no-issue-activity
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.