From 84779dedb58a5e104530c6fb66e83a1abc88e110 Mon Sep 17 00:00:00 2001 From: Dackara <82636574+Dackara@users.noreply.github.com> Date: Wed, 11 Jan 2023 13:20:53 +0100 Subject: [PATCH 1/5] Update car_models.yml Ajout : - Peugeot 2008 ``VF3CU9HP0`` - Peugeot ION "VF31NZKYZ`` --- psa_car_controller/psacc/resources/car_models.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/psa_car_controller/psacc/resources/car_models.yml b/psa_car_controller/psacc/resources/car_models.yml index 9875f8f..b1632f8 100644 --- a/psa_car_controller/psacc/resources/car_models.yml +++ b/psa_car_controller/psacc/resources/car_models.yml @@ -82,6 +82,13 @@ abrp_name: opel:comboe:22:50:peugeot reg: VR3EZZKXZ.* max_elec_consumption: 70 +- !ElecModel + name: ION + battery_power: 14.5 + fuel_capacity: 0 + abrp_name: peugeot:ion:12:14:other + reg: VF31NZKY.* + max_elec_consumption: 70 - !CarModel name: SUV 3008 Hybrid 225 battery_power: 13.2 @@ -122,6 +129,14 @@ reg: VR3USHNS.* max_elec_consumption: 70 max_fuel_consumption: 30 +- !CarModel + name: '2008' + battery_power: 0 + fuel_capacity: 44 + abrp_name: + reg: VF3CU9HP.* + max_elec_consumption: 70 + max_fuel_consumption: 30 - !CarModel name: 2008 II battery_power: 0 From 418ccc62a1b7b760d119ca597462f04cd4e50b7e Mon Sep 17 00:00:00 2001 From: Phil Skorpil Date: Thu, 12 Jan 2023 09:49:23 +0100 Subject: [PATCH 2/5] add Peugeot 308 Hybrid --- psa_car_controller/psacc/resources/car_models.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/psa_car_controller/psacc/resources/car_models.yml b/psa_car_controller/psacc/resources/car_models.yml index 9875f8f..80c5620 100644 --- a/psa_car_controller/psacc/resources/car_models.yml +++ b/psa_car_controller/psacc/resources/car_models.yml @@ -226,6 +226,14 @@ reg: VF72RHNPXK.* max_elec_consumption: 70 max_fuel_consumption: 30 +- !CarModel + name: 308 Hybrid + battery_power: 12.4 + fuel_capacity: 40 + abrp_name: + reg: VR3F3DGYTN.* + max_elec_consumption: 70 + max_fuel_consumption: 30 - !CarModel name: 308 SW Hybrid battery_power: 12.4 From 988778ea3429ca9891731220833ad6a01cd1bf51 Mon Sep 17 00:00:00 2001 From: Phil Skorpil Date: Thu, 12 Jan 2023 09:54:44 +0100 Subject: [PATCH 3/5] Update car_models.yml - removed 10th key for Year of production --- psa_car_controller/psacc/resources/car_models.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psa_car_controller/psacc/resources/car_models.yml b/psa_car_controller/psacc/resources/car_models.yml index 80c5620..745e2b4 100644 --- a/psa_car_controller/psacc/resources/car_models.yml +++ b/psa_car_controller/psacc/resources/car_models.yml @@ -231,7 +231,7 @@ battery_power: 12.4 fuel_capacity: 40 abrp_name: - reg: VR3F3DGYTN.* + reg: VR3F3DGYT.* max_elec_consumption: 70 max_fuel_consumption: 30 - !CarModel From 2bab5e72b6cecfce478b6de6555c7f34d200caef Mon Sep 17 00:00:00 2001 From: Jeroen de Jong Date: Fri, 13 Jan 2023 18:27:50 +0100 Subject: [PATCH 4/5] Add peugot 208 --- psa_car_controller/psacc/resources/car_models.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/psa_car_controller/psacc/resources/car_models.yml b/psa_car_controller/psacc/resources/car_models.yml index 9875f8f..1938447 100644 --- a/psa_car_controller/psacc/resources/car_models.yml +++ b/psa_car_controller/psacc/resources/car_models.yml @@ -114,6 +114,14 @@ reg: VR3UPHN[SEK].* max_elec_consumption: 70 max_fuel_consumption: 30 +- !CarModel + name: '208' + battery_power: 0 + fuel_capacity: 44 + abrp_name: + reg: VF3CCBHY6H.* + max_elec_consumption: 70 + max_fuel_consumption: 30 - !CarModel name: '2008' battery_power: 0 From 90113e9295059930988a24484c01cb63866cc269 Mon Sep 17 00:00:00 2001 From: Malte Hellmeier Date: Fri, 13 Jan 2023 23:50:17 +0100 Subject: [PATCH 5/5] docs: add raspberry pi tutorial --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 19b4af1..3512512 100644 --- a/README.md +++ b/README.md @@ -29,14 +29,15 @@ The official api is documented [here](https://developer.groupe-psa.io/webapi/b2c - [Installation on Linux or Windows](docs/Install.md) - [Instalation as Home Assistant addon](https://github.com/flobz/psacc-ha/blob/main/psacc-ha/README.md) - [Installation in Docker](docs/Docker.md) +- [Installation on Raspberry Pi with docker-compose (external Tutorial)](https://return2.net/opel-peugeot-electric-vehicle-set-charging-threshold-limit/) ## II. Use the app - + 2.1 Get the car state : http://localhost:5000/get_vehicleinfo/YOURVIN 2.2 Get the car state from cache to avoid to use psa api too much http://localhost:5000/get_vehicleinfo/YOURVIN?from_cache=1 - + 2.2 Stop charge http://localhost:5000/charge_now/YOURVIN/0 @@ -45,7 +46,7 @@ The official api is documented [here](https://developer.groupe-psa.io/webapi/b2c 2.4 Change car charge threshold to 80 percent http://localhost:5000/charge_control?vin=YOURVIN&percentage=80 - + 2.5 See the dashboard (only if record is enabled) http://localhost:5000 @@ -60,7 +61,7 @@ The official api is documented [here](https://developer.groupe-psa.io/webapi/b2c ## III. Use the dashboard - + You can add the -r argument to record the position of the vehicle and retrieve this information in a dashboard. ``python3 psa-car-controller -f config.json -c charge_config.json -r``