Skip to content

Commit

Permalink
feat: start to use NGC to compute the CO2e emission
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileRolley committed Jul 30, 2024
1 parent 0205dc0 commit 046e3bb
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 220 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ node_modules
index.d.ts
index.js
doc/dist/
agir-voiture-publicodes.model.json
voiture-publicodes.model.json
46 changes: 0 additions & 46 deletions agir-voiture-publicodes.personas.json

This file was deleted.

21 changes: 19 additions & 2 deletions rules/empreinte-carbone.publicodes
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
importer!:
depuis:
nom: '@incubateur-ademe/nosgestesclimat'
url: https://github.com/incubateur-ademe/nosgestesclimat
dans: ngc
les règles:
- transport . voiture
- transport . voiture . utilisateur: "'propriétaire'"
- transport . voiture . gabarit: "'berline'"
- transport . voiture . motorisation: voiture . motorisation
- transport . voiture . thermique . carburant: "'essence E5 ou E10'"

empreinte:
titre: Empreinte carbone de votre voiture
somme:
- fabrication
- utilisation
Expand All @@ -8,5 +21,9 @@ empreinte . fabrication:
par défaut: 1000

empreinte . utilisation:
par défaut: 20

valeur: ngc . transport . voiture
contexte:
ngc . transport . voiture . utilisateur: "'propriétaire'"
ngc . transport . voiture . gabarit: "'berline'"
ngc . transport . voiture . motorisation: voiture . motorisation
ngc . transport . voiture . thermique . carburant: "'essence E5 ou E10'"
22 changes: 12 additions & 10 deletions rules/voiture.publicodes
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
importer!:
depuis:
nom: '@incubateur-ademe/nosgestesclimat'
url: https://github.com/incubateur-ademe/nosgestesclimat
dans: ngc
les règles:
- transport . voiture . motorisation
#importer!:
# depuis:
# nom: '@incubateur-ademe/nosgestesclimat'
# url: https://github.com/incubateur-ademe/nosgestesclimat
# dans: ngc
# les règles:

voiture:
titre: |
Informations sur la voiture (type de moteur, consommation, etc...)
titre: Informations sur la voiture
description: |
Pour calculer l'empreinte carbone de votre voiture, nous avons besoin de
quelques informations concernant le véhicule que vous utilisez.
voiture . motorisation:
question: Quel type de voiture possédez-vous ?
par défaut: "'thermique'"
par défaut: "'électrique'"
formule:
une possibilité:
choix obligatoire: oui
Expand All @@ -30,3 +31,4 @@ voiture . motorisation:
titre: Hybride
# TODO: faire la distinction diesel/essence and hybride
# non-rechargeable/hybride rechargeable

161 changes: 0 additions & 161 deletions voiture-publicodes.model.json

This file was deleted.

0 comments on commit 046e3bb

Please sign in to comment.