Merge branch 'flobz:master' into master

This commit is contained in:
capu-bia
2023-03-13 16:30:20 +01:00
committed by GitHub
2 changed files with 36 additions and 4 deletions
+5 -4
View File
@@ -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``
@@ -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
@@ -114,6 +121,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
@@ -122,6 +137,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
@@ -226,6 +249,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: VR3F3DGYT.*
max_elec_consumption: 70
max_fuel_consumption: 30
- !CarModel
name: 308 SW Hybrid
battery_power: 12.4