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

Features done. #53

Open
wants to merge 436 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
436 commits
Select commit Hold shift + click to select a range
4c17550
fix tests
AAABBBCCCAAAA Mar 22, 2022
81fd394
clean
AAABBBCCCAAAA Mar 22, 2022
7e1ff94
remove useless
AAABBBCCCAAAA Mar 22, 2022
609f893
prevent storage write flood with a buffer
AAABBBCCCAAAA Mar 22, 2022
50dd919
the solution
AAABBBCCCAAAA Mar 23, 2022
35a3d03
improve storage write
AAABBBCCCAAAA Mar 23, 2022
2e229a6
improve & introduce 2 new prefs
AAABBBCCCAAAA Mar 23, 2022
d9e6cd7
remove useless
AAABBBCCCAAAA Mar 23, 2022
0a9e62e
refactor
AAABBBCCCAAAA Mar 23, 2022
959923b
move to new perference scheme
AAABBBCCCAAAA Mar 23, 2022
dcab3dc
description for preferences
AAABBBCCCAAAA Mar 23, 2022
e2d375f
pref translation for en
AAABBBCCCAAAA Mar 23, 2022
615b71a
translation for preferences description
AAABBBCCCAAAA Mar 24, 2022
62ebcbd
refactor part responsible of animations
AAABBBCCCAAAA Mar 24, 2022
71d7748
animation for refresh carbon intensity
AAABBBCCCAAAA Mar 24, 2022
bddd593
update entry instead of create when possible
AAABBBCCCAAAA Mar 24, 2022
7d0e4fd
prevent input loose while refreshing
AAABBBCCCAAAA Mar 24, 2022
ee04b3f
Update README.md
AAABBBCCCAAAA Mar 24, 2022
dcb09fe
Update README.md
AAABBBCCCAAAA Mar 24, 2022
a601eb4
carbonFactorManual
AAABBBCCCAAAA Mar 25, 2022
bba6d0d
small fix
AAABBBCCCAAAA Mar 25, 2022
ca253d8
fix display
AAABBBCCCAAAA Mar 25, 2022
2bcaebb
description
AAABBBCCCAAAA Mar 25, 2022
a251e96
fix drecritipoin
AAABBBCCCAAAA Mar 25, 2022
2945137
description
AAABBBCCCAAAA Mar 25, 2022
2520c47
description
AAABBBCCCAAAA Mar 25, 2022
f511b82
small fix
AAABBBCCCAAAA Mar 25, 2022
6766ce2
first version of attention time
AAABBBCCCAAAA Mar 25, 2022
d6525a9
fix times & translations
AAABBBCCCAAAA Mar 25, 2022
b2a0f24
Merge branch 'master' of https://github.com/AAABBBCCCAAAA/Carbonalyser
AAABBBCCCAAAA Mar 25, 2022
48c1459
remove loopback from traffic
AAABBBCCCAAAA Mar 28, 2022
2866c2d
introduce efficiency
AAABBBCCCAAAA Mar 28, 2022
d500d38
fix dia not updated
AAABBBCCCAAAA Mar 28, 2022
36523f5
fix description & fix attention time in some cases
AAABBBCCCAAAA Mar 28, 2022
d211f76
refactor & add pref run at start
AAABBBCCCAAAA Mar 28, 2022
a65642f
fix title
AAABBBCCCAAAA Mar 28, 2022
fb32894
fix titles
AAABBBCCCAAAA Mar 29, 2022
b92eb29
prevent conflicts in names
AAABBBCCCAAAA Mar 29, 2022
f5b50ad
prevent update of attention time while analysis is not running
AAABBBCCCAAAA Mar 29, 2022
1ccf875
fix null origin
AAABBBCCCAAAA Mar 29, 2022
6a65081
Update README.md
AAABBBCCCAAAA Mar 29, 2022
157fb3c
debug version of chartjs
AAABBBCCCAAAA Mar 30, 2022
3ea549f
fix undefined
AAABBBCCCAAAA Mar 30, 2022
23f26d7
chrome urls
AAABBBCCCAAAA Mar 30, 2022
d1517f3
other part of 3ea549feb1fdaeed24e304ab5bce75f18e81c02c
AAABBBCCCAAAA Mar 30, 2022
72fb48c
introduce new pref
AAABBBCCCAAAA Mar 30, 2022
1c1acb3
fix tests
AAABBBCCCAAAA Mar 31, 2022
832026f
small improve ta
AAABBBCCCAAAA Mar 31, 2022
cf71d62
fix too much refreshes
AAABBBCCCAAAA Mar 31, 2022
bd8e0e4
smooth update for chart
AAABBBCCCAAAA Mar 31, 2022
b5c4449
smooth update for dat cons.
AAABBBCCCAAAA Mar 31, 2022
c5011dd
smooth update
AAABBBCCCAAAA Mar 31, 2022
942a63c
smooth for attention tiem
AAABBBCCCAAAA Mar 31, 2022
58ffed4
Merge branch 'master' of https://github.com/AAABBBCCCAAAA/Carbonalyser
AAABBBCCCAAAA Mar 31, 2022
b63a653
dyn update
AAABBBCCCAAAA Apr 1, 2022
068105a
small refactor
AAABBBCCCAAAA Apr 1, 2022
efb3537
proper way to clean attention graph
AAABBBCCCAAAA Apr 1, 2022
0078041
electricity re-init
AAABBBCCCAAAA Apr 1, 2022
85bafe5
data reinit
AAABBBCCCAAAA Apr 1, 2022
fcdaa91
reinit
AAABBBCCCAAAA Apr 1, 2022
dc4014c
fix graph
AAABBBCCCAAAA Apr 1, 2022
73e70d8
translation
AAABBBCCCAAAA Apr 1, 2022
6caec6c
package.json
AAABBBCCCAAAA Apr 1, 2022
2cccd58
Update README.md
AAABBBCCCAAAA Apr 1, 2022
e77c5aa
Update README.md
AAABBBCCCAAAA Apr 4, 2022
7c0c522
Update README.md
AAABBBCCCAAAA Apr 4, 2022
e701504
add info tab
AAABBBCCCAAAA Apr 4, 2022
597029e
Merge branch 'master' of https://github.com/AAABBBCCCAAAA/Carbonalyser
AAABBBCCCAAAA Apr 4, 2022
853d3b5
Update README.md
AAABBBCCCAAAA Apr 5, 2022
119546f
fix translation
AAABBBCCCAAAA Apr 5, 2022
ba11c30
prevent parent creation in some cases
AAABBBCCCAAAA Apr 5, 2022
bed3502
fix CHART_COLORS not in jail
AAABBBCCCAAAA Apr 5, 2022
f9b909b
Merge branch 'master' of https://github.com/AAABBBCCCAAAA/Carbonalyser
AAABBBCCCAAAA Apr 5, 2022
dba7dbf
fix chart colors
AAABBBCCCAAAA Apr 6, 2022
b2712a8
more info
AAABBBCCCAAAA Apr 6, 2022
3e9ea6f
add description
AAABBBCCCAAAA Apr 6, 2022
4ec8c41
add lilo ecosia, embed images
AAABBBCCCAAAA Apr 7, 2022
04fb1ed
fix loadTranslations
AAABBBCCCAAAA Apr 7, 2022
37c6c35
prevent parsing when already in the right shape
AAABBBCCCAAAA Apr 7, 2022
61c67c0
fix popup delayed display
AAABBBCCCAAAA Apr 7, 2022
5575524
move stats compute on the background
AAABBBCCCAAAA Apr 8, 2022
2677c06
equivalence computed on background
AAABBBCCCAAAA Apr 8, 2022
f1b2d00
sod on the bg
AAABBBCCCAAAA Apr 8, 2022
dc04a0d
compute electricity on background
AAABBBCCCAAAA Apr 8, 2022
51f8351
attention efficiency
AAABBBCCCAAAA Apr 8, 2022
56c1279
attention eff
AAABBBCCCAAAA Apr 8, 2022
da9251f
add attentoin time to bg
AAABBBCCCAAAA Apr 8, 2022
88d87e0
remove useless
AAABBBCCCAAAA Apr 8, 2022
96da148
fix missing stat
AAABBBCCCAAAA Apr 11, 2022
8fb6c11
fix
AAABBBCCCAAAA Apr 11, 2022
505f79d
kWh -> Wh
AAABBBCCCAAAA Apr 11, 2022
a23701a
allow choose unit under which to display electricity
AAABBBCCCAAAA Apr 11, 2022
dd5521c
Update README.md
AAABBBCCCAAAA Apr 11, 2022
fe073e9
Update README.md
AAABBBCCCAAAA Apr 11, 2022
5ec76ee
Merge branch 'master' of https://github.com/AAABBBCCCAAAA/Carbonalyser
AAABBBCCCAAAA Apr 11, 2022
a1df0bf
add mWh
AAABBBCCCAAAA Apr 11, 2022
350f276
modification of unit for equivalence
AAABBBCCCAAAA Apr 12, 2022
c7f0ef6
fix translate
AAABBBCCCAAAA Apr 12, 2022
bbda3e1
more details on graphs of electricity
AAABBBCCCAAAA Apr 12, 2022
f3fe361
rfix equiv
AAABBBCCCAAAA Apr 12, 2022
413a19f
inter for dtt
AAABBBCCCAAAA Apr 12, 2022
c3f5c0a
allow custommization of factors
AAABBBCCCAAAA Apr 13, 2022
3329968
fix translations
AAABBBCCCAAAA Apr 13, 2022
032741c
fix electrictiy not updated when no data
AAABBBCCCAAAA Apr 13, 2022
84ceea4
Update README.md
AAABBBCCCAAAA Apr 13, 2022
48d455a
bulb icon
AAABBBCCCAAAA Apr 13, 2022
b15e453
Merge branch 'master' of https://github.com/AAABBBCCCAAAA/Carbonalyser
AAABBBCCCAAAA Apr 13, 2022
5210c14
fix display
AAABBBCCCAAAA Apr 14, 2022
18e7105
add pref for bulb
AAABBBCCCAAAA Apr 14, 2022
1498fe1
simplifiy units
AAABBBCCCAAAA Apr 14, 2022
86f56be
introduce compute method tab
AAABBBCCCAAAA Apr 14, 2022
47e9559
introduce forecast tab
AAABBBCCCAAAA Apr 14, 2022
35e304d
introduce new duration storage
AAABBBCCCAAAA Apr 14, 2022
d97becf
add duration to container
AAABBBCCCAAAA Apr 14, 2022
2e76756
refactor & translations
AAABBBCCCAAAA Apr 14, 2022
3c8d62b
small refact
AAABBBCCCAAAA Apr 15, 2022
3a5faad
improve compute of durations
AAABBBCCCAAAA Apr 15, 2022
ad37e02
add forecast on day rate
AAABBBCCCAAAA Apr 15, 2022
ac9b68d
inject forecast result
AAABBBCCCAAAA Apr 15, 2022
6323441
fxi leaks
AAABBBCCCAAAA Apr 15, 2022
a426596
fix translations
AAABBBCCCAAAA Apr 15, 2022
06a4d98
fix translation
AAABBBCCCAAAA Apr 15, 2022
b5aa541
introduce export screen
AAABBBCCCAAAA May 3, 2022
29e02f7
fix translation
AAABBBCCCAAAA May 3, 2022
86b3855
fix display bug
AAABBBCCCAAAA May 3, 2022
f1db103
export format choose
AAABBBCCCAAAA May 3, 2022
62876ce
fix data export
AAABBBCCCAAAA May 3, 2022
e117a3e
add format
AAABBBCCCAAAA May 3, 2022
9d59e7a
introduce by origin sum of data
AAABBBCCCAAAA May 3, 2022
423d0ab
modularize
AAABBBCCCAAAA May 3, 2022
8c90555
introduce by origin compileBytes
AAABBBCCCAAAA May 3, 2022
064d19f
introduce origin filter for export
AAABBBCCCAAAA May 3, 2022
cb6ec4e
allow regexp in site selection
AAABBBCCCAAAA May 4, 2022
5d9a7ee
small refactor
AAABBBCCCAAAA May 4, 2022
3cd09bf
strip leading, trailing spaces, allow export electricity
AAABBBCCCAAAA May 4, 2022
5af19f9
improve specification
AAABBBCCCAAAA May 4, 2022
22198ae
refactor
AAABBBCCCAAAA May 4, 2022
bb46ea0
more accessible value to setup device power
AAABBBCCCAAAA May 4, 2022
27151db
co2 equiv
AAABBBCCCAAAA May 4, 2022
b1e5b3b
small refactor
AAABBBCCCAAAA May 4, 2022
fbe91c3
small refactor
AAABBBCCCAAAA May 5, 2022
d708597
periodic download base
AAABBBCCCAAAA May 5, 2022
1ded9c9
do not crash on extractor error
AAABBBCCCAAAA May 5, 2022
a6f5d66
fix carbon intensity factor
AAABBBCCCAAAA May 5, 2022
ac98c37
prevent download flood
AAABBBCCCAAAA May 5, 2022
bab91a6
prevent new entry collision
AAABBBCCCAAAA May 9, 2022
c1f1659
use dtt api to insert values in the table
AAABBBCCCAAAA May 9, 2022
01773d8
fix display bug
AAABBBCCCAAAA May 9, 2022
5518b73
fix translation & add es lang
AAABBBCCCAAAA May 10, 2022
10bacf8
add tera watt forecast
AAABBBCCCAAAA May 10, 2022
9ee1ce5
improve
AAABBBCCCAAAA May 11, 2022
1713c88
translation
AAABBBCCCAAAA May 11, 2022
bf634ed
translate
AAABBBCCCAAAA May 11, 2022
2040f05
fix table overflow screen
AAABBBCCCAAAA May 12, 2022
76de08c
clear tables when needed
AAABBBCCCAAAA May 12, 2022
9c1f09f
Update README.md
AAABBBCCCAAAA May 12, 2022
472b646
introduce cigarette equivalence
AAABBBCCCAAAA May 12, 2022
ab2a0d9
translate
AAABBBCCCAAAA May 12, 2022
6baa0f4
pref for param
AAABBBCCCAAAA May 12, 2022
fa35f74
Merge branch 'master' of https://github.com/AAABBBCCCAAAA/Carbonalyser
AAABBBCCCAAAA May 12, 2022
329d7df
fix display bug
AAABBBCCCAAAA May 13, 2022
666b291
scientific not
AAABBBCCCAAAA May 13, 2022
06b3d74
add link to github
AAABBBCCCAAAA May 13, 2022
d1a5f9a
solve not well defined behaviour
AAABBBCCCAAAA May 16, 2022
c1a2cea
fix charged smartphones equivalence
AAABBBCCCAAAA May 16, 2022
832ed0c
fix display bug
AAABBBCCCAAAA May 16, 2022
217069e
give links to sites instead of text
AAABBBCCCAAAA May 19, 2022
ddff432
introduce ecoindex
AAABBBCCCAAAA May 19, 2022
409dcb5
introduce eco index fetch
AAABBBCCCAAAA May 19, 2022
ca1e0f0
introduce avg eco index
AAABBBCCCAAAA May 19, 2022
54f1126
more debug message on ecoindex
AAABBBCCCAAAA May 20, 2022
c09983a
show -1 on error in tab view
AAABBBCCCAAAA May 20, 2022
02a1def
control via prefs
AAABBBCCCAAAA May 20, 2022
b997139
small fix
AAABBBCCCAAAA May 20, 2022
cb529c4
clean some parts
AAABBBCCCAAAA May 20, 2022
85b269d
translate
AAABBBCCCAAAA May 20, 2022
e86070a
link
AAABBBCCCAAAA May 20, 2022
c4e3176
fix for ecoindex
AAABBBCCCAAAA May 23, 2022
9ba2565
clean
AAABBBCCCAAAA May 23, 2022
496aa27
fix
AAABBBCCCAAAA May 23, 2022
4dffe34
warning about the rate limit
AAABBBCCCAAAA May 24, 2022
2bfbfbc
fix state not well reset
AAABBBCCCAAAA May 30, 2022
184065d
fix units
AAABBBCCCAAAA May 30, 2022
25d34ad
small fix
AAABBBCCCAAAA May 30, 2022
2f869f3
small fix for manual download
AAABBBCCCAAAA Jun 8, 2022
8a1aaca
add devtools integration
AAABBBCCCAAAA Jun 13, 2022
4939013
small refactor
AAABBBCCCAAAA Jun 14, 2022
68f14c2
refact
AAABBBCCCAAAA Jun 14, 2022
d125083
small refactor
AAABBBCCCAAAA Jun 14, 2022
50c88fd
prevent carbon intensity update when null value
AAABBBCCCAAAA Jun 14, 2022
fa31116
temp dirty commit
AAABBBCCCAAAA Jun 14, 2022
0287f94
dtt for preferences
AAABBBCCCAAAA Jun 14, 2022
87f2179
small fix for the dirty one
AAABBBCCCAAAA Jun 16, 2022
29ff2c7
fix graphical issue
AAABBBCCCAAAA Jun 16, 2022
afbbec4
fix display bug
AAABBBCCCAAAA Jun 16, 2022
901059e
fix display bug
AAABBBCCCAAAA Jun 16, 2022
1361c66
remove useless
AAABBBCCCAAAA Jun 16, 2022
a3d9899
small fix
AAABBBCCCAAAA Jun 16, 2022
4746cc5
fix
AAABBBCCCAAAA Jun 16, 2022
5deb35b
better fix for form length
AAABBBCCCAAAA Jun 16, 2022
40b60c3
fix
AAABBBCCCAAAA Jun 16, 2022
42cc223
fix
AAABBBCCCAAAA Jun 16, 2022
ef4d6f4
remove useless
AAABBBCCCAAAA Jun 16, 2022
95bd7ef
fix
AAABBBCCCAAAA Jun 16, 2022
d1633fa
fix
AAABBBCCCAAAA Jun 16, 2022
f93907b
small fix
AAABBBCCCAAAA Jun 16, 2022
d073acc
fix
AAABBBCCCAAAA Jun 16, 2022
5faf79d
update pp
AAABBBCCCAAAA Jun 21, 2022
8a38081
small refact
AAABBBCCCAAAA Jun 21, 2022
0d2241c
fetch country on first run
AAABBBCCCAAAA Jun 21, 2022
230ef07
translations
AAABBBCCCAAAA Jun 21, 2022
3ebc16d
prevent preference lost on reset the data
AAABBBCCCAAAA Jun 21, 2022
5345a18
fix issue
AAABBBCCCAAAA Jun 21, 2022
7aba280
translate
AAABBBCCCAAAA Jun 21, 2022
6e24551
prevent editing stop feature from interacting with
AAABBBCCCAAAA Jun 21, 2022
4b76b58
import / export function for preferences
AAABBBCCCAAAA Jun 21, 2022
0d9bf12
translate
AAABBBCCCAAAA Jun 21, 2022
ae530d7
fix
AAABBBCCCAAAA Jun 22, 2022
3cdc4a2
move region select in the parent context
AAABBBCCCAAAA Jun 22, 2022
02b928a
introduce geo data
AAABBBCCCAAAA Jun 23, 2022
721ed20
d3
AAABBBCCCAAAA Jun 23, 2022
99e8b7d
introduce selectedRegion as an id
AAABBBCCCAAAA Jun 23, 2022
a853792
fix definition
AAABBBCCCAAAA Jun 24, 2022
a8e7702
alloow more precise way to update ci of regions
AAABBBCCCAAAA Jun 24, 2022
e3d72c3
small refactor
AAABBBCCCAAAA Jun 27, 2022
24782c2
fix
AAABBBCCCAAAA Jun 27, 2022
7fd116e
small refactor
AAABBBCCCAAAA Jun 27, 2022
ba41ae2
use geometry directly when possible for countries
AAABBBCCCAAAA Jun 27, 2022
7924873
introduce auto select region
AAABBBCCCAAAA Jun 27, 2022
6ad41aa
more clean way to declare regions
AAABBBCCCAAAA Jun 27, 2022
150bf1f
small fix
AAABBBCCCAAAA Jun 27, 2022
0ef1fdd
auto select the smallest region possible
AAABBBCCCAAAA Jun 28, 2022
52ebe94
small fix
AAABBBCCCAAAA Jun 28, 2022
6a31a0c
add watttime carbonintensities
AAABBBCCCAAAA Jun 28, 2022
96484f8
remove deprecated
AAABBBCCCAAAA Jun 28, 2022
f6b6a2e
externalize geojson
AAABBBCCCAAAA Jun 29, 2022
bdd8f84
missing translation
AAABBBCCCAAAA Jun 29, 2022
63a0c97
extract part of countries in the lib
AAABBBCCCAAAA Jun 29, 2022
afbb95a
improve localisation & empty object
AAABBBCCCAAAA Jun 29, 2022
95d4f7a
Update README.md
AAABBBCCCAAAA Jun 29, 2022
84316f1
Update README.md
AAABBBCCCAAAA Jun 29, 2022
cf004ca
prevent error due to user refuse location (never happen)
AAABBBCCCAAAA Jun 30, 2022
23b359e
disable removed endpoint
AAABBBCCCAAAA Jun 30, 2022
7e36980
Update README.md
AAABBBCCCAAAA Jun 30, 2022
009cec8
Update README.md
AAABBBCCCAAAA Jun 30, 2022
264e32e
Update README.md
AAABBBCCCAAAA Jun 30, 2022
6c0e8d6
Merge branch 'master' of https://github.com/AAABBBCCCAAAA/Carbonalyser
AAABBBCCCAAAA Jun 30, 2022
c2813c3
fix
AAABBBCCCAAAA Jun 30, 2022
d345cc8
prevent local download from being listed
AAABBBCCCAAAA Jun 30, 2022
eae24ec
Update README.md
AAABBBCCCAAAA Jun 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: build-web-ext
on:
push:
tags:
- '*'
jobs:
build-extension:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Extract release version from ref
run: |
echo "::set-output name=version::$(echo ${{ github.ref }} | sed 's/.*\///')"
id: set_version
- name: Update version in the manifest
run: |
sed "s/\"version\":.*/\"version\": \"${{steps.set_version.outputs.version}}\", /" manifest.json > .aaa
mv .aaa manifest.json
- run: npm install -g web-ext
- run: web-ext build
- name: Step 3 - Upload Artifact GitHub Action
uses: actions/upload-artifact@v2
with:
name: carbonalyser
path: web-ext-artifacts
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Automated release ${{steps.set_version.outputs.version}}.
draft: false
prerelease: false
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: web-ext-artifacts/carbonalyser-${{steps.set_version.outputs.version}}.zip
asset_name: carbonalyser-${{steps.set_version.outputs.version}}.zip
asset_content_type: application/zip
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules
node_modules
web-ext-artifacts
.vscode
secret
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## 1.0.4
### Fixed
- Fix kWhPerByte for dataCenter and kWhPerByte for network inputs. Thanks @brain-in-the-universe
- Fix kWhPerByte for datacenter and kWhPerByte for network inputs. Thanks @brain-in-the-universe

## 1.0.3
### Added
Expand Down
120 changes: 62 additions & 58 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,63 +1,67 @@
# Carbonalyser

## Installation

* Firefox: https://addons.mozilla.org/fr/firefox/addon/carbonalyser/
* Chrome and Edge: [see this issue](https://github.com/carbonalyser/Carbonalyser/issues/42)

## Overview

The add-on "Carbonalyser" allows to visualize the electricity consumption and greenhouse gases (GHG) emissions that your Internet browsing leads to.

Visualizing it will get you to understand that impacts of digital technologies on climate change and natural resources are not virtual, although they are hidden behind our screens.

To evaluate these impacts, the add-on:

1. Measures the quantity of data travelling through your Internet browser,
2. Calculates the electricity consumption this traffic leads to (with the "1byte" model, developed by The Shift Project),
3. Calculates the GHG emissions this electricity consumption leads to, following the selected location.

## Features

"Run analysis / Stop analysis" - run or stop the measuring of data volume travelling through the Internet browser. Results shown in the pop-up window are calculated for the cumulated running time.

"Reset data" - erase measures and calculations made during the running time to reset the analysis to zero.

Chart area - features rankings of the top 5 websites in terms of data traffic and their share in the total data volume generated by browsing the Internet.

"Select your location" - allow to choose the electrical mix to apply in the calculations of GHG emissions (by default, if none is selected: average world mix is taken)

Results area - features:

* Time during which the device has been running, from the start of the analysis,
* Quantity of data generated by Internet browsing,
* Electricity consumption generated by data traffic,
* GHG emissions this leads to,
* Comparison of GHG emitted by browsing and GHG emitted by charging a smartphone,
* Comparison of GHG emitted by browsing and GHG emitted by driving a car.

The box "How to change that? What responsibility?" links to publications from The Shift Project about environmental impact of our digital uses and solutions we have at individual and collective scales.
# <p align="center">Carbonalyser</p>
Carbonalyser allow you to analyse electricity consumption linked to your online activity as well as greenhouse gases emissions (in CO² equivalent). It analyse both the website and your browser.<br />
<br />
Greenhouse gases emissions are modeled as a linear model (the more you browse, the more you emit) plus per site weighting.<br />
The fact is not about how much near from reality parameters of the model are, but rather how much the model could explain the reality.<br />
Parameters such as carbon intensities could be maintained up to date with third party services but other cannot.<br />
<br />
<b>Do not keep default parameters of the model, they may be out of date</b>
<br />
With that information we produce the following representations to user:<br />
| <img src="https://user-images.githubusercontent.com/97546053/176733414-6d79545c-f14e-4438-bfcd-d1d85fd298fc.png" width="500px" /> | <img src="https://user-images.githubusercontent.com/97546053/176733126-b628e353-7f05-409f-a47f-1e8d322ed5d1.png" width="500px" /> |
|--------------|-----------------|

<!-- [<img alt="chrome via github" src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Google_Chrome_icon_%282011%29.svg/512px-Google_Chrome_icon_%282011%29.svg.png" width="40px" />](https://github.com/AAABBBCCCAAAA/Carbonalyser/wiki/Install-for-chrome---without-chrome-webstore) -->

## Privacy

None of your data are collected: all browsing data are analyzed directly on the user device and are not sent or processed anywhere else in any way.

None of your data are collected: all browsing data are analyzed directly on the user device and are not sent or processed anywhere else in any way.<br />
However you can enable 3rd party services from preferences.<br />
For instances ecoindex in that case you should refer to them instead.<br />
The source code of this program is available in open access, to ensure transparency and for any other purpose.

## Methodology

See: https://theshiftproject.org/en/carbonalyser-browser-extension/

## Support & source code

Questions, bug reports and feature requests are to be addressed to [email protected]

Source code is available in open access: https://github.com/supertanuki/Carbonalyser

## Contributors

Developer: [Richard Hanna](https://twitter.com/richardhanna).

Designer: [Gauthier Roussilhe](http://gauthierroussilhe.com).

In partnership with Maxime Efoui-Hess for [The Shift Project](https://theshiftproject.org/en/home/).
## Support

Documentation is on the [wiki](https://github.com/AAABBBCCCAAAA/Carbonalyser/wiki).<br />
To report a bug, request a feature, check [here](https://github.com/AAABBBCCCAAAA/Carbonalyser/issues).
#### Compatibility table
| firefox | firefox via github | chrome | firefox for android |
|:----------:|:------------------------:|:-------------------------:|:------------:|
| [<img alt="firefox" width="40px" src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/66/Firefox_logo.png/636px-Firefox_logo.png" />](https://addons.mozilla.org/fr/firefox/addon/carbonalyser-fork/) | [<img alt="firefox via github" width="40px" src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"/>](https://github.com/AAABBBCCCAAAA/Carbonalyser/releases) | dropped at the time | https://addons.mozilla.org/fr/firefox/collections/17360161/carbonalyser/ |
#### Provided features
- [x] browsing analysis history
- [x] preference screen
- [x] live update of carbon intensities
- [x] per site power efficiency
- [x] export the data
- [x] equivalence screen
- [x] solutions for consumers
- [x] forecast based on your current use
#### Supported languages
FR ES EN DE

## Related work

| where | description | type |
|:----------:|:------------------------:|:-----:|
|[wattime](https://www.watttime.org/)| warning displayed carbon intensities are displayed in percentage | carbon intensities scale |
|[GreenIT-Analysis](https://addons.mozilla.org/fr/firefox/addon/greenit-analysis/)| extension of devtools that provide comparator | site carbon emission comparator |
|[ecoindex](http://www.ecoindex.fr/)| | site carbon emission comparator |
|[carbon intensity](https://carbonintensity.org.uk/) | regionnalised carbon intensities for UK | carbon intensities |
|[edf](https://opendata.edf.fr/api/records/1.0/search/?dataset=indicateurs-de-performance-extra-financiere&q=&facet=annee&facet=engagements_rse&facet=csr_goals&facet=indicateurs_cles_de_performance&facet=performance_indicators&refine.indicateurs_cles_de_performance=Intensit%C3%A9+carbone%C2%A0%3A+%C3%A9missions+sp%C3%A9cifiques+de+CO2+dues+%C3%A0+la+production+d%E2%80%99%C3%A9lectricit%C3%A9+%E2%88%9A+(gCO2%2FkWh)) | specialized carbon intensity factor for france | carbon intensities |
|[electricity map](https://app.electricitymap.org/map) | by country carbon intensity factors | carbon intensities |
|[PageSpeed Insights](https://pagespeed.web.dev/?hl=fr) | analysis of website from where does useless comes from |website analysis |
|[website carbon](https://www.websitecarbon.com/how-does-it-work/) | Website analysis with a method similar to the one used in carbon analyzer |site carbon emission comparator|

## Credits

Initial project:<br />
[Richard Hanna](https://twitter.com/richardhanna)<br />
[Gauthier Roussilhe](http://gauthierroussilhe.com)<br />
Maxime Efoui-Hess([The Shift Project](https://theshiftproject.org/en/home/))<br />
Assets:<br />
Refresh icons created by Dave Gandy - Flaticon<br />
bulb icon by [freepik](https://www.flaticon.com/fr/auteurs/freepik)<br />
Data sources:<br />
[carbonintensity](https://carbonintensity.org.uk/)
[edf](https://opendata.edf.fr/api/records/1.0/search/?dataset=indicateurs-de-performance-extra-financiere&q=&facet=annee&facet=engagements_rse&facet=csr_goals&facet=indicateurs_cles_de_performance&facet=performance_indicators&refine.indicateurs_cles_de_performance=Intensit%C3%A9+carbone%C2%A0%3A+%C3%A9missions+sp%C3%A9cifiques+de+CO2+dues+%C3%A0+la+production+d%E2%80%99%C3%A9lectricit%C3%A9+%E2%88%9A+(gCO2%2FkWh))<br />
Loading