You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Web-Dev-For-Beginners/translations/pcm/5-browser-extension/start/README.md

2.3 KiB

Carbon Trigger Browser Extension: Starter Code

Using tmrow's C02 Signal API to track electricity usage, build a browser extension so that you fit get reminder for your browser about how heavy your regiohn dem electricity usage be. Using this extension sometimes go help you make correct judgement on top your activities based on this information.

extension screenshot

Getting Started

You go need get npm installed. Download copy of this code go one folder for your computer.

Install all the required packages:

npm install

Build the extension from webpack

npm run build

To install for Edge, use the 'three dot' menu for top right corner of the browser to find the Extensions panel. From there, select 'Load Unpacked' to load new extension. Open the 'dist' folder when e ask and the extension go load. To use am, you go need API key for CO2 Signal's API (get one here via email - put your email for the box for this page) and the code for your region wey match the Electricity Map (for Boston, for example, I dey use 'US-NEISO').

installing

Once you input the API key and region for the extension interface, the colored dot for the browser extension bar go change to show how your region dey use energy and give you pointer on which energy-heavy activities fit beta for you to do. The idea for this 'dot' system na from the Energy Lollipop extension for California emissions.


Disclaimer: Dis dokumant don translate wit AI translation service wey dem call Co-op Translator. Even though we dey try make am correct, abeg sabi say automated translation fit get mistake or no too correct. Di original dokumant wey dey im original language na di main correct source. If na serious mata, make person wey sabi translate am proper do am. We no go responsible if pesin no understand or misunderstand any tin wey happen because of dis translation.