diff --git a/data/ademe/1-numerique.json b/data/ademe/1-numerique.json deleted file mode 100644 index 59f4e2a..0000000 --- a/data/ademe/1-numerique.json +++ /dev/null @@ -1,740 +0,0 @@ -{ - "data": [ - { - "name": { - "en": "Smartphone", - "fr": "Smartphone" - }, - "slug": "smartphone", - "ecv": 37.7857171234219, - "footprint": 39.0684, - "footprintDetail": [ - { - "id": 1, - "value": 31.9 - }, - { - "id": 2, - "value": 0.841 - }, - { - "id": 3, - "value": 0.0714 - }, - { - "id": 4, - "value": 6.256 - } - ], - "usage": { - "peryear": 0.133428421, - "defaultyears": 4 - }, - "endOfLife": -1.8163965605781 - }, - { - "name": { - "en": "Desktop computer without screen (low performance)", - "fr": "Ordinateur fixe sans écran (basse performance)" - }, - "slug": "ordinateurfixebureautique", - "ecv": 188.9721498647794, - "footprint": 169, - "footprintDetail": [ - { - "id": 1, - "value": 82.9 - }, - { - "id": 2, - "value": 4.75 - }, - { - "id": 3, - "value": 4.19 - }, - { - "id": 4, - "value": 77.16000000000001 - } - ], - "usage": { - "peryear": 5.03567247, - "defaultyears": 6 - }, - "endOfLife": -10.2418849552206 - }, - { - "name": { - "en": "Desktop computer without screen (high performance)", - "fr": "Ordinateur fixe sans écran (haute performance)" - }, - "slug": "ordinateurfixeperformance", - "ecv": 394.22839770107805, - "footprint": 295.21000000000004, - "footprintDetail": [ - { - "id": 1, - "value": 153 - }, - { - "id": 2, - "value": 7.95 - }, - { - "id": 3, - "value": 7.36 - }, - { - "id": 4, - "value": 126.9 - } - ], - "usage": { - "peryear": 19.91634, - "defaultyears": 6 - }, - "endOfLife": -20.479642298922 - }, - { - "name": { - "en": "Screen 21.5 inches", - "fr": "Écran 21.5 pouces" - }, - "slug": "ecran215pouces", - "ecv": 236.4005793417607, - "footprint": 221.31, - "footprintDetail": [ - { - "id": 1, - "value": 205 - }, - { - "id": 2, - "value": 4.26 - }, - { - "id": 3, - "value": 1.9 - }, - { - "id": 4, - "value": 10.15 - } - ], - "usage": { - "peryear": 3.40966173, - "defaultyears": 6 - }, - "endOfLife": -5.36739103823929 - }, - { - "name": { - "en": "Screen 24 inches", - "fr": "Écran 24 pouces" - }, - "slug": "ecran24pouces", - "ecv": 263.2705793417607, - "footprint": 248.18, - "footprintDetail": [ - { - "id": 1, - "value": 229 - }, - { - "id": 2, - "value": 4.94 - }, - { - "id": 3, - "value": 2.55 - }, - { - "id": 4, - "value": 11.690000000000001 - } - ], - "usage": { - "peryear": 3.40966173, - "defaultyears": 6 - }, - "endOfLife": -5.36739103823929 - }, - { - "name": { - "en": "Tablet with keyboard", - "fr": "Tablette (détachable)" - }, - "slug": "tablettedetachable", - "ecv": 86.28999022039561, - "footprint": 82.212, - "footprintDetail": [ - { - "id": 1, - "value": 61.9 - }, - { - "id": 2, - "value": 1.07 - }, - { - "id": 3, - "value": 0.426 - }, - { - "id": 4, - "value": 18.816 - } - ], - "usage": { - "peryear": 2.48328552, - "defaultyears": 3 - }, - "endOfLife": -3.3718663396044 - }, - { - "name": { - "en": "Tablet", - "fr": "Tablette (classique)" - }, - "slug": "tabletteclassique", - "ecv": 69.5837761232212, - "footprint": 63.187000000000005, - "footprintDetail": [ - { - "id": 1, - "value": 49 - }, - { - "id": 2, - "value": 0.758 - }, - { - "id": 3, - "value": 0.122 - }, - { - "id": 4, - "value": 13.307 - } - ], - "usage": { - "peryear": 2.48328552, - "defaultyears": 3 - }, - "endOfLife": -1.0530804367788 - }, - { - "name": { - "en": "Mini tablet", - "fr": "Tablette (mini)" - }, - "slug": "tablettemini", - "ecv": 47.70156560714469, - "footprint": 40.9758, - "footprintDetail": [ - { - "id": 1, - "value": 30 - }, - { - "id": 2, - "value": 0.592 - }, - { - "id": 3, - "value": 0.0928 - }, - { - "id": 4, - "value": 10.291 - } - ], - "usage": { - "peryear": 2.48328552, - "defaultyears": 3 - }, - "endOfLife": -0.724090952855313 - }, - { - "name": { - "en": "Hi-fi stereo", - "fr": "Chaine hifi" - }, - "slug": "chainehifi", - "ecv": 136.28218772408428, - "footprint": 123.29, - "footprintDetail": [ - { - "id": 1, - "value": 82.7 - }, - { - "id": 2, - "value": 10.2 - }, - { - "id": 3, - "value": 5.5 - }, - { - "id": 4, - "value": 24.89 - } - ], - "usage": { - "peryear": 4.66693558, - "defaultyears": 5 - }, - "endOfLife": -10.3424901759157 - }, - { - "name": { - "en": "E-reader", - "fr": "Liseuse" - }, - "slug": "liseuse", - "ecv": 36.695156875991344, - "footprint": 38.2234, - "footprintDetail": [ - { - "id": 1, - "value": 28.6 - }, - { - "id": 2, - "value": 0.517 - }, - { - "id": 3, - "value": 0.0354 - }, - { - "id": 4, - "value": 9.071000000000002 - } - ], - "usage": { - "peryear": 0.0373807249, - "defaultyears": 5 - }, - "endOfLife": -1.71514674850865 - }, - { - "name": { - "en": "Television", - "fr": "Télévision " - }, - "slug": "television", - "ecv": 425.15349609789376, - "footprint": 371.69, - "footprintDetail": [ - { - "id": 1, - "value": 334 - }, - { - "id": 2, - "value": 9.21 - }, - { - "id": 3, - "value": 2.41 - }, - { - "id": 4, - "value": 26.07 - } - ], - "usage": { - "peryear": 7.76971306, - "defaultyears": 8 - }, - "endOfLife": -8.69420838210626 - }, - { - "name": { - "en": "Laptop", - "fr": "Ordinateur portable" - }, - "slug": "ordinateurportable", - "ecv": 177.98764585279912, - "footprint": 156.24, - "footprintDetail": [ - { - "id": 1, - "value": 120 - }, - { - "id": 2, - "value": 1.89 - }, - { - "id": 3, - "value": 0.75 - }, - { - "id": 4, - "value": 33.6 - } - ], - "usage": { - "peryear": 4.58940987, - "defaultyears": 6 - }, - "endOfLife": -5.78881336720088 - }, - { - "name": { - "en": "Smartwatch", - "fr": "Montre connectée" - }, - "slug": "montreconnectee", - "ecv": 9.858212649590849, - "footprint": 9.7279, - "footprintDetail": [ - { - "id": 1, - "value": 3.71 - }, - { - "id": 2, - "value": 0.314 - }, - { - "id": 3, - "value": 0.0209 - }, - { - "id": 4, - "value": 5.683 - } - ], - "usage": { - "peryear": 0.0239236639, - "defaultyears": 5 - }, - "endOfLife": 0.0106943300908481 - }, - { - "name": { - "en": "Digital photo frame", - "fr": "Cadre photo digital" - }, - "slug": "cadrephotodigital", - "ecv": 39.15117683893988, - "footprint": 40.187999999999995, - "footprintDetail": [ - { - "id": 1, - "value": 37.4 - }, - { - "id": 2, - "value": 0.714 - }, - { - "id": 3, - "value": 0.157 - }, - { - "id": 4, - "value": 1.9170000000000003 - } - ], - "usage": { - "peryear": 0.0373807249, - "defaultyears": 5 - }, - "endOfLife": -1.22372678556011 - }, - { - "name": { - "en": "Home cinema", - "fr": "Home cinéma" - }, - "slug": "homecinema", - "ecv": 153.563823982641, - "footprint": 132.65, - "footprintDetail": [ - { - "id": 1, - "value": 88.7 - }, - { - "id": 2, - "value": 11 - }, - { - "id": 3, - "value": 5.97 - }, - { - "id": 4, - "value": 26.98 - } - ], - "usage": { - "peryear": 6.41616181, - "defaultyears": 5 - }, - "endOfLife": -11.166985067359 - }, - { - "name": { - "en": "Home speaker", - "fr": "Barre de son" - }, - "slug": "barredeson", - "ecv": 45.45222930043316, - "footprint": 40.196, - "footprintDetail": [ - { - "id": 1, - "value": 32.9 - }, - { - "id": 2, - "value": 1.96 - }, - { - "id": 3, - "value": 0.951 - }, - { - "id": 4, - "value": 4.385 - } - ], - "usage": { - "peryear": 1.9941179, - "defaultyears": 5 - }, - "endOfLife": -4.71436019956684 - }, - { - "name": { - "en": "Fiber Modem", - "fr": "Modem Fibre" - }, - "slug": "modemfibre", - "ecv": 142.59172740390866, - "footprint": 82.916, - "footprintDetail": [ - { - "id": 1, - "value": 74.7 - }, - { - "id": 2, - "value": 2.1 - }, - { - "id": 3, - "value": 1.49 - }, - { - "id": 4, - "value": 4.626 - } - ], - "usage": { - "peryear": 11.167862, - "defaultyears": 6 - }, - "endOfLife": -7.33144459609132 - }, - { - "name": { - "en": "Bluetooth speaker", - "fr": "Enceinte bluetooth" - }, - "slug": "enceintebluetooth", - "ecv": 9.515179528037962, - "footprint": 8.979999999999999, - "footprintDetail": [ - { - "id": 1, - "value": 7.43 - }, - { - "id": 2, - "value": 0.337 - }, - { - "id": 3, - "value": 0.161 - }, - { - "id": 4, - "value": 1.052 - } - ], - "usage": { - "peryear": 0.224484033, - "defaultyears": 5 - }, - "endOfLife": -0.587240636962036 - }, - { - "name": { - "en": "Games console", - "fr": "Console de salon" - }, - "slug": "consoledesalon", - "ecv": 101.62688532134777, - "footprint": 73.75, - "footprintDetail": [ - { - "id": 1, - "value": 60.8 - }, - { - "id": 2, - "value": 2.54 - }, - { - "id": 3, - "value": 2.46 - }, - { - "id": 4, - "value": 7.95 - } - ], - "usage": { - "peryear": 6.25663238, - "defaultyears": 5 - }, - "endOfLife": -3.40627657865222 - }, - { - "name": { - "en": "Handheld game console", - "fr": "Console portable" - }, - "slug": "consoleportable", - "ecv": 30.884070899056205, - "footprint": 30.797, - "footprintDetail": [ - { - "id": 1, - "value": 21 - }, - { - "id": 2, - "value": 0.523 - }, - { - "id": 3, - "value": 0.105 - }, - { - "id": 4, - "value": 9.169 - } - ], - "usage": { - "peryear": 0.193542786, - "defaultyears": 5 - }, - "endOfLife": -0.880643030943794 - }, - { - "name": { - "en": "Reflex digital camera", - "fr": "Appareil photo réflexe" - }, - "slug": "appareilphotoreflex", - "ecv": 28.109783588679548, - "footprint": 30.592, - "footprintDetail": [ - { - "id": 1, - "value": 26.5 - }, - { - "id": 2, - "value": 0.955 - }, - { - "id": 3, - "value": 0.537 - }, - { - "id": 4, - "value": 2.6 - } - ], - "usage": { - "peryear": 0.0608794626, - "defaultyears": 5 - }, - "endOfLife": -2.78661372432045 - }, - { - "name": { - "en": "Compact digital camera", - "fr": "Appareil photo compact" - }, - "slug": "appareilphotocompact", - "ecv": 22.341835057281678, - "footprint": 24.424999999999997, - "footprintDetail": [ - { - "id": 1, - "value": 22.9 - }, - { - "id": 2, - "value": 0.404 - }, - { - "id": 3, - "value": 0.195 - }, - { - "id": 4, - "value": 0.9259999999999999 - } - ], - "usage": { - "peryear": 0.0239620031, - "defaultyears": 5 - }, - "endOfLife": -2.20297495821832 - }, - { - "name": { - "en": "Inkjet printer", - "fr": "Imprimante Jet d'encre" - }, - "slug": "imprimantejetdencre", - "ecv": 108.1411327150618, - "footprint": 88.19, - "footprintDetail": [ - { - "id": 1, - "value": 61.2 - }, - { - "id": 2, - "value": 6.44 - }, - { - "id": 3, - "value": 5.24 - }, - { - "id": 4, - "value": 15.309999999999999 - } - ], - "usage": { - "peryear": 3.57703491, - "defaultyears": 6 - }, - "endOfLife": -1.5110767449382 - } - ] -} diff --git a/data/ademe/2-repas.json b/data/ademe/2-repas.json deleted file mode 100644 index 91269c4..0000000 --- a/data/ademe/2-repas.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "data": [ - { - "name": { - "en": "Meal with beef", - "fr": "Repas avec du boeuf" - }, - "slug": "repasavecduboeuf", - "ecv": 7.26, - "footprint": 7.26 - }, - { - "name": { - "en": "Vegetarian Meal", - "fr": "Repas végétarien" - }, - "slug": "repasvegetarien", - "ecv": 0.51, - "footprint": 0.51 - }, - { - "name": { - "en": "Vegan Meal", - "fr": "Repas végétalien" - }, - "slug": "repasvegetalien", - "ecv": 0.39, - "footprint": 0.39 - }, - { - "name": { - "en": "Meal with lean fish", - "fr": "Repas avec du poisson blanc" - }, - "slug": "repasavecdupoissonblanc", - "ecv": 1.98, - "footprint": 1.98 - }, - { - "name": { - "en": "Meal with fat fish", - "fr": "Repas avec du poisson gras" - }, - "slug": "repasavecdupoissongras", - "ecv": 1.11, - "footprint": 1.11 - }, - { - "name": { - "en": "Meal with chicken", - "fr": "Repas avec du poulet" - }, - "slug": "repasavecdupoulet", - "ecv": 1.58, - "footprint": 1.58 - } - ] -} diff --git a/data/ademe/4-transport.json b/data/ademe/4-transport.json deleted file mode 100644 index 4aa385a..0000000 --- a/data/ademe/4-transport.json +++ /dev/null @@ -1,368 +0,0 @@ -{ - "data": [ - { - "name": { - "en": "Short-haul plane (800km)", - "fr": "Avion court courrier (800km)" - }, - "slug": "avioncourtcourrier", - "ecv": 206.86, - "footprint": 0.25858, - "footprintDetail": [ - { - "id": 5, - "value": 0.3 - }, - { - "id": 6, - "value": 112.96 - }, - { - "id": 7, - "value": 93.6 - } - ] - }, - { - "name": { - "en": "Medium-haul plane (2000km)", - "fr": "Avion moyen courrier (2000km)" - }, - "slug": "avionmoyencourrier", - "ecv": 375.12, - "footprint": 0.18756, - "footprintDetail": [ - { - "id": 5, - "value": 0.72 - }, - { - "id": 6, - "value": 204.8 - }, - { - "id": 7, - "value": 169.6 - } - ] - }, - { - "name": { - "en": "Long-haul plane (5000km)", - "fr": "Avion long courrier (5000km)" - }, - "slug": "avionlongcourrier", - "ecv": 759.8, - "footprint": 0.15195999999999998, - "footprintDetail": [ - { - "id": 5, - "value": 1.3 - }, - { - "id": 6, - "value": 415 - }, - { - "id": 7, - "value": 343.5 - } - ] - }, - { - "name": { - "en": "TGV train (800km)", - "fr": "TGV (800km)" - }, - "slug": "tgv", - "ecv": 2.34, - "footprint": 0.00293, - "footprintDetail": [ - { - "id": 5, - "value": 0.5 - }, - { - "id": 6, - "value": 1.84 - } - ] - }, - { - "name": { - "en": "Intercity train (400km)", - "fr": "Train Intercités (400km)" - }, - "slug": "intercites", - "ecv": 3.592, - "footprint": 0.00898, - "footprintDetail": [ - { - "id": 5, - "value": 0.72 - }, - { - "id": 6, - "value": 2.32 - } - ] - }, - { - "name": { - "en": "Thermal car (100km)", - "fr": "Voiture thermique (100km)" - }, - "slug": "voiturethermique", - "ecv": 21.760000000000002, - "footprint": 0.21760000000000002, - "footprintDetail": [ - { - "value": 19.2, - "id": 6 - }, - { - "value": 2.56, - "id": 5 - } - ] - }, - { - "name": { - "en": "Electric car (100km)", - "fr": "Voiture electrique (100km)" - }, - "slug": "voitureelectrique", - "ecv": 10.339999999999999, - "footprint": 0.10339999999999999, - "footprintDetail": [ - { - "value": 1.98, - "id": 6 - }, - { - "value": 8.36, - "id": 5 - } - ] - }, - { - "name": { - "en": "Long distance trip Bus (400km)", - "fr": "Autocar (400km)" - }, - "slug": "autocar", - "ecv": 11.768522508, - "footprint": 0.029421306270000003, - "footprintDetail": [ - { - "value": 10, - "id": 6 - }, - { - "value": 1.768522508, - "_comment": "// = (Valeur en kgCO2e/kg de véhicule * Masse type) / Nombre de passagers / Durée de vie en km = (4 * 12000) / 30 / 361884", - "id": 5 - } - ] - }, - { - "name": { - "en": "Biking or walking (5km)", - "fr": "Vélo ou marche (5km)" - }, - "slug": "velo", - "ecv": 0, - "footprint": 0 - }, - { - "name": { - "en": "Electrical bike (or trottinete) (20km)", - "fr": "Vélo (ou trottinette) électrique (20km)" - }, - "slug": "veloelectrique", - "ecv": 0.219, - "footprint": 0.010950000000000001, - "footprintDetail": [ - { - "id": 5, - "value": 0.1744 - }, - { - "id": 6, - "value": 0.0446 - } - ] - }, - { - "name": { - "en": "Thermal town Bus (5km)", - "fr": "Bus de ville thermique (5km)" - }, - "slug": "busthermique", - "ecv": 0.566, - "footprint": 0.11320000000000001, - "footprintDetail": [ - { - "id": 5, - "value": 0.0445 - }, - { - "id": 6, - "value": 0.5215 - } - ] - }, - { - "name": { - "en": "Tramway (5km)", - "fr": "Tramway (5km)" - }, - "slug": "tramway", - "ecv": 0.0214, - "footprint": 0.00428, - "footprintDetail": [ - { - "id": 5, - "value": 0.0024 - }, - { - "id": 6, - "value": 0.019 - } - ] - }, - { - "name": { - "en": "Metro (5km)", - "fr": "Métro (5km)" - }, - "slug": "metro", - "ecv": 0.0222, - "footprint": 0.0044399999999999995, - "footprintDetail": [ - { - "id": 5, - "value": 0.0012 - }, - { - "id": 6, - "value": 0.021 - } - ] - }, - { - "name": { - "en": "Scooter or light motorbike (5km)", - "fr": "Scooter ou moto légère (5km)" - }, - "slug": "scooter", - "ecv": 0.3815, - "footprint": 0.0763, - "footprintDetail": [ - { - "id": 5, - "value": 0.0795 - }, - { - "id": 6, - "value": 0.302 - } - ] - }, - { - "name": { - "en": "Trip by motorbike (100km)", - "fr": "Voyage en moto (100km)" - }, - "slug": "moto", - "ecv": 19.13, - "footprint": 0.1913, - "footprintDetail": [ - { - "id": 5, - "value": 2.65 - }, - { - "id": 6, - "value": 16.48 - } - ] - }, - { - "name": { - "en": "City trains (20km)", - "fr": "RER ou Transilien (20km)" - }, - "slug": "rer", - "ecv": 0.1956, - "footprint": 0.00978, - "footprintDetail": [ - { - "id": 5, - "value": 0.0636 - }, - { - "id": 6, - "value": 0.132 - } - ] - }, - { - "name": { - "en": "Local trains (100km)", - "fr": "TER (100km)" - }, - "slug": "ter", - "ecv": 2.769, - "footprint": 0.02769, - "footprintDetail": [ - { - "id": 5, - "value": 0.479 - }, - { - "id": 6, - "value": 2.29 - } - ] - }, - { - "name": { - "en": "Electric town bus (5km)", - "fr": "Bus électrique (5km)" - }, - "slug": "buselectrique", - "ecv": 0.1085, - "footprint": 0.0217, - "footprintDetail": [ - { - "id": 5, - "value": 0.061 - }, - { - "id": 6, - "value": 0.0475 - } - ] - }, - { - "name": { - "en": "Gas town bus (5km)", - "fr": "Bus au gaz (5km)" - }, - "slug": "busgnv", - "ecv": 0.6085, - "footprint": 0.1217, - "footprintDetail": [ - { - "id": 5, - "value": 0.0445 - }, - { - "id": 6, - "value": 0.564 - } - ] - } - ] -} diff --git a/data/ademe/8-chauffage.json b/data/ademe/8-chauffage.json deleted file mode 100644 index 1c17982..0000000 --- a/data/ademe/8-chauffage.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "data": [ - { - "name": { - "en": "Gas heating", - "fr": "Chauffage au gaz" - }, - "slug": "chauffagegaz", - "ecv": 195, - "footprint": 195 - }, - { - "name": { - "en": "Oil heating", - "fr": "Chauffage au fioul" - }, - "slug": "chauffagefioul", - "ecv": 285.85, - "footprint": 285.85 - }, - { - "name": { - "en": "Electrical heating", - "fr": "Chauffage électrique" - }, - "slug": "chauffageelectrique", - "ecv": 59.25, - "footprint": 59.25 - }, - { - "name": { - "en": "Heating with heat pump", - "fr": "Chauffage avec une pompe à chaleur" - }, - "slug": "pompeachaleur", - "ecv": 19.75, - "footprint": 19.75 - }, - { - "name": { - "en": "Heating with pellet stove", - "fr": "Chauffage avec un poêle à granulés" - }, - "slug": "poeleagranule", - "ecv": 28.2, - "footprint": 28.2 - }, - { - "name": { - "en": "Heating with wood stove", - "fr": "Chauffage avec un poêle à bois" - }, - "slug": "poeleabois", - "ecv": 46, - "footprint": 46 - }, - { - "name": { - "en": "Heating with district heating", - "fr": "Chauffage via un réseau de chaleur" - }, - "slug": "reseaudechaleur", - "ecv": 93.35, - "footprint": 93.35 - } - ] -} \ No newline at end of file diff --git a/data/ademe/en/1-numerique.json b/data/ademe/en/1-numerique.json new file mode 100644 index 0000000..36c1b5c --- /dev/null +++ b/data/ademe/en/1-numerique.json @@ -0,0 +1,298 @@ +{ + "data": [ + { + "name": "Smartphone", + "slug": "smartphone", + "ecv": 85.85, + "footprint": 85.1, + "footprintDetail": [ + { + "id": 4, + "value": 2.1 + }, + { + "id": 5, + "value": 83 + } + ], + "usage": { + "peryear": 0.22, + "defaultyears": 2.5 + }, + "endOfLife": 0.2 + }, + { + "name": "Desktop computer without screen (personal)", + "slug": "ordinateurfixeparticulier", + "ecv": 299.3, + "footprint": 261.5, + "footprintDetail": [ + { + "id": 4, + "value": 2.9 + }, + { + "id": 5, + "value": 258.6 + } + ], + "usage": { + "peryear": 5.2, + "defaultyears": 6 + }, + "endOfLife": 6.6 + }, + { + "name": "Desktop computer without screen (office)", + "slug": "ordinateurfixeprofessionnel", + "ecv": 258.1, + "footprint": 204.4, + "footprintDetail": [ + { + "id": 4, + "value": 1.8 + }, + { + "id": 5, + "value": 202.6 + } + ], + "usage": { + "peryear": 7.85, + "defaultyears": 6 + }, + "endOfLife": 6.6 + }, + { + "name": "Computer screen", + "slug": "ecran", + "ecv": 91.4, + "footprint": 65.89999999999999, + "footprintDetail": [ + { + "id": 4, + "value": 1.3 + }, + { + "id": 5, + "value": 64.6 + } + ], + "usage": { + "peryear": 3.6, + "defaultyears": 6 + }, + "endOfLife": 3.9 + }, + { + "name": "Tablet", + "slug": "tabletteclassique", + "ecv": 61.89999999999999, + "footprint": 59.699999999999996, + "footprintDetail": [ + { + "id": 4, + "value": 3.4 + }, + { + "id": 5, + "value": 56.3 + } + ], + "usage": { + "peryear": 0.6, + "defaultyears": 3 + }, + "endOfLife": 0.4 + }, + { + "name": "Television", + "slug": "television", + "ecv": 472.40000000000003, + "footprint": 375.8, + "footprintDetail": [ + { + "id": 4, + "value": 3.2 + }, + { + "id": 5, + "value": 372.6 + } + ], + "usage": { + "peryear": 10.6, + "defaultyears": 8 + }, + "endOfLife": 11.8 + }, + { + "name": "Laptop", + "slug": "ordinateurportable", + "ecv": 193.00000000000003, + "footprint": 182.60000000000002, + "footprintDetail": [ + { + "id": 4, + "value": 12.3 + }, + { + "id": 5, + "value": 170.3 + } + ], + "usage": { + "peryear": 1.52, + "defaultyears": 5 + }, + "endOfLife": 2.8 + }, + { + "name": "Bluetooth speaker", + "slug": "enceintebluetooth", + "ecv": 26.5, + "footprint": 19.8, + "footprintDetail": [ + { + "id": 4, + "value": 0.3 + }, + { + "id": 5, + "value": 19.5 + } + ], + "usage": { + "peryear": 1.2, + "defaultyears": 5 + }, + "endOfLife": 0.7 + }, + { + "name": "Basic phone", + "slug": "telephonebasique", + "ecv": 23.400000000000002, + "footprint": 23.3, + "footprintDetail": [ + { + "id": 5, + "value": 23.3 + } + ], + "usage": { + "peryear": 0, + "defaultyears": 2.5 + }, + "endOfLife": 0.1 + }, + { + "name": "Virtual reality headset", + "slug": "casquevr", + "ecv": 72.30000000000001, + "footprint": 70.80000000000001, + "footprintDetail": [ + { + "id": 4, + "value": 0.4 + }, + { + "id": 5, + "value": 70.4 + } + ], + "usage": { + "peryear": 0.04, + "defaultyears": 5 + }, + "endOfLife": 1.3 + }, + { + "name": "External power supply for laptop", + "slug": "alimentationordinateur", + "ecv": 4.1, + "footprint": 3.6, + "footprintDetail": [ + { + "id": 4, + "value": 0.1 + }, + { + "id": 5, + "value": 3.5 + } + ], + "endOfLife": 0.5 + }, + { + "name": "External power supply for smartphone or tablet", + "slug": "alimentationsmartphone", + "ecv": 0.4, + "footprint": 0.3, + "footprintDetail": [ + { + "id": 4, + "value": 0 + }, + { + "id": 5, + "value": 0.3 + } + ], + "endOfLife": 0.1 + }, + { + "name": "External hard drive", + "slug": "disquedur", + "ecv": 11.9, + "footprint": 11.6, + "footprintDetail": [ + { + "id": 4, + "value": 0.1 + }, + { + "id": 5, + "value": 11.5 + } + ], + "endOfLife": 0.3 + }, + { + "name": "Usb key", + "slug": "clefusb", + "ecv": 2.9, + "footprint": 2.9, + "footprintDetail": [ + { + "id": 4, + "value": 0 + }, + { + "id": 5, + "value": 2.9 + } + ] + }, + { + "name": "Box", + "slug": "box", + "ecv": 82, + "footprint": 61.4, + "footprintDetail": [ + { + "id": 4, + "value": 0.6 + }, + { + "id": 5, + "value": 60.8 + } + ], + "usage": { + "peryear": 3.8, + "defaultyears": 5 + }, + "endOfLife": 1.6 + } + ] +} \ No newline at end of file diff --git a/data/ademe/10-usagenumerique.json b/data/ademe/en/10-usagenumerique.json similarity index 82% rename from data/ademe/10-usagenumerique.json rename to data/ademe/en/10-usagenumerique.json index 6655efa..603e3f4 100644 --- a/data/ademe/10-usagenumerique.json +++ b/data/ademe/en/10-usagenumerique.json @@ -1,10 +1,7 @@ { "data": [ { - "name": { - "en": "Email", - "fr": "Émail" - }, + "name": "Email", "slug": "email", "ecv": 0.00246181262, "footprint": 0.00246181262, @@ -32,10 +29,7 @@ ] }, { - "name": { - "en": "Spam", - "fr": "Spam" - }, + "name": "Spam", "slug": "spam", "ecv": 0.00373863698, "footprint": 0.00373863698, @@ -55,10 +49,7 @@ ] }, { - "name": { - "en": "Store 1Gb of data", - "fr": "Stocker 1Go de donnée" - }, + "name": "Store 1 GB of data", "slug": "stockagedonnee", "ecv": 0.00023533417, "footprint": 0.00023533417, @@ -74,10 +65,7 @@ ] }, { - "name": { - "en": "Web Search", - "fr": "Rechercher sur le web" - }, + "name": "Web search", "slug": "rechercheweb", "ecv": 0.051042269652307, "footprint": 0.051042269652307, @@ -105,10 +93,7 @@ ] }, { - "name": { - "en": "Streaming video", - "fr": "Streaming vidéo" - }, + "name": "Video streaming", "slug": "streamingvideo", "ecv": 0.06401675291000002, "footprint": 0.06401675291000002, @@ -136,10 +121,7 @@ ] }, { - "name": { - "en": "1h of online meeting", - "fr": "1h de visioconférence" - }, + "name": "Video conferencing", "slug": "visioconference", "ecv": 0.05706336546216, "footprint": 0.05706336546216, @@ -167,10 +149,7 @@ ] }, { - "name": { - "en": "Download 1 Gb of data", - "fr": "Télécharger 1 Go de donnée" - }, + "name": "GB of data", "slug": "telechargement", "ecv": 0.00950468087, "footprint": 0.00950468087, @@ -190,4 +169,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/data/ademe/en/2-repas.json b/data/ademe/en/2-repas.json new file mode 100644 index 0000000..1ee4cfe --- /dev/null +++ b/data/ademe/en/2-repas.json @@ -0,0 +1,40 @@ +{ + "data": [ + { + "name": "Meal with beef", + "slug": "repasavecduboeuf", + "ecv": 7.26, + "footprint": 7.26 + }, + { + "name": "Vegetarian meal", + "slug": "repasvegetarien", + "ecv": 0.51, + "footprint": 0.51 + }, + { + "name": "Vegan meal", + "slug": "repasvegetalien", + "ecv": 0.39, + "footprint": 0.39 + }, + { + "name": "Meal with white fish", + "slug": "repasavecdupoissonblanc", + "ecv": 1.98, + "footprint": 1.98 + }, + { + "name": "Meal with fatty fish", + "slug": "repasavecdupoissongras", + "ecv": 1.11, + "footprint": 1.11 + }, + { + "name": "Meal with chicken", + "slug": "repasavecdupoulet", + "ecv": 1.58, + "footprint": 1.58 + } + ] +} \ No newline at end of file diff --git a/data/ademe/3-boisson.json b/data/ademe/en/3-boisson.json similarity index 86% rename from data/ademe/3-boisson.json rename to data/ademe/en/3-boisson.json index 152cac3..dde46f9 100644 --- a/data/ademe/3-boisson.json +++ b/data/ademe/en/3-boisson.json @@ -1,19 +1,13 @@ { "data": [ { - "name": { - "en": "Tap Water", - "fr": "Eau du robinet" - }, + "name": "Tap water", "slug": "eaudurobinet", "ecv": 0.000132, "footprint": 0.000132 }, { - "name": { - "en": "Bottled Water", - "fr": "Eau en bouteille" - }, + "name": "Bottled water", "slug": "eauenbouteille", "ecv": 0.26707461992000003, "footprint": 0.26707461992000003, @@ -41,10 +35,7 @@ ] }, { - "name": { - "en": "Soda", - "fr": "Soda" - }, + "name": "Soda", "slug": "soda", "ecv": 0.5112250549, "footprint": 0.5112250549, @@ -76,10 +67,7 @@ ] }, { - "name": { - "en": "Beer", - "fr": "Bière" - }, + "name": "Beer", "slug": "biere", "ecv": 1.1193685269, "footprint": 1.1193685269, @@ -111,10 +99,7 @@ ] }, { - "name": { - "en": "Wine", - "fr": "Vin" - }, + "name": "Wine", "slug": "vin", "ecv": 1.1903542188999998, "footprint": 1.1903542188999998, @@ -146,10 +131,7 @@ ] }, { - "name": { - "en": "Cow Milk", - "fr": "Lait de vache" - }, + "name": "Cow milk", "slug": "laitdevache", "ecv": 1.1821407829999997, "footprint": 1.1821407829999997, @@ -177,11 +159,8 @@ ] }, { - "name": { - "en": "Soya Milk", - "fr": "Lait de soja" - }, - "slug": "laitdesoja", + "name": "Soy milk", + "slug": "soja", "ecv": 0.44564955900000003, "footprint": 0.44564955900000003, "footprintDetail": [ @@ -208,11 +187,8 @@ ] }, { - "name": { - "en": "Tea", - "fr": "Thé" - }, - "slug": "thé", + "name": "Tea", + "slug": "the", "ecv": 0.0391613535, "footprint": 0.0391613535, "footprintDetail": [ @@ -239,10 +215,7 @@ ] }, { - "name": { - "en": "Coffee", - "fr": "Café" - }, + "name": "Coffee", "slug": "cafe", "ecv": 0.59422464326, "footprint": 0.59422464326, @@ -274,4 +247,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/data/ademe/en/4-transport.json b/data/ademe/en/4-transport.json new file mode 100644 index 0000000..9990d92 --- /dev/null +++ b/data/ademe/en/4-transport.json @@ -0,0 +1,327 @@ +{ + "data": [ + { + "name": "Plane short-haul", + "slug": "avion-courtcourrier", + "ecv": 0.25858, + "footprint": 0.25858, + "footprintDetail": [ + { + "id": 5, + "value": 0.00038 + }, + { + "id": 6, + "value": 0.1412 + }, + { + "id": 7, + "value": 0.117 + } + ] + }, + { + "name": "Plane medium-haul", + "slug": "avion-moyencourrier", + "ecv": 0.18756, + "footprint": 0.18756, + "footprintDetail": [ + { + "id": 5, + "value": 0.00036 + }, + { + "id": 6, + "value": 0.1024 + }, + { + "id": 7, + "value": 0.0848 + } + ] + }, + { + "name": "Plane long-haul", + "slug": "avion-longcourrier", + "ecv": 0.15195999999999998, + "footprint": 0.15195999999999998, + "footprintDetail": [ + { + "id": 5, + "value": 0.00026 + }, + { + "id": 6, + "value": 0.08299999999999999 + }, + { + "id": 7, + "value": 0.0687 + } + ] + }, + { + "name": "High-speed train", + "slug": "tgv", + "ecv": 0.00293, + "footprint": 0.00293, + "footprintDetail": [ + { + "id": 5, + "value": 0.00063 + }, + { + "id": 6, + "value": 0.0023 + } + ] + }, + { + "name": "Intercity train", + "slug": "intercites", + "ecv": 0.00898, + "footprint": 0.00898, + "footprintDetail": [ + { + "id": 5, + "value": 0.00318 + }, + { + "id": 6, + "value": 0.0058 + } + ] + }, + { + "name": "Combustion car", + "slug": "voiturethermique", + "ecv": 0.21760000000000002, + "footprint": 0.21760000000000002, + "footprintDetail": [ + { + "value": 0.192, + "id": 6 + }, + { + "value": 0.0256, + "id": 5 + } + ] + }, + { + "name": "Electric car", + "slug": "voitureelectrique", + "ecv": 0.10339999999999999, + "footprint": 0.10339999999999999, + "footprintDetail": [ + { + "value": 0.0198, + "id": 6 + }, + { + "value": 0.0836, + "id": 5 + } + ] + }, + { + "name": "Combustion coach", + "slug": "autocar", + "ecv": 0.029421306270000003, + "footprint": 0.029421306270000003, + "footprintDetail": [ + { + "value": 0.025, + "id": 6 + }, + { + "value": 0.00442130627, + "_comment": "// = (Valeur en kgCO₂e/kg de véhicule * Masse type) / Nombre de passagers / Durée de vie en km = (4 * 12000) / 30 / 361884", + "id": 5 + } + ] + }, + { + "name": "Bicycle or walking", + "slug": "velo", + "ecv": 0, + "footprint": 0 + }, + { + "name": "Electrically assisted bicycle", + "slug": "veloelectrique", + "ecv": 0.010950000000000001, + "footprint": 0.010950000000000001, + "footprintDetail": [ + { + "id": 5, + "value": 0.00872 + }, + { + "id": 6, + "value": 0.00223 + } + ] + }, + { + "name": "Combustion bus", + "slug": "busthermique", + "ecv": 0.11320000000000001, + "footprint": 0.11320000000000001, + "footprintDetail": [ + { + "id": 5, + "value": 0.0089 + }, + { + "id": 6, + "value": 0.1043 + } + ] + }, + { + "name": "Tram", + "slug": "tramway", + "ecv": 0.00428, + "footprint": 0.00428, + "footprintDetail": [ + { + "id": 5, + "value": 0.00048 + }, + { + "id": 6, + "value": 0.0038 + } + ] + }, + { + "name": "Metro", + "slug": "metro", + "ecv": 0.0044399999999999995, + "footprint": 0.0044399999999999995, + "footprintDetail": [ + { + "id": 5, + "value": 0.00024 + }, + { + "id": 6, + "value": 0.0042 + } + ] + }, + { + "name": "Combustion scooter or lightweight combustion motorcycle", + "slug": "scooter", + "ecv": 0.0763, + "footprint": 0.0763, + "footprintDetail": [ + { + "id": 5, + "value": 0.0159 + }, + { + "id": 6, + "value": 0.0604 + } + ] + }, + { + "name": "Combustion motorcycle", + "slug": "moto", + "ecv": 0.1913, + "footprint": 0.1913, + "footprintDetail": [ + { + "id": 5, + "value": 0.0265 + }, + { + "id": 6, + "value": 0.1648 + } + ] + }, + { + "name": "RER or suburban train", + "slug": "rer", + "ecv": 0.00978, + "footprint": 0.00978, + "footprintDetail": [ + { + "id": 5, + "value": 0.00318 + }, + { + "id": 6, + "value": 0.0066 + } + ] + }, + { + "name": "Regional train", + "slug": "ter", + "ecv": 0.02769, + "footprint": 0.02769, + "footprintDetail": [ + { + "id": 5, + "value": 0.00479 + }, + { + "id": 6, + "value": 0.0229 + } + ] + }, + { + "name": "Electric bus", + "slug": "buselectrique", + "ecv": 0.0217, + "footprint": 0.0217, + "footprintDetail": [ + { + "id": 5, + "value": 0.0122 + }, + { + "id": 6, + "value": 0.0095 + } + ] + }, + { + "name": "Electrically assisted scooter", + "slug": "trottinette", + "ecv": 0.0249, + "footprint": 0.0249, + "footprintDetail": [ + { + "id": 5, + "value": 0.0229 + }, + { + "id": 6, + "value": 0.002 + } + ] + }, + { + "name": "Bus (natural gas vehicle)", + "slug": "busgnv", + "ecv": 0.1217, + "footprint": 0.1217, + "footprintDetail": [ + { + "id": 5, + "value": 0.0089 + }, + { + "id": 6, + "value": 0.1128 + } + ] + } + ] +} \ No newline at end of file diff --git a/data/ademe/5-habillement.json b/data/ademe/en/5-habillement.json similarity index 85% rename from data/ademe/5-habillement.json rename to data/ademe/en/5-habillement.json index 119f45a..2ab1ba0 100644 --- a/data/ademe/5-habillement.json +++ b/data/ademe/en/5-habillement.json @@ -1,10 +1,7 @@ { "data": [ { - "name": { - "en": "Jeans", - "fr": "Jean" - }, + "name": "Jeans", "slug": "jeans", "ecv": 25.08872880618721, "footprint": 23.2, @@ -33,10 +30,7 @@ "endOfLife": 0.63563578618721 }, { - "name": { - "en": "Polo shirt", - "fr": "Polo" - }, + "name": "Polo", "slug": "polo", "ecv": 10.163529075648208, "footprint": 8.2, @@ -65,10 +59,7 @@ "endOfLife": 0.544462785648209 }, { - "name": { - "en": "Cotton t-shirt", - "fr": "T-shirt en coton" - }, + "name": "T-shirt cotton", "slug": "tshirtencoton", "ecv": 6.433790554863734, "footprint": 5.199999999999999, @@ -97,10 +88,7 @@ "endOfLife": 0.250404099863735 }, { - "name": { - "en": "Polyester t-shirt", - "fr": "T-shirt en polyester" - }, + "name": "T-shirt polyester", "slug": "tshirtenpolyester", "ecv": 6.211492878123854, "footprint": 5.5, @@ -129,10 +117,7 @@ "endOfLife": 0.172305318123854 }, { - "name": { - "en": "Cotton hoodie", - "fr": "Sweat en coton" - }, + "name": "Sweatshirt cotton", "slug": "sweatencoton", "ecv": 32.49278107847502, "footprint": 27.4, @@ -161,10 +146,7 @@ "endOfLife": 1.51606227347502 }, { - "name": { - "en": "Cotton shirt", - "fr": "Chemise en coton" - }, + "name": "Shirt cotton", "slug": "chemiseencoton", "ecv": 13.23466182713826, "footprint": 11.2, @@ -193,10 +175,7 @@ "endOfLife": 0.462075432138259 }, { - "name": { - "en": "Viscose shirt", - "fr": "Chemise en viscose" - }, + "name": "Shirt viscose", "slug": "chemiseenviscose", "ecv": 12.139796272777625, "footprint": 10.2, @@ -225,10 +204,7 @@ "endOfLife": 0.464139172777627 }, { - "name": { - "en": "Leather shoes", - "fr": "Paire de chaussures en cuir" - }, + "name": "Pair of leather shoes", "slug": "chaussuresencuir", "ecv": 14.954494546022259, "footprint": 13.399999999999999, @@ -257,10 +233,7 @@ "endOfLife": 1.55449454602226 }, { - "name": { - "en": "Fabric shoes", - "fr": "Paire de chaussures en tissu" - }, + "name": "Pair of fabric shoes", "slug": "chaussuresentissu", "ecv": 18.519884267564898, "footprint": 17.299999999999997, @@ -289,10 +262,7 @@ "endOfLife": 1.2198842675649 }, { - "name": { - "en": "Sport shoes", - "fr": "Paire de chaussures de sport" - }, + "name": "Pair of sports shoes", "slug": "chaussuresdesport", "ecv": 20.125551283507104, "footprint": 18.700000000000003, @@ -321,10 +291,7 @@ "endOfLife": 1.4255512835071 }, { - "name": { - "en": "Cotton dress", - "fr": "Robe en coton" - }, + "name": "Dress cotton", "slug": "robeencoton", "ecv": 56.90736582785554, "footprint": 49.8, @@ -353,10 +320,7 @@ "endOfLife": 1.29416237785554 }, { - "name": { - "en": "Polyester dress", - "fr": "Robe en polyester" - }, + "name": "Dress polyester", "slug": "robeenpolyester", "ecv": 58.257205518739376, "footprint": 51.900000000000006, @@ -385,10 +349,7 @@ "endOfLife": 1.53486702873937 }, { - "name": { - "en": "Viscose dress", - "fr": "Robe en viscose" - }, + "name": "Dress viscose", "slug": "robeenviscose", "ecv": 52.48152206560145, "footprint": 44.9, @@ -417,10 +378,7 @@ "endOfLife": 2.39476716560145 }, { - "name": { - "en": "Wool pullover", - "fr": "Pull en laine" - }, + "name": "Sweater wool", "slug": "pullenlaine", "ecv": 56.69545613769189, "footprint": 52.9, @@ -449,10 +407,7 @@ "endOfLife": 1.27881830769189 }, { - "name": { - "en": "Acrylic pullover", - "fr": "Pull en acrylique" - }, + "name": "Sweater acrylic", "slug": "pullenacrylique", "ecv": 28.96838102563544, "footprint": 25.5, @@ -481,10 +436,7 @@ "endOfLife": 1.01073009563544 }, { - "name": { - "en": "Recycled cotton pullover", - "fr": "Pull en coton recyclé" - }, + "name": "Sweater recycled cotton", "slug": "pullencotonrecycle", "ecv": 13.19278107847502, "footprint": 8.100000000000001, @@ -513,10 +465,7 @@ "endOfLife": 1.51606227347502 }, { - "name": { - "en": "Coat", - "fr": "Manteau" - }, + "name": "Coat", "slug": "manteau", "ecv": 101.42051607966856, "footprint": 85.8, @@ -545,10 +494,7 @@ "endOfLife": 2.39840212966855 }, { - "name": { - "en": "Waterproof jacket", - "fr": "Veste imperméable" - }, + "name": "Waterproof jacket", "slug": "vesteimpermeable", "ecv": 41.14715954637288, "footprint": 38.699999999999996, @@ -577,10 +523,7 @@ "endOfLife": 0.646349561372889 }, { - "name": { - "en": "Imitation leather jacket", - "fr": "Veste simili-cuir" - }, + "name": "Faux leather jacket", "slug": "vestesimilicuir", "ecv": 26.825820363170223, "footprint": 24.000000000000004, diff --git a/data/ademe/6-electromenager.json b/data/ademe/en/6-electromenager.json similarity index 85% rename from data/ademe/6-electromenager.json rename to data/ademe/en/6-electromenager.json index e698a59..799cf0e 100644 --- a/data/ademe/6-electromenager.json +++ b/data/ademe/en/6-electromenager.json @@ -1,10 +1,7 @@ { "data": [ { - "name": { - "en": "Kettle", - "fr": "Bouilloire" - }, + "name": "Kettle", "slug": "bouilloire", "ecv": 40.88403605825422, "footprint": 9.907, @@ -33,10 +30,7 @@ "endOfLife": -0.659363081745786 }, { - "name": { - "en": "Pods coffee maker", - "fr": "Cafetière (dosette)" - }, + "name": "Coffee maker pods", "slug": "cafetieredosette", "ecv": 251.0035526905852, "footprint": 22.454, @@ -65,10 +59,7 @@ "endOfLife": 52.7491626905852 }, { - "name": { - "en": "Filters coffee maker", - "fr": "Cafetière (filtre)" - }, + "name": "Coffee maker filter", "slug": "cafetierefiltre", "ecv": 197.69817433391722, "footprint": 31.9, @@ -97,10 +88,7 @@ "endOfLife": 29.8824988339172 }, { - "name": { - "en": "Expresso coffee maker", - "fr": "Cafetière (expresso)" - }, + "name": "Coffee maker espresso", "slug": "cafetiereexpresso", "ecv": 211.7710842705374, "footprint": 47.617000000000004, @@ -129,10 +117,7 @@ "endOfLife": 23.9101982705374 }, { - "name": { - "en": "Electrical oven", - "fr": "Four électrique" - }, + "name": "Electric oven", "slug": "fourelectrique", "ecv": 263.06469996, "footprint": 217.58999999999997, @@ -161,10 +146,7 @@ "endOfLife": -30.0927 }, { - "name": { - "en": "Dishwasher", - "fr": "Lave-vaisselle" - }, + "name": "Dishwasher", "slug": "lavevaisselle", "ecv": 467.9982177292116, "footprint": 271.19, @@ -193,10 +175,7 @@ "endOfLife": -22.6301522707884 }, { - "name": { - "en": "Washing machine", - "fr": "Lave-linge" - }, + "name": "Washing machine", "slug": "lavelinge", "ecv": 510.2572583409827, "footprint": 341.09999999999997, @@ -225,10 +204,7 @@ "endOfLife": -47.7754436590173 }, { - "name": { - "en": "Fridge", - "fr": "Réfrigérateur" - }, + "name": "Refrigerator", "slug": "refrigirateur", "ecv": 325.46071642401705, "footprint": 257.3, @@ -257,10 +233,7 @@ "endOfLife": -20.163316975983 }, { - "name": { - "en": "Vacuum cleaner", - "fr": "Aspirateur" - }, + "name": "Vacuum cleaner", "slug": "aspirateur", "ecv": 47.31, "footprint": 47.31, @@ -284,10 +257,7 @@ ] }, { - "name": { - "en": "Air conditioner", - "fr": "Climatiseur" - }, + "name": "Air conditioner", "slug": "climatiseur", "ecv": 413.8812884443126, "footprint": 238.89999999999998, diff --git a/data/ademe/7-mobilier.json b/data/ademe/en/7-mobilier.json similarity index 82% rename from data/ademe/7-mobilier.json rename to data/ademe/en/7-mobilier.json index 09c0ccc..3196262 100644 --- a/data/ademe/7-mobilier.json +++ b/data/ademe/en/7-mobilier.json @@ -1,10 +1,7 @@ { "data": [ { - "name": { - "en": "Canapé convertible", - "fr": "Convertible sofa" - }, + "name": "Sofa convertible", "slug": "canapeconvertible", "ecv": 197.5, "footprint": 197.5, @@ -28,10 +25,7 @@ ] }, { - "name": { - "en": "Wooden chair", - "fr": "Chaise en bois" - }, + "name": "Wooden chair", "slug": "chaiseenbois", "ecv": 18.63, "footprint": 18.63, @@ -55,10 +49,7 @@ ] }, { - "name": { - "en": "Wooden table", - "fr": "Table en bois" - }, + "name": "Wooden table", "slug": "tableenbois", "ecv": 80.22, "footprint": 80.22, @@ -82,10 +73,7 @@ ] }, { - "name": { - "en": "Textile sofa", - "fr": "Canapé en textile" - }, + "name": "Fabric sofa", "slug": "canapetextile", "ecv": 179.1, "footprint": 179.1, @@ -109,10 +97,7 @@ ] }, { - "name": { - "en": "Wardrobe", - "fr": "Armoire" - }, + "name": "Wardrobe", "slug": "armoire", "ecv": 906.88, "footprint": 906.88, @@ -136,10 +121,7 @@ ] }, { - "name": { - "en": "Bed", - "fr": "Lit" - }, + "name": "Bed", "slug": "lit", "ecv": 443.81000000000006, "footprint": 443.81000000000006, @@ -163,4 +145,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/data/ademe/en/8-chauffage.json b/data/ademe/en/8-chauffage.json new file mode 100644 index 0000000..4328a3c --- /dev/null +++ b/data/ademe/en/8-chauffage.json @@ -0,0 +1,39 @@ +{ + "data": [ + { + "name": "Gas heating", + "slug": "chauffagegaz", + "ecv": 2340 + }, + { + "name": "Oil heating", + "slug": "chauffagefioul", + "ecv": 3430.2000000000003 + }, + { + "name": "Electric heating", + "slug": "chauffageelectrique", + "ecv": 711 + }, + { + "name": "Heating with a heat pump", + "slug": "pompeachaleur", + "ecv": 237 + }, + { + "name": "Heating with a pellet stove", + "slug": "poeleagranule", + "ecv": 338.4 + }, + { + "name": "Heating with a wood stove", + "slug": "poeleabois", + "ecv": 552 + }, + { + "name": "Heating via a district heating network", + "slug": "reseaudechaleur", + "ecv": 1120.2 + } + ] +} \ No newline at end of file diff --git a/data/ademe/9-fruitsetlegumes.json b/data/ademe/en/9-fruitsetlegumes.json similarity index 86% rename from data/ademe/9-fruitsetlegumes.json rename to data/ademe/en/9-fruitsetlegumes.json index a71fde5..318976f 100644 --- a/data/ademe/9-fruitsetlegumes.json +++ b/data/ademe/en/9-fruitsetlegumes.json @@ -1,10 +1,7 @@ { "data": [ { - "name": { - "en": "Strawberry", - "fr": "Fraise" - }, + "name": "Strawberry", "slug": "fraise", "ecv": 0.47706577790000004, "footprint": 0.47706577790000004, @@ -28,10 +25,7 @@ ] }, { - "name": { - "en": "Apple", - "fr": "Pomme" - }, + "name": "Apple", "slug": "pomme", "ecv": 0.396515083, "footprint": 0.396515083, @@ -55,10 +49,7 @@ ] }, { - "name": { - "en": "Orange", - "fr": "Orange" - }, + "name": "Orange", "slug": "orange", "ecv": 0.633964319, "footprint": 0.633964319, @@ -82,10 +73,7 @@ ] }, { - "name": { - "en": "Lemon", - "fr": "Citron" - }, + "name": "Lemon", "slug": "citron", "ecv": 0.711263074, "footprint": 0.711263074, @@ -109,10 +97,7 @@ ] }, { - "name": { - "en": "Garlic", - "fr": "Ail" - }, + "name": "Garlic", "slug": "ail", "ecv": 0.358042894, "footprint": 0.358042894, @@ -136,10 +121,7 @@ ] }, { - "name": { - "en": "Artichoke", - "fr": "Artichaut" - }, + "name": "Artichoke", "slug": "artichaut", "ecv": 3.876929068, "footprint": 3.876929068, @@ -163,10 +145,7 @@ ] }, { - "name": { - "en": "Asparagus", - "fr": "Asperge" - }, + "name": "Asparagus", "slug": "asperge", "ecv": 1.559309081, "footprint": 1.559309081, @@ -190,10 +169,7 @@ ] }, { - "name": { - "en": "Beetroot", - "fr": "Betterave" - }, + "name": "Beetroot", "slug": "betterave", "ecv": 0.3643210989999999, "footprint": 0.3643210989999999, @@ -217,10 +193,7 @@ ] }, { - "name": { - "en": "Chard", - "fr": "Blette" - }, + "name": "Chard", "slug": "blette", "ecv": 0.542753575, "footprint": 0.542753575, @@ -244,10 +217,7 @@ ] }, { - "name": { - "en": "Carrot", - "fr": "Carotte" - }, + "name": "Carrot", "slug": "carotte", "ecv": 0.3643210989999999, "footprint": 0.3643210989999999, @@ -271,10 +241,7 @@ ] }, { - "name": { - "en": "Celery", - "fr": "Céleri" - }, + "name": "Celery", "slug": "celeri", "ecv": 0.6770180851000002, "footprint": 0.6770180851000002, @@ -298,10 +265,7 @@ ] }, { - "name": { - "en": "Mushroom (raw morel)", - "fr": "Champignon (morille crue)" - }, + "name": "Mushroom (raw morel)", "slug": "champignonmorille", "ecv": 0.4937143989999999, "footprint": 0.4937143989999999, @@ -325,10 +289,7 @@ ] }, { - "name": { - "en": "Cabbage", - "fr": "Chou" - }, + "name": "Cabbage", "slug": "chou", "ecv": 0.862097522, "footprint": 0.862097522, @@ -352,10 +313,7 @@ ] }, { - "name": { - "en": "Brussels sprout", - "fr": "Chou de Bruxelles" - }, + "name": "Brussels sprout", "slug": "choudebruxelles", "ecv": 0.5758186729, "footprint": 0.5758186729, @@ -379,10 +337,7 @@ ] }, { - "name": { - "en": "Cauliflower", - "fr": "Chou-fleur" - }, + "name": "Cauliflower", "slug": "choufleur", "ecv": 0.735512212, "footprint": 0.735512212, @@ -406,10 +361,7 @@ ] }, { - "name": { - "en": "Cucumber", - "fr": "Concombre" - }, + "name": "Cucumber", "slug": "concombre", "ecv": 0.473201203, "footprint": 0.473201203, @@ -433,10 +385,7 @@ ] }, { - "name": { - "en": "Squash", - "fr": "Courge" - }, + "name": "Squash", "slug": "courge", "ecv": 0.618848881, "footprint": 0.618848881, @@ -460,10 +409,7 @@ ] }, { - "name": { - "en": "Zucchini", - "fr": "Courgette" - }, + "name": "Zucchini", "slug": "courgette", "ecv": 0.48351979, "footprint": 0.48351979, @@ -487,10 +433,7 @@ ] }, { - "name": { - "en": "Watercress", - "fr": "Cresson" - }, + "name": "Watercress", "slug": "cresson", "ecv": 0.9410662189999999, "footprint": 0.9410662189999999, @@ -514,10 +457,7 @@ ] }, { - "name": { - "en": "Shallot", - "fr": "Échalote" - }, + "name": "Shallot", "slug": "echalote", "ecv": 0.3648632602000001, "footprint": 0.3648632602000001, @@ -541,10 +481,7 @@ ] }, { - "name": { - "en": "Endive", - "fr": "Endive" - }, + "name": "Endive", "slug": "endive", "ecv": 0.9380277949999998, "footprint": 0.9380277949999998, @@ -568,10 +505,7 @@ ] }, { - "name": { - "en": "Spinach", - "fr": "Épinard" - }, + "name": "Spinach", "slug": "epinard", "ecv": 0.3912991521, "footprint": 0.3912991521, @@ -595,10 +529,7 @@ ] }, { - "name": { - "en": "Mango", - "fr": "Mangue" - }, + "name": "Mango", "slug": "mangue", "ecv": 10.641545366999999, "footprint": 10.641545366999999, @@ -622,10 +553,7 @@ ] }, { - "name": { - "en": "Fennel", - "fr": "Fenouil" - }, + "name": "Fennel", "slug": "fenouil", "ecv": 0.962528871, "footprint": 0.962528871, @@ -649,10 +577,7 @@ ] }, { - "name": { - "en": "Green bean", - "fr": "Haricot vert" - }, + "name": "Green bean (raw)", "slug": "haricotvert", "ecv": 0.41306197199999994, "footprint": 0.41306197199999994, @@ -676,10 +601,7 @@ ] }, { - "name": { - "en": "Lettuce", - "fr": "Laitue" - }, + "name": "Lettuce", "slug": "laitue", "ecv": 0.9410662189999999, "footprint": 0.9410662189999999, @@ -703,10 +625,7 @@ ] }, { - "name": { - "en": "Lamb's lettuce", - "fr": "Mâche" - }, + "name": "Lamb's lettuce", "slug": "mache", "ecv": 0.9410662189999999, "footprint": 0.9410662189999999, @@ -730,10 +649,7 @@ ] }, { - "name": { - "en": "Turnip", - "fr": "Navet" - }, + "name": "Turnip", "slug": "navet", "ecv": 0.364321099, "footprint": 0.364321099, @@ -757,10 +673,7 @@ ] }, { - "name": { - "en": "Corn", - "fr": "Maïs" - }, + "name": "Corn", "slug": "mais", "ecv": 0.810485801, "footprint": 0.810485801, @@ -784,10 +697,7 @@ ] }, { - "name": { - "en": "Onion", - "fr": "Oignon" - }, + "name": "Onion", "slug": "oignon", "ecv": 0.38953612800000015, "footprint": 0.38953612800000015, @@ -811,10 +721,7 @@ ] }, { - "name": { - "en": "Parsnip", - "fr": "Panais" - }, + "name": "Parsnip", "slug": "panais", "ecv": 0.45782909000000005, "footprint": 0.45782909000000005, @@ -838,10 +745,7 @@ ] }, { - "name": { - "en": "Pea", - "fr": "Petit pois" - }, + "name": "Green pea", "slug": "petitpois", "ecv": 0.6651291770000001, "footprint": 0.6651291770000001, @@ -861,10 +765,7 @@ ] }, { - "name": { - "en": "Leek", - "fr": "Poireau" - }, + "name": "Leek", "slug": "poireau", "ecv": 0.768865685, "footprint": 0.768865685, @@ -888,10 +789,7 @@ ] }, { - "name": { - "en": "Bell pepper", - "fr": "Poivron" - }, + "name": "Bell pepper", "slug": "poivron", "ecv": 1.1836197739999998, "footprint": 1.1836197739999998, @@ -915,10 +813,7 @@ ] }, { - "name": { - "en": "Pumpkin", - "fr": "Potiron" - }, + "name": "Pumpkin", "slug": "potiron", "ecv": 0.618848881, "footprint": 0.618848881, @@ -942,10 +837,7 @@ ] }, { - "name": { - "en": "Radish", - "fr": "Radis" - }, + "name": "Radish", "slug": "radis", "ecv": 0.6018473451, "footprint": 0.6018473451, @@ -969,10 +861,7 @@ ] }, { - "name": { - "en": "Salsify", - "fr": "Salsifis" - }, + "name": "Salsify", "slug": "salsifis", "ecv": 0.45782908999999994, "footprint": 0.45782908999999994, @@ -996,10 +885,7 @@ ] }, { - "name": { - "en": "Jerusalem artichoke", - "fr": "Topinambour" - }, + "name": "Jerusalem artichoke", "slug": "topinambour", "ecv": 0.5048719700000001, "footprint": 0.5048719700000001, @@ -1023,10 +909,7 @@ ] }, { - "name": { - "en": "Blackcurrant", - "fr": "Cassis" - }, + "name": "Blackcurrant", "slug": "cassis", "ecv": 1.7963874969999998, "footprint": 1.7963874969999998, @@ -1050,10 +933,7 @@ ] }, { - "name": { - "en": "Chestnut", - "fr": "Châtaigne" - }, + "name": "Chestnut", "slug": "chataigne", "ecv": 1.880205125, "footprint": 1.880205125, @@ -1077,10 +957,7 @@ ] }, { - "name": { - "en": "Clementine", - "fr": "Clémentine" - }, + "name": "Clementine", "slug": "clementine", "ecv": 1.2214244939999999, "footprint": 1.2214244939999999, @@ -1104,10 +981,7 @@ ] }, { - "name": { - "en": "Grapefruit", - "fr": "Pamplemousse" - }, + "name": "Grapefruit", "slug": "pamplemousse", "ecv": 0.8728596140000001, "footprint": 0.8728596140000001, @@ -1131,10 +1005,7 @@ ] }, { - "name": { - "en": "Quince", - "fr": "Coing" - }, + "name": "Quince", "slug": "coing", "ecv": 0.5410901117000001, "footprint": 0.5410901117000001, @@ -1158,10 +1029,7 @@ ] }, { - "name": { - "en": "Fig", - "fr": "Figue" - }, + "name": "Fig", "slug": "figue", "ecv": 0.6135498970000001, "footprint": 0.6135498970000001, @@ -1185,10 +1053,7 @@ ] }, { - "name": { - "en": "Currant", - "fr": "Groseille" - }, + "name": "Red currant", "slug": "groseille", "ecv": 1.7875465516999998, "footprint": 1.7875465516999998, @@ -1212,10 +1077,7 @@ ] }, { - "name": { - "en": "Kiwi", - "fr": "Kiwi" - }, + "name": "Kiwi", "slug": "kiwi", "ecv": 0.9768151836999999, "footprint": 0.9768151836999999, @@ -1243,10 +1105,7 @@ ] }, { - "name": { - "en": "Mandarin", - "fr": "Mandarine" - }, + "name": "Mandarin", "slug": "mandarine", "ecv": 0.42273830129999995, "footprint": 0.42273830129999995, @@ -1270,10 +1129,7 @@ ] }, { - "name": { - "en": "Melon", - "fr": "Melon" - }, + "name": "Melon", "slug": "melon", "ecv": 0.931394984, "footprint": 0.931394984, @@ -1297,10 +1153,7 @@ ] }, { - "name": { - "en": "Blackberry", - "fr": "Mûre" - }, + "name": "Blackberry", "slug": "mure", "ecv": 1.2060856469999999, "footprint": 1.2060856469999999, @@ -1324,10 +1177,7 @@ ] }, { - "name": { - "en": "Nectarine", - "fr": "Nectarine" - }, + "name": "Nectarine", "slug": "nectarine", "ecv": 0.6373697500000002, "footprint": 0.6373697500000002, @@ -1351,10 +1201,7 @@ ] }, { - "name": { - "en": "Blueberry", - "fr": "Myrtille" - }, + "name": "Blueberry", "slug": "myrtille", "ecv": 0.8815012491, "footprint": 0.8815012491, @@ -1378,10 +1225,7 @@ ] }, { - "name": { - "en": "Hazelnut", - "fr": "Noisette" - }, + "name": "Hazelnut", "slug": "noisette", "ecv": 4.652965420999999, "footprint": 4.652965420999999, @@ -1405,10 +1249,7 @@ ] }, { - "name": { - "en": "Nut", - "fr": "Noix" - }, + "name": "Walnut", "slug": "noix", "ecv": 4.164838912, "footprint": 4.164838912, @@ -1436,10 +1277,7 @@ ] }, { - "name": { - "en": "Plum", - "fr": "Prune" - }, + "name": "Plum", "slug": "prune", "ecv": 0.9630279916999999, "footprint": 0.9630279916999999, @@ -1463,10 +1301,7 @@ ] }, { - "name": { - "en": "Greengage", - "fr": "Reine Claude" - }, + "name": "Greengage", "slug": "reineclaude", "ecv": 0.971868937, "footprint": 0.971868937, @@ -1490,10 +1325,7 @@ ] }, { - "name": { - "en": "Rhubarb", - "fr": "Rhubarbe" - }, + "name": "Rhubarb", "slug": "rhubarbe", "ecv": 0.7167486917, "footprint": 0.7167486917, @@ -1517,10 +1349,7 @@ ] }, { - "name": { - "en": "Peach", - "fr": "Pêche" - }, + "name": "Peach", "slug": "peche", "ecv": 0.5957366917, "footprint": 0.5957366917, @@ -1544,10 +1373,7 @@ ] }, { - "name": { - "en": "Cherry", - "fr": "Cerise" - }, + "name": "Cherry", "slug": "cerise", "ecv": 1.3353255069999996, "footprint": 1.3353255069999996, @@ -1575,10 +1401,7 @@ ] }, { - "name": { - "en": "Apricot", - "fr": "Abricot" - }, + "name": "Apricot", "slug": "abricot", "ecv": 0.8806383170000001, "footprint": 0.8806383170000001, @@ -1606,10 +1429,7 @@ ] }, { - "name": { - "en": "Raspberry", - "fr": "Framboise" - }, + "name": "Raspberry", "slug": "framboise", "ecv": 1.4750375679, "footprint": 1.4750375679, @@ -1633,10 +1453,7 @@ ] }, { - "name": { - "en": "Pear", - "fr": "Poire" - }, + "name": "Pear", "slug": "poire", "ecv": 0.36428259399999996, "footprint": 0.36428259399999996, @@ -1660,10 +1477,7 @@ ] }, { - "name": { - "en": "Grape", - "fr": "Raisin" - }, + "name": "Grape", "slug": "raisin", "ecv": 0.45672809300000006, "footprint": 0.45672809300000006, @@ -1687,10 +1501,7 @@ ] }, { - "name": { - "en": "Eggplant", - "fr": "Aubergine" - }, + "name": "Eggplant", "slug": "aubergine", "ecv": 0.4571093429, "footprint": 0.4571093429, @@ -1714,10 +1525,7 @@ ] }, { - "name": { - "en": "Broccoli", - "fr": "Brocoli" - }, + "name": "Broccoli", "slug": "brocoli", "ecv": 0.9025554719999999, "footprint": 0.9025554719999999, @@ -1741,10 +1549,7 @@ ] }, { - "name": { - "en": "Tomato", - "fr": "Tomate" - }, + "name": "Tomato", "slug": "tomate", "ecv": 0.581556477, "footprint": 0.581556477, @@ -1768,10 +1573,7 @@ ] }, { - "name": { - "en": "Pineapple", - "fr": "Ananas" - }, + "name": "Pineapple", "slug": "ananas", "ecv": 1.292282106, "footprint": 1.292282106, @@ -1795,10 +1597,7 @@ ] }, { - "name": { - "en": "Banana", - "fr": "Banane" - }, + "name": "Banana", "slug": "banane", "ecv": 0.8806108929999997, "footprint": 0.8806108929999997, @@ -1822,10 +1621,7 @@ ] }, { - "name": { - "en": "Avocado", - "fr": "Avocat" - }, + "name": "Avocado", "slug": "avocat", "ecv": 1.4804702330000001, "footprint": 1.4804702330000001, @@ -1849,10 +1645,7 @@ ] }, { - "name": { - "en": "Starfruit", - "fr": "Carambole" - }, + "name": "Starfruit", "slug": "carambole", "ecv": 0.533048897, "footprint": 0.533048897, @@ -1876,10 +1669,7 @@ ] }, { - "name": { - "en": "Date", - "fr": "Datte" - }, + "name": "Date", "slug": "datte", "ecv": 2.7601109879999997, "footprint": 2.7601109879999997, @@ -1903,10 +1693,7 @@ ] }, { - "name": { - "en": "Passion fruit", - "fr": "Fruit de la passion" - }, + "name": "Passion fruit", "slug": "fruitdelapassion", "ecv": 0.89281737, "footprint": 0.89281737, @@ -1930,10 +1717,7 @@ ] }, { - "name": { - "en": "Pomegranate", - "fr": "Grenade" - }, + "name": "Pomegranate", "slug": "grenade", "ecv": 0.48557222170000003, "footprint": 0.48557222170000003, @@ -1957,10 +1741,7 @@ ] }, { - "name": { - "en": "Persimmon", - "fr": "Kaki" - }, + "name": "Persimmon", "slug": "kaki", "ecv": 0.9004313517, "footprint": 0.9004313517, @@ -1984,10 +1765,7 @@ ] }, { - "name": { - "en": "Coconut", - "fr": "Noix de coco" - }, + "name": "Coconut", "slug": "noixdecoco", "ecv": 2.493762422, "footprint": 2.493762422, @@ -2015,10 +1793,7 @@ ] }, { - "name": { - "en": "Watermelon", - "fr": "Pastèque" - }, + "name": "Watermelon", "slug": "pasteque", "ecv": 0.6414638217000002, "footprint": 0.6414638217000002, diff --git a/data/ademe/fr/1-numerique.json b/data/ademe/fr/1-numerique.json new file mode 100644 index 0000000..cba8110 --- /dev/null +++ b/data/ademe/fr/1-numerique.json @@ -0,0 +1,298 @@ +{ + "data": [ + { + "name": "Smartphone", + "slug": "smartphone", + "ecv": 85.85, + "footprint": 85.1, + "footprintDetail": [ + { + "id": 4, + "value": 2.1 + }, + { + "id": 5, + "value": 83 + } + ], + "usage": { + "peryear": 0.22, + "defaultyears": 2.5 + }, + "endOfLife": 0.2 + }, + { + "name": "Ordinateur fixe sans écran (particulier)", + "slug": "ordinateurfixeparticulier", + "ecv": 299.3, + "footprint": 261.5, + "footprintDetail": [ + { + "id": 4, + "value": 2.9 + }, + { + "id": 5, + "value": 258.6 + } + ], + "usage": { + "peryear": 5.2, + "defaultyears": 6 + }, + "endOfLife": 6.6 + }, + { + "name": "Ordinateur fixe sans écran (professionnel)", + "slug": "ordinateurfixeprofessionnel", + "ecv": 258.1, + "footprint": 204.4, + "footprintDetail": [ + { + "id": 4, + "value": 1.8 + }, + { + "id": 5, + "value": 202.6 + } + ], + "usage": { + "peryear": 7.85, + "defaultyears": 6 + }, + "endOfLife": 6.6 + }, + { + "name": "Écran d'ordinateur", + "slug": "ecran", + "ecv": 91.4, + "footprint": 65.89999999999999, + "footprintDetail": [ + { + "id": 4, + "value": 1.3 + }, + { + "id": 5, + "value": 64.6 + } + ], + "usage": { + "peryear": 3.6, + "defaultyears": 6 + }, + "endOfLife": 3.9 + }, + { + "name": "Tablette", + "slug": "tabletteclassique", + "ecv": 61.89999999999999, + "footprint": 59.699999999999996, + "footprintDetail": [ + { + "id": 4, + "value": 3.4 + }, + { + "id": 5, + "value": 56.3 + } + ], + "usage": { + "peryear": 0.6, + "defaultyears": 3 + }, + "endOfLife": 0.4 + }, + { + "name": "Télévision ", + "slug": "television", + "ecv": 472.40000000000003, + "footprint": 375.8, + "footprintDetail": [ + { + "id": 4, + "value": 3.2 + }, + { + "id": 5, + "value": 372.6 + } + ], + "usage": { + "peryear": 10.6, + "defaultyears": 8 + }, + "endOfLife": 11.8 + }, + { + "name": "Ordinateur portable", + "slug": "ordinateurportable", + "ecv": 193.00000000000003, + "footprint": 182.60000000000002, + "footprintDetail": [ + { + "id": 4, + "value": 12.3 + }, + { + "id": 5, + "value": 170.3 + } + ], + "usage": { + "peryear": 1.52, + "defaultyears": 5 + }, + "endOfLife": 2.8 + }, + { + "name": "Enceinte connectée", + "slug": "enceintebluetooth", + "ecv": 26.5, + "footprint": 19.8, + "footprintDetail": [ + { + "id": 4, + "value": 0.3 + }, + { + "id": 5, + "value": 19.5 + } + ], + "usage": { + "peryear": 1.2, + "defaultyears": 5 + }, + "endOfLife": 0.7 + }, + { + "name": "Téléphone basique", + "slug": "telephonebasique", + "ecv": 23.400000000000002, + "footprint": 23.3, + "footprintDetail": [ + { + "id": 5, + "value": 23.3 + } + ], + "usage": { + "peryear": 0, + "defaultyears": 2.5 + }, + "endOfLife": 0.1 + }, + { + "name": "Casque de réalité virtuelle", + "slug": "casquevr", + "ecv": 72.30000000000001, + "footprint": 70.80000000000001, + "footprintDetail": [ + { + "id": 4, + "value": 0.4 + }, + { + "id": 5, + "value": 70.4 + } + ], + "usage": { + "peryear": 0.04, + "defaultyears": 5 + }, + "endOfLife": 1.3 + }, + { + "name": "Alimentation externe pour ordinateur portable", + "slug": "alimentationordinateur", + "ecv": 4.1, + "footprint": 3.6, + "footprintDetail": [ + { + "id": 4, + "value": 0.1 + }, + { + "id": 5, + "value": 3.5 + } + ], + "endOfLife": 0.5 + }, + { + "name": "Alimentation externe pour smartphone ou tablette", + "slug": "alimentationsmartphone", + "ecv": 0.4, + "footprint": 0.3, + "footprintDetail": [ + { + "id": 4, + "value": 0 + }, + { + "id": 5, + "value": 0.3 + } + ], + "endOfLife": 0.1 + }, + { + "name": "Disque dur externe", + "slug": "disquedur", + "ecv": 11.9, + "footprint": 11.6, + "footprintDetail": [ + { + "id": 4, + "value": 0.1 + }, + { + "id": 5, + "value": 11.5 + } + ], + "endOfLife": 0.3 + }, + { + "name": "Clef usb", + "slug": "clefusb", + "ecv": 2.9, + "footprint": 2.9, + "footprintDetail": [ + { + "id": 4, + "value": 0 + }, + { + "id": 5, + "value": 2.9 + } + ] + }, + { + "name": "Box", + "slug": "box", + "ecv": 82, + "footprint": 61.4, + "footprintDetail": [ + { + "id": 4, + "value": 0.6 + }, + { + "id": 5, + "value": 60.8 + } + ], + "usage": { + "peryear": 3.8, + "defaultyears": 5 + }, + "endOfLife": 1.6 + } + ] +} \ No newline at end of file diff --git a/data/ademe/fr/10-usagenumerique.json b/data/ademe/fr/10-usagenumerique.json new file mode 100644 index 0000000..1998d64 --- /dev/null +++ b/data/ademe/fr/10-usagenumerique.json @@ -0,0 +1,172 @@ +{ + "data": [ + { + "name": "Email", + "slug": "email", + "ecv": 0.00246181262, + "footprint": 0.00246181262, + "footprintDetail": [ + { + "value": 0.001286218, + "id": 13 + }, + { + "value": 0.00008684837, + "id": 14 + }, + { + "value": 0.00003580927, + "id": 15 + }, + { + "value": 0.00093525547, + "id": 16 + }, + { + "value": 0.00011768151, + "id": 17 + } + ] + }, + { + "name": "Spam", + "slug": "spam", + "ecv": 0.00373863698, + "footprint": 0.00373863698, + "footprintDetail": [ + { + "value": 0.0026857, + "id": 15 + }, + { + "value": 0.00093525547, + "id": 16 + }, + { + "value": 0.00011768151, + "id": 17 + } + ] + }, + { + "name": "Stocker un go de donnée", + "slug": "stockagedonnee", + "ecv": 0.00023533417, + "footprint": 0.00023533417, + "footprintDetail": [ + { + "value": 0.00012454537, + "id": 16 + }, + { + "value": 0.0001107888, + "id": 17 + } + ] + }, + { + "name": "Recherche sur le web", + "slug": "rechercheweb", + "ecv": 0.051042269652307, + "footprint": 0.051042269652307, + "footprintDetail": [ + { + "value": 0.0007446526, + "id": 13 + }, + { + "value": 0.0502806333, + "id": 14 + }, + { + "value": 0.00000141881, + "id": 15 + }, + { + "value": 2.0842307e-8, + "id": 16 + }, + { + "value": 0.0000155441, + "id": 17 + } + ] + }, + { + "name": "Streaming vidéo", + "slug": "streamingvideo", + "ecv": 0.06401675291000002, + "footprint": 0.06401675291000002, + "footprintDetail": [ + { + "value": 0.0327361035, + "id": 13 + }, + { + "value": 0.002903607, + "id": 14 + }, + { + "value": 0.02780804, + "id": 15 + }, + { + "value": 0.000236636, + "id": 16 + }, + { + "value": 0.00033236641, + "id": 17 + } + ] + }, + { + "name": "Visioconférence", + "slug": "visioconference", + "ecv": 0.05706336546216, + "footprint": 0.05706336546216, + "footprintDetail": [ + { + "value": 0.04100456621, + "id": 13 + }, + { + "value": 0.002845, + "id": 14 + }, + { + "value": 0.0129770857, + "id": 15 + }, + { + "value": 0.000236636, + "id": 16 + }, + { + "value": 7.755216e-8, + "id": 17 + } + ] + }, + { + "name": "Go de donnée", + "slug": "telechargement", + "ecv": 0.00950468087, + "footprint": 0.00950468087, + "footprintDetail": [ + { + "value": 0.0092693467, + "id": 15 + }, + { + "value": 0.00012454537, + "id": 16 + }, + { + "value": 0.0001107888, + "id": 17 + } + ] + } + ] +} \ No newline at end of file diff --git a/data/ademe/fr/2-repas.json b/data/ademe/fr/2-repas.json new file mode 100644 index 0000000..47e5157 --- /dev/null +++ b/data/ademe/fr/2-repas.json @@ -0,0 +1,40 @@ +{ + "data": [ + { + "name": "Repas avec du boeuf", + "slug": "repasavecduboeuf", + "ecv": 7.26, + "footprint": 7.26 + }, + { + "name": "Repas végétarien", + "slug": "repasvegetarien", + "ecv": 0.51, + "footprint": 0.51 + }, + { + "name": "Repas végétalien", + "slug": "repasvegetalien", + "ecv": 0.39, + "footprint": 0.39 + }, + { + "name": "Repas avec du poisson blanc", + "slug": "repasavecdupoissonblanc", + "ecv": 1.98, + "footprint": 1.98 + }, + { + "name": "Repas avec du poisson gras", + "slug": "repasavecdupoissongras", + "ecv": 1.11, + "footprint": 1.11 + }, + { + "name": "Repas avec du poulet", + "slug": "repasavecdupoulet", + "ecv": 1.58, + "footprint": 1.58 + } + ] +} \ No newline at end of file diff --git a/data/ademe/fr/3-boisson.json b/data/ademe/fr/3-boisson.json new file mode 100644 index 0000000..995b902 --- /dev/null +++ b/data/ademe/fr/3-boisson.json @@ -0,0 +1,250 @@ +{ + "data": [ + { + "name": "Eau du robinet", + "slug": "eaudurobinet", + "ecv": 0.000132, + "footprint": 0.000132 + }, + { + "name": "Eau en bouteille", + "slug": "eauenbouteille", + "ecv": 0.26707461992000003, + "footprint": 0.26707461992000003, + "footprintDetail": [ + { + "id": 30, + "value": 0.006279361839311691 + }, + { + "id": 32, + "value": 0.16442163693709994 + }, + { + "id": 33, + "value": 0.06062765944766532 + }, + { + "id": 34, + "value": 0.033147419529957686 + }, + { + "id": 35, + "value": 0.002598542165965416 + } + ] + }, + { + "name": "Soda", + "slug": "soda", + "ecv": 0.5112250549, + "footprint": 0.5112250549, + "footprintDetail": [ + { + "id": 30, + "value": 0.10413263417225607 + }, + { + "id": 31, + "value": 0.01732426171634879 + }, + { + "id": 32, + "value": 0.22981063504556218 + }, + { + "id": 33, + "value": 0.09278663168184571 + }, + { + "id": 34, + "value": 0.052697348606487844 + }, + { + "id": 35, + "value": 0.014473543677499463 + } + ] + }, + { + "name": "Bière", + "slug": "biere", + "ecv": 1.1193685269, + "footprint": 1.1193685269, + "footprintDetail": [ + { + "id": 30, + "value": 0.07616837712773988 + }, + { + "id": 31, + "value": 0.28598336634616334 + }, + { + "id": 32, + "value": 0.4592427423084754 + }, + { + "id": 33, + "value": 0.19457960320640558 + }, + { + "id": 34, + "value": 0.08111568200617866 + }, + { + "id": 35, + "value": 0.022278755905036994 + } + ] + }, + { + "name": "Vin", + "slug": "vin", + "ecv": 1.1903542188999998, + "footprint": 1.1903542188999998, + "footprintDetail": [ + { + "id": 30, + "value": 0.44669260873710237 + }, + { + "id": 31, + "value": 0.22386911365243536 + }, + { + "id": 32, + "value": 0.38050084514641896 + }, + { + "id": 33, + "value": 0.09579033761903151 + }, + { + "id": 34, + "value": 0.028107858804597485 + }, + { + "id": 35, + "value": 0.015393454940414145 + } + ] + }, + { + "name": "Lait de vache", + "slug": "laitdevache", + "ecv": 1.1821407829999997, + "footprint": 1.1821407829999997, + "footprintDetail": [ + { + "id": 30, + "value": 0.799152957419679 + }, + { + "id": 31, + "value": 0.015443376410528314 + }, + { + "id": 32, + "value": 0.15286265337366634 + }, + { + "id": 33, + "value": 0.16535549763055887 + }, + { + "id": 34, + "value": 0.049326298165567405 + } + ] + }, + { + "name": "Boisson au soja", + "slug": "soja", + "ecv": 0.44564955900000003, + "footprint": 0.44564955900000003, + "footprintDetail": [ + { + "id": 30, + "value": 0.13061776408521542 + }, + { + "id": 31, + "value": 0.06453821103848224 + }, + { + "id": 32, + "value": 0.10069163573007084 + }, + { + "id": 33, + "value": 0.10676070898306896 + }, + { + "id": 34, + "value": 0.0430412391631626 + } + ] + }, + { + "name": "Thé", + "slug": "the", + "ecv": 0.0391613535, + "footprint": 0.0391613535, + "footprintDetail": [ + { + "id": 30, + "value": 0.02452355378915698 + }, + { + "id": 32, + "value": 0.0006555673797149556 + }, + { + "id": 33, + "value": 0.0006900499206393254 + }, + { + "id": 34, + "value": 0.00013555602943513944 + }, + { + "id": 35, + "value": 0.0131566263810536 + } + ] + }, + { + "name": "Café", + "slug": "cafe", + "ecv": 0.59422464326, + "footprint": 0.59422464326, + "footprintDetail": [ + { + "id": 30, + "value": 0.5360726648026617 + }, + { + "id": 31, + "value": 0.020654948604764477 + }, + { + "id": 32, + "value": 0.003083304397760912 + }, + { + "id": 33, + "value": 0.009655399325691972 + }, + { + "id": 34, + "value": 0.0013928452705040861 + }, + { + "id": 35, + "value": 0.023365480858616866 + } + ] + } + ] +} \ No newline at end of file diff --git a/data/ademe/fr/4-transport.json b/data/ademe/fr/4-transport.json new file mode 100644 index 0000000..8aab2bd --- /dev/null +++ b/data/ademe/fr/4-transport.json @@ -0,0 +1,327 @@ +{ + "data": [ + { + "name": "Avion court courrier", + "slug": "avion-courtcourrier", + "ecv": 0.25858, + "footprint": 0.25858, + "footprintDetail": [ + { + "id": 5, + "value": 0.00038 + }, + { + "id": 6, + "value": 0.1412 + }, + { + "id": 7, + "value": 0.117 + } + ] + }, + { + "name": "Avion moyen courrier", + "slug": "avion-moyencourrier", + "ecv": 0.18756, + "footprint": 0.18756, + "footprintDetail": [ + { + "id": 5, + "value": 0.00036 + }, + { + "id": 6, + "value": 0.1024 + }, + { + "id": 7, + "value": 0.0848 + } + ] + }, + { + "name": "Avion long courrier", + "slug": "avion-longcourrier", + "ecv": 0.15195999999999998, + "footprint": 0.15195999999999998, + "footprintDetail": [ + { + "id": 5, + "value": 0.00026 + }, + { + "id": 6, + "value": 0.08299999999999999 + }, + { + "id": 7, + "value": 0.0687 + } + ] + }, + { + "name": "TGV", + "slug": "tgv", + "ecv": 0.00293, + "footprint": 0.00293, + "footprintDetail": [ + { + "id": 5, + "value": 0.00063 + }, + { + "id": 6, + "value": 0.0023 + } + ] + }, + { + "name": "Intercités", + "slug": "intercites", + "ecv": 0.00898, + "footprint": 0.00898, + "footprintDetail": [ + { + "id": 5, + "value": 0.00318 + }, + { + "id": 6, + "value": 0.0058 + } + ] + }, + { + "name": "Voiture thermique", + "slug": "voiturethermique", + "ecv": 0.21760000000000002, + "footprint": 0.21760000000000002, + "footprintDetail": [ + { + "value": 0.192, + "id": 6 + }, + { + "value": 0.0256, + "id": 5 + } + ] + }, + { + "name": "Voiture électrique", + "slug": "voitureelectrique", + "ecv": 0.10339999999999999, + "footprint": 0.10339999999999999, + "footprintDetail": [ + { + "value": 0.0198, + "id": 6 + }, + { + "value": 0.0836, + "id": 5 + } + ] + }, + { + "name": "Autocar thermique", + "slug": "autocar", + "ecv": 0.029421306270000003, + "footprint": 0.029421306270000003, + "footprintDetail": [ + { + "value": 0.025, + "id": 6 + }, + { + "value": 0.00442130627, + "_comment": "// = (Valeur en kgCO₂e/kg de véhicule * Masse type) / Nombre de passagers / Durée de vie en km = (4 * 12000) / 30 / 361884", + "id": 5 + } + ] + }, + { + "name": "Vélo ou marche", + "slug": "velo", + "ecv": 0, + "footprint": 0 + }, + { + "name": "Vélo à assistance électrique", + "slug": "veloelectrique", + "ecv": 0.010950000000000001, + "footprint": 0.010950000000000001, + "footprintDetail": [ + { + "id": 5, + "value": 0.00872 + }, + { + "id": 6, + "value": 0.00223 + } + ] + }, + { + "name": "Bus thermique", + "slug": "busthermique", + "ecv": 0.11320000000000001, + "footprint": 0.11320000000000001, + "footprintDetail": [ + { + "id": 5, + "value": 0.0089 + }, + { + "id": 6, + "value": 0.1043 + } + ] + }, + { + "name": "Tramway", + "slug": "tramway", + "ecv": 0.00428, + "footprint": 0.00428, + "footprintDetail": [ + { + "id": 5, + "value": 0.00048 + }, + { + "id": 6, + "value": 0.0038 + } + ] + }, + { + "name": "Métro", + "slug": "metro", + "ecv": 0.0044399999999999995, + "footprint": 0.0044399999999999995, + "footprintDetail": [ + { + "id": 5, + "value": 0.00024 + }, + { + "id": 6, + "value": 0.0042 + } + ] + }, + { + "name": "Scooter ou moto légère thermique", + "slug": "scooter", + "ecv": 0.0763, + "footprint": 0.0763, + "footprintDetail": [ + { + "id": 5, + "value": 0.0159 + }, + { + "id": 6, + "value": 0.0604 + } + ] + }, + { + "name": "Moto thermique", + "slug": "moto", + "ecv": 0.1913, + "footprint": 0.1913, + "footprintDetail": [ + { + "id": 5, + "value": 0.0265 + }, + { + "id": 6, + "value": 0.1648 + } + ] + }, + { + "name": "RER ou Transilien", + "slug": "rer", + "ecv": 0.00978, + "footprint": 0.00978, + "footprintDetail": [ + { + "id": 5, + "value": 0.00318 + }, + { + "id": 6, + "value": 0.0066 + } + ] + }, + { + "name": "TER", + "slug": "ter", + "ecv": 0.02769, + "footprint": 0.02769, + "footprintDetail": [ + { + "id": 5, + "value": 0.00479 + }, + { + "id": 6, + "value": 0.0229 + } + ] + }, + { + "name": "Bus électrique", + "slug": "buselectrique", + "ecv": 0.0217, + "footprint": 0.0217, + "footprintDetail": [ + { + "id": 5, + "value": 0.0122 + }, + { + "id": 6, + "value": 0.0095 + } + ] + }, + { + "name": "Trottinette à assistance électrique", + "slug": "trottinette", + "ecv": 0.0249, + "footprint": 0.0249, + "footprintDetail": [ + { + "id": 5, + "value": 0.0229 + }, + { + "id": 6, + "value": 0.002 + } + ] + }, + { + "name": "Bus (GNV)", + "slug": "busgnv", + "ecv": 0.1217, + "footprint": 0.1217, + "footprintDetail": [ + { + "id": 5, + "value": 0.0089 + }, + { + "id": 6, + "value": 0.1128 + } + ] + } + ] +} \ No newline at end of file diff --git a/data/ademe/fr/5-habillement.json b/data/ademe/fr/5-habillement.json new file mode 100644 index 0000000..d779798 --- /dev/null +++ b/data/ademe/fr/5-habillement.json @@ -0,0 +1,555 @@ +{ + "data": [ + { + "name": "Jeans", + "slug": "jeans", + "ecv": 25.08872880618721, + "footprint": 23.2, + "footprintDetail": [ + { + "id": 1, + "value": 6.7 + }, + { + "id": 2, + "value": 0.9 + }, + { + "id": 3, + "value": 9.9 + }, + { + "id": 4, + "value": 5.699999999999999 + } + ], + "usage": { + "peryear": 0.250618604, + "defaultyears": 5 + }, + "endOfLife": 0.63563578618721 + }, + { + "name": "Polo", + "slug": "polo", + "ecv": 10.163529075648208, + "footprint": 8.2, + "footprintDetail": [ + { + "id": 1, + "value": 2.8 + }, + { + "id": 2, + "value": 0.4 + }, + { + "id": 3, + "value": 3.1 + }, + { + "id": 4, + "value": 1.9 + } + ], + "usage": { + "peryear": 0.283813258, + "defaultyears": 5 + }, + "endOfLife": 0.544462785648209 + }, + { + "name": "T-shirt en coton", + "slug": "tshirtencoton", + "ecv": 6.433790554863734, + "footprint": 5.199999999999999, + "footprintDetail": [ + { + "id": 1, + "value": 1.7 + }, + { + "id": 2, + "value": 0.2 + }, + { + "id": 3, + "value": 1.9 + }, + { + "id": 4, + "value": 1.4 + } + ], + "usage": { + "peryear": 0.196677291, + "defaultyears": 5 + }, + "endOfLife": 0.250404099863735 + }, + { + "name": "T-shirt en polyester", + "slug": "tshirtenpolyester", + "ecv": 6.211492878123854, + "footprint": 5.5, + "footprintDetail": [ + { + "id": 1, + "value": 2.3 + }, + { + "id": 2, + "value": 0.2 + }, + { + "id": 3, + "value": 1.7 + }, + { + "id": 4, + "value": 1.3 + } + ], + "usage": { + "peryear": 0.107837512, + "defaultyears": 5 + }, + "endOfLife": 0.172305318123854 + }, + { + "name": "Sweat en coton", + "slug": "sweatencoton", + "ecv": 32.49278107847502, + "footprint": 27.4, + "footprintDetail": [ + { + "id": 1, + "value": 9.8 + }, + { + "id": 2, + "value": 1.2 + }, + { + "id": 3, + "value": 11.8 + }, + { + "id": 4, + "value": 4.6 + } + ], + "usage": { + "peryear": 0.715343761, + "defaultyears": 5 + }, + "endOfLife": 1.51606227347502 + }, + { + "name": "Chemise en coton", + "slug": "chemiseencoton", + "ecv": 13.23466182713826, + "footprint": 11.2, + "footprintDetail": [ + { + "id": 1, + "value": 2.4 + }, + { + "id": 2, + "value": 0.3 + }, + { + "id": 3, + "value": 6.5 + }, + { + "id": 4, + "value": 2 + } + ], + "usage": { + "peryear": 0.314517279, + "defaultyears": 5 + }, + "endOfLife": 0.462075432138259 + }, + { + "name": "Chemise en viscose", + "slug": "chemiseenviscose", + "ecv": 12.139796272777625, + "footprint": 10.2, + "footprintDetail": [ + { + "id": 1, + "value": 1.7 + }, + { + "id": 2, + "value": 0.3 + }, + { + "id": 3, + "value": 6.2 + }, + { + "id": 4, + "value": 2 + } + ], + "usage": { + "peryear": 0.29513142, + "defaultyears": 5 + }, + "endOfLife": 0.464139172777627 + }, + { + "name": "Paire de chaussures en cuir", + "slug": "chaussuresencuir", + "ecv": 14.954494546022259, + "footprint": 13.399999999999999, + "footprintDetail": [ + { + "id": 1, + "value": 3.1 + }, + { + "id": 2, + "value": 0.4 + }, + { + "id": 3, + "value": 0.5 + }, + { + "id": 4, + "value": 9.399999999999999 + } + ], + "usage": { + "peryear": 0, + "defaultyears": 1 + }, + "endOfLife": 1.55449454602226 + }, + { + "name": "Paire de chaussures en tissu", + "slug": "chaussuresentissu", + "ecv": 18.519884267564898, + "footprint": 17.299999999999997, + "footprintDetail": [ + { + "id": 1, + "value": 4.8 + }, + { + "id": 2, + "value": 0.3 + }, + { + "id": 3, + "value": 4 + }, + { + "id": 4, + "value": 8.2 + } + ], + "usage": { + "peryear": 0, + "defaultyears": 1 + }, + "endOfLife": 1.2198842675649 + }, + { + "name": "Paire de chaussures de sport", + "slug": "chaussuresdesport", + "ecv": 20.125551283507104, + "footprint": 18.700000000000003, + "footprintDetail": [ + { + "id": 1, + "value": 6.1 + }, + { + "id": 2, + "value": 0.4 + }, + { + "id": 3, + "value": 2.9 + }, + { + "id": 4, + "value": 9.3 + } + ], + "usage": { + "peryear": 0, + "defaultyears": 1 + }, + "endOfLife": 1.4255512835071 + }, + { + "name": "Robe en coton", + "slug": "robeencoton", + "ecv": 56.90736582785554, + "footprint": 49.8, + "footprintDetail": [ + { + "id": 1, + "value": 14.1 + }, + { + "id": 2, + "value": 1.8 + }, + { + "id": 3, + "value": 25.7 + }, + { + "id": 4, + "value": 8.2 + } + ], + "usage": { + "peryear": 1.16264069, + "defaultyears": 5 + }, + "endOfLife": 1.29416237785554 + }, + { + "name": "Robe en polyester", + "slug": "robeenpolyester", + "ecv": 58.257205518739376, + "footprint": 51.900000000000006, + "footprintDetail": [ + { + "id": 1, + "value": 19.7 + }, + { + "id": 2, + "value": 1.6 + }, + { + "id": 3, + "value": 23.1 + }, + { + "id": 4, + "value": 7.5 + } + ], + "usage": { + "peryear": 0.964467698, + "defaultyears": 5 + }, + "endOfLife": 1.53486702873937 + }, + { + "name": "Robe en viscose", + "slug": "robeenviscose", + "ecv": 52.48152206560145, + "footprint": 44.9, + "footprintDetail": [ + { + "id": 1, + "value": 10 + }, + { + "id": 2, + "value": 1.7 + }, + { + "id": 3, + "value": 25.2 + }, + { + "id": 4, + "value": 8 + } + ], + "usage": { + "peryear": 1.03735098, + "defaultyears": 5 + }, + "endOfLife": 2.39476716560145 + }, + { + "name": "Pull en laine", + "slug": "pullenlaine", + "ecv": 56.69545613769189, + "footprint": 52.9, + "footprintDetail": [ + { + "id": 1, + "value": 39.3 + }, + { + "id": 2, + "value": 0.9 + }, + { + "id": 3, + "value": 8.6 + }, + { + "id": 4, + "value": 4.1 + } + ], + "usage": { + "peryear": 0.503327566, + "defaultyears": 5 + }, + "endOfLife": 1.27881830769189 + }, + { + "name": "Pull en acrylique", + "slug": "pullenacrylique", + "ecv": 28.96838102563544, + "footprint": 25.5, + "footprintDetail": [ + { + "id": 1, + "value": 13.9 + }, + { + "id": 2, + "value": 0.7 + }, + { + "id": 3, + "value": 7.3 + }, + { + "id": 4, + "value": 3.6 + } + ], + "usage": { + "peryear": 0.491530186, + "defaultyears": 5 + }, + "endOfLife": 1.01073009563544 + }, + { + "name": "Pull en coton recyclé", + "slug": "pullencotonrecycle", + "ecv": 13.19278107847502, + "footprint": 8.100000000000001, + "footprintDetail": [ + { + "id": 1, + "value": 0.9 + }, + { + "id": 2, + "value": 0.5 + }, + { + "id": 3, + "value": 5.5 + }, + { + "id": 4, + "value": 1.2000000000000002 + } + ], + "usage": { + "peryear": 0.715343761, + "defaultyears": 5 + }, + "endOfLife": 1.51606227347502 + }, + { + "name": "Manteau", + "slug": "manteau", + "ecv": 101.42051607966856, + "footprint": 85.8, + "footprintDetail": [ + { + "id": 1, + "value": 44.5 + }, + { + "id": 2, + "value": 2.1 + }, + { + "id": 3, + "value": 29.9 + }, + { + "id": 4, + "value": 9.3 + } + ], + "usage": { + "peryear": 2.64442279, + "defaultyears": 5 + }, + "endOfLife": 2.39840212966855 + }, + { + "name": "Veste imperméable", + "slug": "vesteimpermeable", + "ecv": 41.14715954637288, + "footprint": 38.699999999999996, + "footprintDetail": [ + { + "id": 1, + "value": 28.2 + }, + { + "id": 2, + "value": 0.3 + }, + { + "id": 3, + "value": 6.3 + }, + { + "id": 4, + "value": 3.9 + } + ], + "usage": { + "peryear": 0.360161997, + "defaultyears": 5 + }, + "endOfLife": 0.646349561372889 + }, + { + "name": "Veste simili-cuir", + "slug": "vestesimilicuir", + "ecv": 26.825820363170223, + "footprint": 24.000000000000004, + "footprintDetail": [ + { + "id": 1, + "value": 12.3 + }, + { + "id": 2, + "value": 0.4 + }, + { + "id": 3, + "value": 6.5 + }, + { + "id": 4, + "value": 4.8 + } + ], + "usage": { + "peryear": 0.388875125, + "defaultyears": 5 + }, + "endOfLife": 0.881444738170221 + } + ] +} \ No newline at end of file diff --git a/data/ademe/fr/6-electromenager.json b/data/ademe/fr/6-electromenager.json new file mode 100644 index 0000000..2de68cd --- /dev/null +++ b/data/ademe/fr/6-electromenager.json @@ -0,0 +1,289 @@ +{ + "data": [ + { + "name": "Bouilloire", + "slug": "bouilloire", + "ecv": 40.88403605825422, + "footprint": 9.907, + "footprintDetail": [ + { + "id": 1, + "value": 3.93 + }, + { + "id": 2, + "value": 0.237 + }, + { + "id": 3, + "value": 0.59 + }, + { + "id": 4, + "value": 5.1499999999999995 + } + ], + "usage": { + "peryear": 5.27273319, + "defaultyears": 6 + }, + "endOfLife": -0.659363081745786 + }, + { + "name": "Cafetière à dosettes", + "slug": "cafetieredosette", + "ecv": 251.0035526905852, + "footprint": 22.454, + "footprintDetail": [ + { + "id": 1, + "value": 8.46 + }, + { + "id": 2, + "value": 0.394 + }, + { + "id": 3, + "value": 1.28 + }, + { + "id": 4, + "value": 12.32 + } + ], + "usage": { + "peryear": 35.160078, + "defaultyears": 5 + }, + "endOfLife": 52.7491626905852 + }, + { + "name": "Cafetière filtre", + "slug": "cafetierefiltre", + "ecv": 197.69817433391722, + "footprint": 31.9, + "footprintDetail": [ + { + "id": 1, + "value": 16.7 + }, + { + "id": 2, + "value": 0.5 + }, + { + "id": 3, + "value": 1.5 + }, + { + "id": 4, + "value": 13.200000000000001 + } + ], + "usage": { + "peryear": 27.1831351, + "defaultyears": 5 + }, + "endOfLife": 29.8824988339172 + }, + { + "name": "Cafetière expresso", + "slug": "cafetiereexpresso", + "ecv": 211.7710842705374, + "footprint": 47.617000000000004, + "footprintDetail": [ + { + "id": 1, + "value": 27.1 + }, + { + "id": 2, + "value": 0.937 + }, + { + "id": 3, + "value": 3.21 + }, + { + "id": 4, + "value": 16.37 + } + ], + "usage": { + "peryear": 28.0487772, + "defaultyears": 5 + }, + "endOfLife": 23.9101982705374 + }, + { + "name": "Four électrique", + "slug": "fourelectrique", + "ecv": 263.06469996, + "footprint": 217.58999999999997, + "footprintDetail": [ + { + "id": 1, + "value": 133 + }, + { + "id": 2, + "value": 8.19 + }, + { + "id": 3, + "value": 33.6 + }, + { + "id": 4, + "value": 42.8 + } + ], + "usage": { + "peryear": 6.29728333, + "defaultyears": 12 + }, + "endOfLife": -30.0927 + }, + { + "name": "Lave-vaisselle", + "slug": "lavevaisselle", + "ecv": 467.9982177292116, + "footprint": 271.19, + "footprintDetail": [ + { + "id": 1, + "value": 155 + }, + { + "id": 2, + "value": 9.09 + }, + { + "id": 3, + "value": 40.1 + }, + { + "id": 4, + "value": 67 + } + ], + "usage": { + "peryear": 21.943837, + "defaultyears": 10 + }, + "endOfLife": -22.6301522707884 + }, + { + "name": "Lave-linge", + "slug": "lavelinge", + "ecv": 510.2572583409827, + "footprint": 341.09999999999997, + "footprintDetail": [ + { + "id": 1, + "value": 191 + }, + { + "id": 2, + "value": 12.2 + }, + { + "id": 3, + "value": 47.6 + }, + { + "id": 4, + "value": 90.3 + } + ], + "usage": { + "peryear": 21.6932702, + "defaultyears": 10 + }, + "endOfLife": -47.7754436590173 + }, + { + "name": "Réfrigérateur", + "slug": "refrigirateur", + "ecv": 325.46071642401705, + "footprint": 257.3, + "footprintDetail": [ + { + "id": 1, + "value": 133 + }, + { + "id": 2, + "value": 13.5 + }, + { + "id": 3, + "value": 28 + }, + { + "id": 4, + "value": 82.8 + } + ], + "usage": { + "peryear": 8.83240334, + "defaultyears": 10 + }, + "endOfLife": -20.163316975983 + }, + { + "name": "Aspirateur", + "slug": "aspirateur", + "ecv": 47.31, + "footprint": 47.31, + "footprintDetail": [ + { + "id": 1, + "value": 20.2 + }, + { + "id": 2, + "value": 2.43 + }, + { + "id": 3, + "value": 7.23 + }, + { + "id": 4, + "value": 17.45 + } + ] + }, + { + "name": "Climatiseur", + "slug": "climatiseur", + "ecv": 413.8812884443126, + "footprint": 238.89999999999998, + "footprintDetail": [ + { + "id": 1, + "value": 170 + }, + { + "id": 2, + "value": 5.2 + }, + { + "id": 3, + "value": 18.7 + }, + { + "id": 4, + "value": 45 + } + ], + "usage": { + "peryear": 18.2596505, + "defaultyears": 6 + }, + "endOfLife": 65.4233854443126 + } + ] +} \ No newline at end of file diff --git a/data/ademe/fr/7-mobilier.json b/data/ademe/fr/7-mobilier.json new file mode 100644 index 0000000..938e77c --- /dev/null +++ b/data/ademe/fr/7-mobilier.json @@ -0,0 +1,148 @@ +{ + "data": [ + { + "name": "Canapé convertible", + "slug": "canapeconvertible", + "ecv": 197.5, + "footprint": 197.5, + "footprintDetail": [ + { + "id": 1, + "value": 119 + }, + { + "id": 2, + "value": 16.3 + }, + { + "id": 3, + "value": 11.2 + }, + { + "id": 4, + "value": 51 + } + ] + }, + { + "name": "Chaise en bois", + "slug": "chaiseenbois", + "ecv": 18.63, + "footprint": 18.63, + "footprintDetail": [ + { + "id": 1, + "value": 4.92 + }, + { + "id": 2, + "value": 1.78 + }, + { + "id": 3, + "value": 0.05 + }, + { + "id": 4, + "value": 11.879999999999999 + } + ] + }, + { + "name": "Table en bois", + "slug": "tableenbois", + "ecv": 80.22, + "footprint": 80.22, + "footprintDetail": [ + { + "id": 1, + "value": 23.6 + }, + { + "id": 2, + "value": 9.39 + }, + { + "id": 3, + "value": 0.13 + }, + { + "id": 4, + "value": 47.1 + } + ] + }, + { + "name": "Canapé en textile", + "slug": "canapetextile", + "ecv": 179.1, + "footprint": 179.1, + "footprintDetail": [ + { + "id": 1, + "value": 99.5 + }, + { + "id": 2, + "value": 16.7 + }, + { + "id": 3, + "value": 13.5 + }, + { + "id": 4, + "value": 49.4 + } + ] + }, + { + "name": "Armoire", + "slug": "armoire", + "ecv": 906.88, + "footprint": 906.88, + "footprintDetail": [ + { + "id": 1, + "value": 118 + }, + { + "id": 2, + "value": 70.7 + }, + { + "id": 3, + "value": 2.18 + }, + { + "id": 4, + "value": 716 + } + ] + }, + { + "name": "Lit", + "slug": "lit", + "ecv": 443.81000000000006, + "footprint": 443.81000000000006, + "footprintDetail": [ + { + "id": 1, + "value": 303.20000000000005 + }, + { + "id": 2, + "value": 38.28 + }, + { + "id": 3, + "value": 38.43 + }, + { + "id": 4, + "value": 63.900000000000006 + } + ] + } + ] +} \ No newline at end of file diff --git a/data/ademe/fr/8-chauffage.json b/data/ademe/fr/8-chauffage.json new file mode 100644 index 0000000..1f01f13 --- /dev/null +++ b/data/ademe/fr/8-chauffage.json @@ -0,0 +1,39 @@ +{ + "data": [ + { + "name": "Chauffage au gaz", + "slug": "chauffagegaz", + "ecv": 2340 + }, + { + "name": "Chauffage au fioul", + "slug": "chauffagefioul", + "ecv": 3430.2000000000003 + }, + { + "name": "Chauffage électrique", + "slug": "chauffageelectrique", + "ecv": 711 + }, + { + "name": "Chauffage avec une pompe à chaleur", + "slug": "pompeachaleur", + "ecv": 237 + }, + { + "name": "Chauffage avec un poêle à granulés", + "slug": "poeleagranule", + "ecv": 338.4 + }, + { + "name": "Chauffage avec un poêle à bois", + "slug": "poeleabois", + "ecv": 552 + }, + { + "name": "Chauffage via un réseau de chaleur", + "slug": "reseaudechaleur", + "ecv": 1120.2 + } + ] +} \ No newline at end of file diff --git a/data/ademe/fr/9-fruitsetlegumes.json b/data/ademe/fr/9-fruitsetlegumes.json new file mode 100644 index 0000000..a310631 --- /dev/null +++ b/data/ademe/fr/9-fruitsetlegumes.json @@ -0,0 +1,1820 @@ +{ + "data": [ + { + "name": "Fraise", + "slug": "fraise", + "ecv": 0.47706577790000004, + "footprint": 0.47706577790000004, + "footprintDetail": [ + { + "id": 30, + "value": 0.40146402806811304 + }, + { + "id": 33, + "value": 0.07100668042349577 + }, + { + "id": 34, + "value": 0.003109841816120535 + }, + { + "id": 35, + "value": 0.0014852275922706364 + } + ] + }, + { + "name": "Pomme", + "slug": "pomme", + "ecv": 0.396515083, + "footprint": 0.396515083, + "footprintDetail": [ + { + "id": 30, + "value": 0.2547701865767705 + }, + { + "id": 33, + "value": 0.11500545989914154 + }, + { + "id": 34, + "value": 0.018931904779608256 + }, + { + "id": 35, + "value": 0.007807531744479746 + } + ] + }, + { + "name": "Orange", + "slug": "orange", + "ecv": 0.633964319, + "footprint": 0.633964319, + "footprintDetail": [ + { + "id": 30, + "value": 0.4846464505613365 + }, + { + "id": 33, + "value": 0.12374803403082975 + }, + { + "id": 34, + "value": 0.011901309567525144 + }, + { + "id": 35, + "value": 0.013668524840308626 + } + ] + }, + { + "name": "Citron", + "slug": "citron", + "ecv": 0.711263074, + "footprint": 0.711263074, + "footprintDetail": [ + { + "id": 30, + "value": 0.5512462253829189 + }, + { + "id": 33, + "value": 0.12390561297084524 + }, + { + "id": 34, + "value": 0.013388383947377347 + }, + { + "id": 35, + "value": 0.022722851698858557 + } + ] + }, + { + "name": "Ail", + "slug": "ail", + "ecv": 0.358042894, + "footprint": 0.358042894, + "footprintDetail": [ + { + "id": 30, + "value": 0.2318884350768168 + }, + { + "id": 33, + "value": 0.07749464346752033 + }, + { + "id": 34, + "value": 0.031008194059212856 + }, + { + "id": 35, + "value": 0.017651621396450073 + } + ] + }, + { + "name": "Artichaut", + "slug": "artichaut", + "ecv": 3.876929068, + "footprint": 3.876929068, + "footprintDetail": [ + { + "id": 30, + "value": 2.1967691892319436 + }, + { + "id": 33, + "value": 0.9352055719787857 + }, + { + "id": 34, + "value": 0.1862461113598876 + }, + { + "id": 35, + "value": 0.5587081954293829 + } + ] + }, + { + "name": "Asperge", + "slug": "asperge", + "ecv": 1.559309081, + "footprint": 1.559309081, + "footprintDetail": [ + { + "id": 30, + "value": 1.327629397818207 + }, + { + "id": 33, + "value": 0.157476163593698 + }, + { + "id": 34, + "value": 0.029714931935578007 + }, + { + "id": 35, + "value": 0.04448858765251692 + } + ] + }, + { + "name": "Betterave", + "slug": "betterave", + "ecv": 0.3643210989999999, + "footprint": 0.3643210989999999, + "footprintDetail": [ + { + "id": 30, + "value": 0.21870781928982266 + }, + { + "id": 33, + "value": 0.12288446318909398 + }, + { + "id": 34, + "value": 0.014386392186676835 + }, + { + "id": 35, + "value": 0.008342424334406453 + } + ] + }, + { + "name": "Blette", + "slug": "blette", + "ecv": 0.542753575, + "footprint": 0.542753575, + "footprintDetail": [ + { + "id": 30, + "value": 0.1985556955183914 + }, + { + "id": 33, + "value": 0.19964778729974925 + }, + { + "id": 34, + "value": 0.11473182070388492 + }, + { + "id": 35, + "value": 0.029818271477974494 + } + ] + }, + { + "name": "Carotte", + "slug": "carotte", + "ecv": 0.3643210989999999, + "footprint": 0.3643210989999999, + "footprintDetail": [ + { + "id": 30, + "value": 0.21870781928982266 + }, + { + "id": 33, + "value": 0.12288446318909398 + }, + { + "id": 34, + "value": 0.014386392186676835 + }, + { + "id": 35, + "value": 0.008342424334406453 + } + ] + }, + { + "name": "Céleri", + "slug": "celeri", + "ecv": 0.6770180851000002, + "footprint": 0.6770180851000002, + "footprintDetail": [ + { + "id": 30, + "value": 0.48095696660704207 + }, + { + "id": 33, + "value": 0.17206273471044398 + }, + { + "id": 34, + "value": 0.020143815778269795 + }, + { + "id": 35, + "value": 0.003854568004244177 + } + ] + }, + { + "name": "Champignon (morille crue)", + "slug": "champignonmorille", + "ecv": 0.4937143989999999, + "footprint": 0.4937143989999999, + "footprintDetail": [ + { + "id": 30, + "value": 0.2744686179990303 + }, + { + "id": 33, + "value": 0.12717084462453185 + }, + { + "id": 34, + "value": 0.07308141373145949 + }, + { + "id": 35, + "value": 0.018993522644978326 + } + ] + }, + { + "name": "Chou", + "slug": "chou", + "ecv": 0.862097522, + "footprint": 0.862097522, + "footprintDetail": [ + { + "id": 30, + "value": 0.5131364995464165 + }, + { + "id": 33, + "value": 0.21845176415253645 + }, + { + "id": 34, + "value": 0.04350465054337229 + }, + { + "id": 35, + "value": 0.08700460775767485 + } + ] + }, + { + "name": "Chou de Bruxelles", + "slug": "choudebruxelles", + "ecv": 0.5758186729, + "footprint": 0.5758186729, + "footprintDetail": [ + { + "id": 30, + "value": 0.3788543057978092 + }, + { + "id": 33, + "value": 0.1612853340230889 + }, + { + "id": 34, + "value": 0.0321199608362954 + }, + { + "id": 35, + "value": 0.0035590722428065053 + } + ] + }, + { + "name": "Chou-fleur", + "slug": "choufleur", + "ecv": 0.735512212, + "footprint": 0.735512212, + "footprintDetail": [ + { + "id": 30, + "value": 0.45524941290667564 + }, + { + "id": 33, + "value": 0.19380815332134424 + }, + { + "id": 34, + "value": 0.057508549205910114 + }, + { + "id": 35, + "value": 0.028946096566070008 + } + ] + }, + { + "name": "Concombre", + "slug": "concombre", + "ecv": 0.473201203, + "footprint": 0.473201203, + "footprintDetail": [ + { + "id": 30, + "value": 0.2829827597867092 + }, + { + "id": 33, + "value": 0.15433472453021685 + }, + { + "id": 34, + "value": 0.025406187771915913 + }, + { + "id": 35, + "value": 0.010477530911158064 + } + ] + }, + { + "name": "Courge", + "slug": "courge", + "ecv": 0.618848881, + "footprint": 0.618848881, + "footprintDetail": [ + { + "id": 30, + "value": 0.3948815373068884 + }, + { + "id": 33, + "value": 0.17027309100485263 + }, + { + "id": 34, + "value": 0.030683139472821738 + }, + { + "id": 35, + "value": 0.023011113215437206 + } + ] + }, + { + "name": "Courgette", + "slug": "courgette", + "ecv": 0.48351979, + "footprint": 0.48351979, + "footprintDetail": [ + { + "id": 30, + "value": 0.3249566112753587 + }, + { + "id": 33, + "value": 0.1267880175884188 + }, + { + "id": 34, + "value": 0.023167730906306763 + }, + { + "id": 35, + "value": 0.008607430229915764 + } + ] + }, + { + "name": "Cresson", + "slug": "cresson", + "ecv": 0.9410662189999999, + "footprint": 0.9410662189999999, + "footprintDetail": [ + { + "id": 30, + "value": 0.5250268671805667 + }, + { + "id": 33, + "value": 0.22207954480171793 + }, + { + "id": 34, + "value": 0.1276227005592863 + }, + { + "id": 35, + "value": 0.06633710645842904 + } + ] + }, + { + "name": "Échalote", + "slug": "echalote", + "ecv": 0.3648632602000001, + "footprint": 0.3648632602000001, + "footprintDetail": [ + { + "id": 30, + "value": 0.23531079919928174 + }, + { + "id": 33, + "value": 0.10902766714087427 + }, + { + "id": 34, + "value": 0.013123084645555711 + }, + { + "id": 35, + "value": 0.007401709214288365 + } + ] + }, + { + "name": "Endive", + "slug": "endive", + "ecv": 0.9380277949999998, + "footprint": 0.9380277949999998, + "footprintDetail": [ + { + "id": 30, + "value": 0.6518647722304847 + }, + { + "id": 33, + "value": 0.16598537558972426 + }, + { + "id": 34, + "value": 0.09538700432995566 + }, + { + "id": 35, + "value": 0.024790642849835256 + } + ] + }, + { + "name": "Épinard", + "slug": "epinard", + "ecv": 0.3912991521, + "footprint": 0.3912991521, + "footprintDetail": [ + { + "id": 30, + "value": 0.1501613878291217 + }, + { + "id": 33, + "value": 0.15098729419749254 + }, + { + "id": 34, + "value": 0.08676803636837423 + }, + { + "id": 35, + "value": 0.003382433705011497 + } + ] + }, + { + "name": "Mangue", + "slug": "mangue", + "ecv": 10.641545366999999, + "footprint": 10.641545366999999, + "footprintDetail": [ + { + "id": 30, + "value": 1.8072992522991684 + }, + { + "id": 33, + "value": 8.755759543156284 + }, + { + "id": 34, + "value": 0.04115101307427565 + }, + { + "id": 35, + "value": 0.03733555847027189 + } + ] + }, + { + "name": "Fenouil", + "slug": "fenouil", + "ecv": 0.962528871, + "footprint": 0.962528871, + "footprintDetail": [ + { + "id": 30, + "value": 0.6167064670815313 + }, + { + "id": 33, + "value": 0.2823070232147077 + }, + { + "id": 34, + "value": 0.036295342373374985 + }, + { + "id": 35, + "value": 0.027220038330385988 + } + ] + }, + { + "name": "Haricot vert (cru)", + "slug": "haricotvert", + "ecv": 0.41306197199999994, + "footprint": 0.41306197199999994, + "footprintDetail": [ + { + "id": 30, + "value": 0.31085338573632987 + }, + { + "id": 33, + "value": 0.07009748452830465 + }, + { + "id": 34, + "value": 0.01823640246843202 + }, + { + "id": 35, + "value": 0.01387469926693342 + } + ] + }, + { + "name": "Laitue", + "slug": "laitue", + "ecv": 0.9410662189999999, + "footprint": 0.9410662189999999, + "footprintDetail": [ + { + "id": 30, + "value": 0.5250268671805667 + }, + { + "id": 33, + "value": 0.22207954480171793 + }, + { + "id": 34, + "value": 0.1276227005592863 + }, + { + "id": 35, + "value": 0.06633710645842904 + } + ] + }, + { + "name": "Mâche", + "slug": "mache", + "ecv": 0.9410662189999999, + "footprint": 0.9410662189999999, + "footprintDetail": [ + { + "id": 30, + "value": 0.5250268671805667 + }, + { + "id": 33, + "value": 0.22207954480171793 + }, + { + "id": 34, + "value": 0.1276227005592863 + }, + { + "id": 35, + "value": 0.06633710645842904 + } + ] + }, + { + "name": "Navet", + "slug": "navet", + "ecv": 0.364321099, + "footprint": 0.364321099, + "footprintDetail": [ + { + "id": 30, + "value": 0.21870781928982266 + }, + { + "id": 33, + "value": 0.12288446318909398 + }, + { + "id": 34, + "value": 0.014386392186676839 + }, + { + "id": 35, + "value": 0.008342424334406453 + } + ] + }, + { + "name": "Maïs", + "slug": "mais", + "ecv": 0.810485801, + "footprint": 0.810485801, + "footprintDetail": [ + { + "id": 30, + "value": 0.5590874300039954 + }, + { + "id": 32, + "value": 0.14492032711285208 + }, + { + "id": 33, + "value": 0.06918517048486783 + }, + { + "id": 34, + "value": 0.03729287339828466 + } + ] + }, + { + "name": "Oignon", + "slug": "oignon", + "ecv": 0.38953612800000015, + "footprint": 0.38953612800000015, + "footprintDetail": [ + { + "id": 30, + "value": 0.2488429591112444 + }, + { + "id": 33, + "value": 0.11861897696298362 + }, + { + "id": 34, + "value": 0.014250534193702704 + }, + { + "id": 35, + "value": 0.007823657732069384 + } + ] + }, + { + "name": "Panais", + "slug": "panais", + "ecv": 0.45782909000000005, + "footprint": 0.45782909000000005, + "footprintDetail": [ + { + "id": 30, + "value": 0.267491959110919 + }, + { + "id": 33, + "value": 0.1502946069120538 + }, + { + "id": 34, + "value": 0.017595366153782457 + }, + { + "id": 35, + "value": 0.022447157823244808 + } + ] + }, + { + "name": "Petit pois", + "slug": "petitpois", + "ecv": 0.6651291770000001, + "footprint": 0.6651291770000001, + "footprintDetail": [ + { + "id": 30, + "value": 0.5180955567960798 + }, + { + "id": 33, + "value": 0.11384770088796828 + }, + { + "id": 34, + "value": 0.03318591931595206 + } + ] + }, + { + "name": "Poireau", + "slug": "poireau", + "ecv": 0.768865685, + "footprint": 0.768865685, + "footprintDetail": [ + { + "id": 30, + "value": 0.5518885583147793 + }, + { + "id": 33, + "value": 0.17044406082494665 + }, + { + "id": 34, + "value": 0.02107649884179719 + }, + { + "id": 35, + "value": 0.025456567018476744 + } + ] + }, + { + "name": "Poivron", + "slug": "poivron", + "ecv": 1.1836197739999998, + "footprint": 1.1836197739999998, + "footprintDetail": [ + { + "id": 30, + "value": 0.8018993677679974 + }, + { + "id": 33, + "value": 0.29034903892726466 + }, + { + "id": 34, + "value": 0.05635866042364036 + }, + { + "id": 35, + "value": 0.03501270688109747 + } + ] + }, + { + "name": "Potiron", + "slug": "potiron", + "ecv": 0.618848881, + "footprint": 0.618848881, + "footprintDetail": [ + { + "id": 30, + "value": 0.3948815373068884 + }, + { + "id": 33, + "value": 0.17027309100485263 + }, + { + "id": 34, + "value": 0.030683139472821738 + }, + { + "id": 35, + "value": 0.023011113215437206 + } + ] + }, + { + "name": "Radis", + "slug": "radis", + "ecv": 0.6018473451, + "footprint": 0.6018473451, + "footprintDetail": [ + { + "id": 30, + "value": 0.3881547265906991 + }, + { + "id": 33, + "value": 0.18753609390158912 + }, + { + "id": 34, + "value": 0.02195532073628385 + }, + { + "id": 35, + "value": 0.004201203871427947 + } + ] + }, + { + "name": "Salsifis", + "slug": "salsifis", + "ecv": 0.45782908999999994, + "footprint": 0.45782908999999994, + "footprintDetail": [ + { + "id": 30, + "value": 0.26749195911091894 + }, + { + "id": 33, + "value": 0.1502946069120538 + }, + { + "id": 34, + "value": 0.01759536615378246 + }, + { + "id": 35, + "value": 0.02244715782324481 + } + ] + }, + { + "name": "Topinambour", + "slug": "topinambour", + "ecv": 0.5048719700000001, + "footprint": 0.5048719700000001, + "footprintDetail": [ + { + "id": 30, + "value": 0.37484185214687293 + }, + { + "id": 33, + "value": 0.100514588828102 + }, + { + "id": 34, + "value": 0.018682097933140285 + }, + { + "id": 35, + "value": 0.010833431091884844 + } + ] + }, + { + "name": "Cassis", + "slug": "cassis", + "ecv": 1.7963874969999998, + "footprint": 1.7963874969999998, + "footprintDetail": [ + { + "id": 30, + "value": 1.5808848689288106 + }, + { + "id": 33, + "value": 0.16400856157383012 + }, + { + "id": 34, + "value": 0.026998669479118702 + }, + { + "id": 35, + "value": 0.024495397018240356 + } + ] + }, + { + "name": "Châtaigne", + "slug": "chataigne", + "ecv": 1.880205125, + "footprint": 1.880205125, + "footprintDetail": [ + { + "id": 30, + "value": 1.8023380399713715 + }, + { + "id": 33, + "value": 0.04549092139611165 + }, + { + "id": 34, + "value": 0.02701232284999322 + }, + { + "id": 35, + "value": 0.005363840782523507 + } + ] + }, + { + "name": "Clémentine", + "slug": "clementine", + "ecv": 1.2214244939999999, + "footprint": 1.2214244939999999, + "footprintDetail": [ + { + "id": 31, + "value": 1.0833147091099529 + }, + { + "id": 33, + "value": 0.10209270185223396 + }, + { + "id": 34, + "value": 0.011031431598929678 + }, + { + "id": 35, + "value": 0.024985651438883212 + } + ] + }, + { + "name": "Pamplemousse", + "slug": "pamplemousse", + "ecv": 0.8728596140000001, + "footprint": 0.8728596140000001, + "footprintDetail": [ + { + "id": 30, + "value": 0.726023664597355 + }, + { + "id": 33, + "value": 0.12219019567494512 + }, + { + "id": 34, + "value": 0.009137511017664302 + }, + { + "id": 35, + "value": 0.015508242710035574 + } + ] + }, + { + "name": "Coing", + "slug": "coing", + "ecv": 0.5410901117000001, + "footprint": 0.5410901117000001, + "footprintDetail": [ + { + "id": 30, + "value": 0.32696964988622773 + }, + { + "id": 33, + "value": 0.18515294196122192 + }, + { + "id": 34, + "value": 0.006923273026071387 + }, + { + "id": 35, + "value": 0.022044246826478944 + } + ] + }, + { + "name": "Figue", + "slug": "figue", + "ecv": 0.6135498970000001, + "footprint": 0.6135498970000001, + "footprintDetail": [ + { + "id": 30, + "value": 0.5264847662963503 + }, + { + "id": 33, + "value": 0.06806288156514599 + }, + { + "id": 34, + "value": 0.009963001152310288 + }, + { + "id": 35, + "value": 0.009039247986193464 + } + ] + }, + { + "name": "Groseille", + "slug": "groseille", + "ecv": 1.7875465516999998, + "footprint": 1.7875465516999998, + "footprintDetail": [ + { + "id": 30, + "value": 1.5901941672341455 + }, + { + "id": 33, + "value": 0.16497435272935823 + }, + { + "id": 34, + "value": 0.007738389579073022 + }, + { + "id": 35, + "value": 0.024639642157423022 + } + ] + }, + { + "name": "Kiwi", + "slug": "kiwi", + "ecv": 0.9768151836999999, + "footprint": 0.9768151836999999, + "footprintDetail": [ + { + "id": 30, + "value": 0.7254928911153846 + }, + { + "id": 31, + "value": 0.018875390793624165 + }, + { + "id": 33, + "value": 0.21183823246585762 + }, + { + "id": 34, + "value": 0.0021630305838026376 + }, + { + "id": 35, + "value": 0.018445638741330768 + } + ] + }, + { + "name": "Mandarine", + "slug": "mandarine", + "ecv": 0.42273830129999995, + "footprint": 0.42273830129999995, + "footprintDetail": [ + { + "id": 30, + "value": 0.33080235322545093 + }, + { + "id": 33, + "value": 0.07471912513665556 + }, + { + "id": 34, + "value": 0.008073632430015852 + }, + { + "id": 35, + "value": 0.0091431905078776 + } + ] + }, + { + "name": "Melon", + "slug": "melon", + "ecv": 0.931394984, + "footprint": 0.931394984, + "footprintDetail": [ + { + "id": 30, + "value": 0.6671106652173151 + }, + { + "id": 33, + "value": 0.1848975025015616 + }, + { + "id": 34, + "value": 0.026953165351735784 + }, + { + "id": 35, + "value": 0.05243365092938753 + } + ] + }, + { + "name": "Mûre", + "slug": "mure", + "ecv": 1.2060856469999999, + "footprint": 1.2060856469999999, + "footprintDetail": [ + { + "id": 30, + "value": 1.105821313370722 + }, + { + "id": 33, + "value": 0.07630630439580667 + }, + { + "id": 34, + "value": 0.012561348455141478 + }, + { + "id": 35, + "value": 0.011396680778329766 + } + ] + }, + { + "name": "Nectarine", + "slug": "nectarine", + "ecv": 0.6373697500000002, + "footprint": 0.6373697500000002, + "footprintDetail": [ + { + "id": 30, + "value": 0.5516745396456768 + }, + { + "id": 33, + "value": 0.06577248673377466 + }, + { + "id": 34, + "value": 0.010099314647502546 + }, + { + "id": 35, + "value": 0.009823408973046163 + } + ] + }, + { + "name": "Myrtille", + "slug": "myrtille", + "ecv": 0.8815012491, + "footprint": 0.8815012491, + "footprintDetail": [ + { + "id": 30, + "value": 0.81634159152278 + }, + { + "id": 33, + "value": 0.05489349981435049 + }, + { + "id": 34, + "value": 0.009036427639252406 + }, + { + "id": 35, + "value": 0.0012297301236171496 + } + ] + }, + { + "name": "Noisette", + "slug": "noisette", + "ecv": 4.652965420999999, + "footprint": 4.652965420999999, + "footprintDetail": [ + { + "id": 30, + "value": 4.4273156212923395 + }, + { + "id": 31, + "value": 0.06631423045897496 + }, + { + "id": 33, + "value": 0.1243784389891823 + }, + { + "id": 34, + "value": 0.034957130259502846 + } + ] + }, + { + "name": "Noix", + "slug": "noix", + "ecv": 4.164838912, + "footprint": 4.164838912, + "footprintDetail": [ + { + "id": 30, + "value": 3.7682299167498408 + }, + { + "id": 32, + "value": 0.19227068360559735 + }, + { + "id": 33, + "value": 0.09179029158898216 + }, + { + "id": 34, + "value": 0.05647588702076113 + }, + { + "id": 35, + "value": 0.05607213303481815 + } + ] + }, + { + "name": "Prune", + "slug": "prune", + "ecv": 0.9630279916999999, + "footprint": 0.9630279916999999, + "footprintDetail": [ + { + "id": 30, + "value": 0.9153825473257319 + }, + { + "id": 33, + "value": 0.03982863631175173 + }, + { + "id": 34, + "value": 0.0018682267824330797 + }, + { + "id": 35, + "value": 0.0059485812800832245 + } + ] + }, + { + "name": "Reine claude", + "slug": "reineclaude", + "ecv": 0.971868937, + "footprint": 0.971868937, + "footprintDetail": [ + { + "id": 30, + "value": 0.9193106557979828 + }, + { + "id": 33, + "value": 0.039999549777593374 + }, + { + "id": 34, + "value": 0.006584623469626956 + }, + { + "id": 35, + "value": 0.00597410795479691 + } + ] + }, + { + "name": "Rhubarbe", + "slug": "rhubarbe", + "ecv": 0.7167486917, + "footprint": 0.7167486917, + "footprintDetail": [ + { + "id": 30, + "value": 0.4748974093662752 + }, + { + "id": 33, + "value": 0.20217267132475333 + }, + { + "id": 34, + "value": 0.009483237043029268 + }, + { + "id": 35, + "value": 0.030195373965942154 + } + ] + }, + { + "name": "Pêche", + "slug": "peche", + "ecv": 0.5957366917, + "footprint": 0.5957366917, + "footprintDetail": [ + { + "id": 30, + "value": 0.5203124812236186 + }, + { + "id": 33, + "value": 0.06366413517604866 + }, + { + "id": 34, + "value": 0.002810672523080817 + }, + { + "id": 35, + "value": 0.008949402777251819 + } + ] + }, + { + "name": "Cerise", + "slug": "cerise", + "ecv": 1.3353255069999996, + "footprint": 1.3353255069999996, + "footprintDetail": [ + { + "id": 30, + "value": 1.193131040702151 + }, + { + "id": 32, + "value": 0.07171672834715612 + }, + { + "id": 33, + "value": 0.05417833774270202 + }, + { + "id": 34, + "value": 0.008545880115061162 + }, + { + "id": 35, + "value": 0.007753520092929479 + } + ] + }, + { + "name": "Abricot", + "slug": "abricot", + "ecv": 0.8806383170000001, + "footprint": 0.8806383170000001, + "footprintDetail": [ + { + "id": 30, + "value": 0.42247817556364853 + }, + { + "id": 32, + "value": 0.23107612594473056 + }, + { + "id": 33, + "value": 0.17456625091857256 + }, + { + "id": 34, + "value": 0.027535400948818504 + }, + { + "id": 35, + "value": 0.024982363624229915 + } + ] + }, + { + "name": "Framboise", + "slug": "framboise", + "ecv": 1.4750375679, + "footprint": 1.4750375679, + "footprintDetail": [ + { + "id": 30, + "value": 1.2954829217552046 + }, + { + "id": 33, + "value": 0.17386182153933968 + }, + { + "id": 34, + "value": 0.0038527783666459587 + }, + { + "id": 35, + "value": 0.0018400462388097818 + } + ] + }, + { + "name": "Poire", + "slug": "poire", + "ecv": 0.36428259399999996, + "footprint": 0.36428259399999996, + "footprintDetail": [ + { + "id": 30, + "value": 0.27341934474951646 + }, + { + "id": 33, + "value": 0.08190737602897352 + }, + { + "id": 34, + "value": 0.0036594786082843286 + }, + { + "id": 35, + "value": 0.005296394613225656 + } + ] + }, + { + "name": "Raisin", + "slug": "raisin", + "ecv": 0.45672809300000006, + "footprint": 0.45672809300000006, + "footprintDetail": [ + { + "id": 30, + "value": 0.3135493456304906 + }, + { + "id": 33, + "value": 0.11876845385012552 + }, + { + "id": 34, + "value": 0.017282838108235988 + }, + { + "id": 35, + "value": 0.007127455411147958 + } + ] + }, + { + "name": "Aubergine", + "slug": "aubergine", + "ecv": 0.4571093429, + "footprint": 0.4571093429, + "footprintDetail": [ + { + "id": 30, + "value": 0.31094313792574774 + }, + { + "id": 33, + "value": 0.12132039377688243 + }, + { + "id": 34, + "value": 0.022168642510005814 + }, + { + "id": 35, + "value": 0.002677168687364001 + } + ] + }, + { + "name": "Brocoli", + "slug": "brocoli", + "ecv": 0.9025554719999999, + "footprint": 0.9025554719999999, + "footprintDetail": [ + { + "id": 30, + "value": 0.6052678990137963 + }, + { + "id": 33, + "value": 0.20558117492666145 + }, + { + "id": 34, + "value": 0.06100194915162366 + }, + { + "id": 35, + "value": 0.030704448907918618 + } + ] + }, + { + "name": "Tomate", + "slug": "tomate", + "ecv": 0.581556477, + "footprint": 0.581556477, + "footprintDetail": [ + { + "id": 30, + "value": 0.3387797113397951 + }, + { + "id": 33, + "value": 0.18476558024305728 + }, + { + "id": 34, + "value": 0.030415636746221317 + }, + { + "id": 35, + "value": 0.027595548670926253 + } + ] + }, + { + "name": "Ananas", + "slug": "ananas", + "ecv": 1.292282106, + "footprint": 1.292282106, + "footprintDetail": [ + { + "id": 30, + "value": 0.784887627238915 + }, + { + "id": 33, + "value": 0.40369427532200425 + }, + { + "id": 34, + "value": 0.011573429169881933 + }, + { + "id": 35, + "value": 0.09212677426919891 + } + ] + }, + { + "name": "Banane", + "slug": "banane", + "ecv": 0.8806108929999997, + "footprint": 0.8806108929999997, + "footprintDetail": [ + { + "id": 30, + "value": 0.5414110726969145 + }, + { + "id": 33, + "value": 0.26905091124465946 + }, + { + "id": 34, + "value": 0.029727700179135168 + }, + { + "id": 35, + "value": 0.0404212088792907 + } + ] + }, + { + "name": "Avocat", + "slug": "avocat", + "ecv": 1.4804702330000001, + "footprint": 1.4804702330000001, + "footprintDetail": [ + { + "id": 30, + "value": 1.245661481703931 + }, + { + "id": 33, + "value": 0.1925264065004108 + }, + { + "id": 34, + "value": 0.017918409364132016 + }, + { + "id": 35, + "value": 0.024363935431526183 + } + ] + }, + { + "name": "Carambole", + "slug": "carambole", + "ecv": 0.533048897, + "footprint": 0.533048897, + "footprintDetail": [ + { + "id": 30, + "value": 0.4510695936352177 + }, + { + "id": 33, + "value": 0.06239045780565181 + }, + { + "id": 34, + "value": 0.010270557419573601 + }, + { + "id": 35, + "value": 0.009318288139556933 + } + ] + }, + { + "name": "Datte", + "slug": "datte", + "ecv": 2.7601109879999997, + "footprint": 2.7601109879999997, + "footprintDetail": [ + { + "id": 30, + "value": 2.406885789206207 + }, + { + "id": 32, + "value": 0.1848272926269017 + }, + { + "id": 33, + "value": 0.1293980331458001 + }, + { + "id": 34, + "value": 0.038999873021091015 + } + ] + }, + { + "name": "Fruit de la passion", + "slug": "fruitdelapassion", + "ecv": 0.89281737, + "footprint": 0.89281737, + "footprintDetail": [ + { + "id": 30, + "value": 0.6704029253772589 + }, + { + "id": 33, + "value": 0.17070675301295968 + }, + { + "id": 34, + "value": 0.026211890362449766 + }, + { + "id": 35, + "value": 0.025495801247331758 + } + ] + }, + { + "name": "Grenade", + "slug": "grenade", + "ecv": 0.48557222170000003, + "footprint": 0.48557222170000003, + "footprintDetail": [ + { + "id": 30, + "value": 0.3153061169059525 + }, + { + "id": 33, + "value": 0.14233190293683579 + }, + { + "id": 34, + "value": 0.006676308748808555 + }, + { + "id": 35, + "value": 0.021257893108403186 + } + ] + }, + { + "name": "Kaki", + "slug": "kaki", + "ecv": 0.9004313517, + "footprint": 0.9004313517, + "footprintDetail": [ + { + "id": 30, + "value": 0.6276714194919251 + }, + { + "id": 33, + "value": 0.2363260098786109 + }, + { + "id": 34, + "value": 0.008707752440716822 + }, + { + "id": 35, + "value": 0.027726169888747185 + } + ] + }, + { + "name": "Noix de coco", + "slug": "noixdecoco", + "ecv": 2.493762422, + "footprint": 2.493762422, + "footprintDetail": [ + { + "id": 30, + "value": 1.809626612518601 + }, + { + "id": 32, + "value": 0.25422073154537705 + }, + { + "id": 33, + "value": 0.28110383195738514 + }, + { + "id": 34, + "value": 0.07467254520477501 + }, + { + "id": 35, + "value": 0.07413870077386148 + } + ] + }, + { + "name": "Pastèque", + "slug": "pasteque", + "ecv": 0.6414638217000002, + "footprint": 0.6414638217000002, + "footprintDetail": [ + { + "id": 30, + "value": 0.4709379119589203 + }, + { + "id": 33, + "value": 0.14620600161122319 + }, + { + "id": 34, + "value": 0.0058124880835162965 + }, + { + "id": 35, + "value": 0.018507420046340317 + } + ] + } + ] +} \ No newline at end of file diff --git a/lib/ademe-api.ts b/lib/ademe-api.ts index d4a820c..3004017 100644 --- a/lib/ademe-api.ts +++ b/lib/ademe-api.ts @@ -1,20 +1,27 @@ import { Item } from "../types/item"; import ademeCategories from "../data/ademe/0-categories.json"; -import numerique from "../data/ademe/1-numerique.json"; -import repas from "../data/ademe/2-repas.json"; -import boisson from "../data/ademe/3-boisson.json"; -import transport from "../data/ademe/4-transport.json"; -import habillement from "../data/ademe/5-habillement.json"; -import electromenager from "../data/ademe/6-electromenager.json"; -import mobilier from "../data/ademe/7-mobilier.json"; -import chauffage from "../data/ademe/8-chauffage.json"; -import vegetablesAndFruits from "../data/ademe/9-fruitsetlegumes.json"; +import enNumerique from "../data/ademe/en/1-numerique.json"; +import enRepas from "../data/ademe/en/2-repas.json"; +import enBoisson from "../data/ademe/en/3-boisson.json"; +import enTransport from "../data/ademe/en/4-transport.json"; +import enHabillement from "../data/ademe/en/5-habillement.json"; +import enElectromenager from "../data/ademe/en/6-electromenager.json"; +import enMobilier from "../data/ademe/en/7-mobilier.json"; +import enChauffage from "../data/ademe/en/8-chauffage.json"; +import enVegetablesAndFruits from "../data/ademe/en/9-fruitsetlegumes.json"; +import frNumerique from "../data/ademe/fr/1-numerique.json"; +import frRepas from "../data/ademe/fr/2-repas.json"; +import frBoisson from "../data/ademe/fr/3-boisson.json"; +import frTransport from "../data/ademe/fr/4-transport.json"; +import frHabillement from "../data/ademe/fr/5-habillement.json"; +import frElectromenager from "../data/ademe/fr/6-electromenager.json"; +import frMobilier from "../data/ademe/fr/7-mobilier.json"; +import frChauffage from "../data/ademe/fr/8-chauffage.json"; +import frVegetablesAndFruits from "../data/ademe/fr/9-fruitsetlegumes.json"; import footprintDetailCategories from "../data/ademe/footprintDetailCategories.json"; -import { AdemeCategory, FootprintDetails } from "../types/AdemeECV"; +import { AdemeCategory, AdemeECV, FootprintDetails } from "../types/AdemeECV"; import { Locale } from "../types/i18n"; -//import usageNumerique from "../data/ademe/10-usagenumerique.json"; - export function getDefaultItems(locale: Locale): Item[] { const slugs = [ @@ -39,7 +46,7 @@ export function getDefaultItems(locale: Locale): Item[] { "chauffagefioul", "chauffageelectrique", "pompeachaleur", - "avionmoyencourrier", + "avion-moyencourrier", "tgv", "voiturethermique", "voitureelectrique" @@ -113,14 +120,16 @@ export function loadCategory(id: number, locale: Locale): Item[] { const digitalItems: Item[] = []; function loadDigital(locale: Locale): Item[] { if (digitalItems.length === 0) { + const numerique = locale === "fr" ? frNumerique : enNumerique; numerique.data.forEach(element => { const item: Item = { id: element.slug, categoryId: 1, - label: element.name[locale], - description: locale === "fr" ? - "Achat et usage pendant " + element.usage.defaultyears + " ans." : - "Purchase and usage for " + element.usage.defaultyears + " years.", + label: element.name, + description: !element.usage ? "" : + locale === "fr" ? + "Achat et usage pendant " + element.usage.defaultyears + " ans" : + "Purchase and usage for " + element.usage.defaultyears + " years.", explanation: "", image: "📱 💻 🖥️", source: element @@ -134,11 +143,12 @@ function loadDigital(locale: Locale): Item[] { const mealItems: Item[] = []; function loadMeals(locale: Locale): Item[] { if (mealItems.length === 0) { + const repas = locale === "fr" ? frRepas : enRepas; repas.data.forEach(element => { const item: Item = { id: element.slug, categoryId: 2, - label: element.name[locale], + label: element.name, description: "", explanation: "", image: "🐟 🍽 🥩", @@ -153,11 +163,12 @@ function loadMeals(locale: Locale): Item[] { const drinkItems: Item[] = []; function loadDrinks(locale: Locale): Item[] { if (drinkItems.length === 0) { + const boisson = locale === "fr" ? frBoisson : enBoisson; boisson.data.forEach(element => { const item: Item = { id: element.slug, categoryId: 3, - label: element.name[locale] + " (1L)", + label: element.name + " (1L)", description: "", explanation: "", image: "🍺 🍹 🥛", @@ -172,11 +183,14 @@ function loadDrinks(locale: Locale): Item[] { const transportItems: Item[] = []; function loadTransports(locale: Locale): Item[] { if (transportItems.length === 0) { + const transport = locale === "fr" ? frTransport : enTransport; transport.data.forEach(element => { + const coeff = transportCoeff[element.slug]; + applyCoefficient(element, coeff); const item: Item = { id: element.slug, categoryId: 4, - label: element.name[locale], + label: element.name + ` (${coeff}km)`, description: "", explanation: "", image: "🚗 🚄 ✈️", @@ -191,11 +205,12 @@ function loadTransports(locale: Locale): Item[] { const clotheItems: Item[] = []; function loadClothes(locale: Locale): Item[] { if (clotheItems.length === 0) { + const habillement = locale === "fr" ? frHabillement : enHabillement; habillement.data.forEach(element => { const item: Item = { id: element.slug, categoryId: 5, - label: element.name[locale], + label: element.name, description: "", explanation: "", image: "👞 👔 👗", @@ -210,12 +225,16 @@ function loadClothes(locale: Locale): Item[] { const householdApplianceItems: Item[] = []; function loadHouseholdAppliances(locale: Locale): Item[] { if (householdApplianceItems.length === 0) { + const electromenager = locale === "fr" ? frElectromenager : enElectromenager; electromenager.data.forEach(element => { const item: Item = { id: element.slug, categoryId: 6, - label: element.name[locale], - description: element.usage ? "Achat et usage pendant " + element.usage.defaultyears + " ans." : "", + label: element.name, + description: !element.usage ? "" : + locale === "fr" ? + "Achat et usage pendant " + element.usage.defaultyears + " ans" : + "Purchase and usage for " + element.usage.defaultyears + " years.", explanation: "", image: "🧊 🛁 ☕", source: element @@ -229,11 +248,12 @@ function loadHouseholdAppliances(locale: Locale): Item[] { const furnitureItems: Item[] = []; function loadFurnitures(locale: Locale): Item[] { if (furnitureItems.length === 0) { + const mobilier = locale === "fr" ? frMobilier : enMobilier; mobilier.data.forEach(element => { const item: Item = { id: element.slug, categoryId: 7, - label: element.name[locale], + label: element.name, description: "", explanation: "", image: "🛏️ 🪑 🛋️", @@ -248,11 +268,13 @@ function loadFurnitures(locale: Locale): Item[] { const heatingItems: Item[] = []; function loadHeating(locale: Locale): Item[] { if (heatingItems.length === 0) { + const chauffage = locale === "fr" ? frChauffage : enChauffage; chauffage.data.forEach(element => { + applyCoefficient(element, 1/12); const item: Item = { id: element.slug, categoryId: 8, - label: element.name[locale], + label: element.name, description: locale === "fr" ? "60m2 par mois en moyenne annuel." : "60m2 per month on yearly average.", @@ -269,12 +291,15 @@ function loadHeating(locale: Locale): Item[] { const vegetablesAndFruitsItems: Item[] = []; function loadVegetablesAndFruits(locale: Locale): Item[] { if (vegetablesAndFruitsItems.length === 0) { + const vegetablesAndFruits = locale === "fr" ? frVegetablesAndFruits : enVegetablesAndFruits; vegetablesAndFruits.data.forEach(element => { const item: Item = { id: element.slug, categoryId: 9, - label: element.name[locale] + " (1kg)", - description: "Consommé le mois de mars", + label: element.name + " (1kg)", + description: locale === "fr" ? + "Consommé le mois d'octobre" : + "Bought in October", explanation: "", image: "🥑 🍇 🍅", source: element @@ -285,8 +310,6 @@ function loadVegetablesAndFruits(locale: Locale): Item[] { return vegetablesAndFruitsItems; } - - // Not ready on Ademe side, they should explain with which device, on which network, how much, etc. // usageNumerique.data.forEach(element => { // const item: Item = { @@ -303,4 +326,37 @@ function loadVegetablesAndFruits(locale: Locale): Item[] { export function getFootprintDetails(): FootprintDetails { return footprintDetailCategories; +} + +const transportCoeff: {[key: string]: number} = { + "avion-courtcourrier": 800, + "avion-moyencourrier": 2000, + "avion-longcourrier": 6000, + "tgv": 700, + "intercites": 400, + "voiturethermique": 100, + "voitureelectrique": 100, + "autocar": 400, + "velo": 5, + "veloelectrique": 5, + "busthermique": 5, + "tramway": 5, + "metro": 5, + "scooter": 5, + "moto": 100, + "rer": 20, + "ter": 100, + "buselectrique": 5, + "trottinette": 5, + "busgnv": 5 +} + +function applyCoefficient(element: AdemeECV, coeff: number) { + element.ecv = element.ecv * coeff; + if (element.footprint) { + element.footprint = element.footprint * coeff; + } + if (element.footprintDetail) { + element.footprintDetail.forEach(detail => detail.value = detail.value * coeff); + } } \ No newline at end of file diff --git a/types/AdemeECV.ts b/types/AdemeECV.ts index bf48772..b795b41 100644 --- a/types/AdemeECV.ts +++ b/types/AdemeECV.ts @@ -1,10 +1,7 @@ import { I18nString } from "./i18n"; export interface AdemeECV { - name: { - en: string; - fr: string; - }; + name: string; ecv: number; slug: string; footprint?: number;