From abcb436f3e3dad1625f41546cabc4541e11d0a2d Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Thu, 28 Jan 2021 14:35:28 +0100 Subject: [PATCH] update README.md --- README.md | 58 +++++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index c06bfe2..f2357f8 100644 --- a/README.md +++ b/README.md @@ -18,37 +18,37 @@ The api is documented [here](https://developer.groupe-psa.io/webapi/b2c/quicksta ## I. Get credentials We need to get credentials from the android app. -1. Extract credentials from the apk - - We will retrieve these informations: - - client-id and client-secret for the api - - some url to login +1.1 Extract credentials from the apk - 2.1 Download the app on your computer, the original MyPeugeot app can be downloaded [here](https://apkpure.com/fr/mypeugeot-app/com.psa.mym.mypeugeot) for example. - - 2.2 Install requirements : - - - On debian based distribution you can install some requirement from repos: - - ```sudo apt-get install python3-typing-extensions python3-pandas python3-plotly python3-paho-mqtt python3-six python3-dateutil python3-brotli libblas-dev liblapack-dev gfortran python3-pycryptodome``` - - - For everyone : - ```pip3 install -r requirements.txt``` - - 2.3 run the decoder script : ```python3 app_decoder.py ``` - - mypeugeot email: - mypeugeot password: - What is the car api realm : clientsB2CPeugeot, clientsB2CDS, clientsB2COpel, clientsB2CVauxhall - clientsB2CPeugeot - What is your country code ? (ex: FR, GB, DE, ES...) - FR - save config change - - Your vehicles: {'VINNUBMER': {'id': 'vehicule id'}} - - 2.4 If it works you will have VIN of your vehicles and there ids in the last line. The script generate a test.json file with all credentials needed. +We will retrieve these informations: + - client-id and client-secret for the api + - some url to login + +1.2 Download the app on your computer, the original MyPeugeot app can be downloaded [here](https://apkpure.com/fr/mypeugeot-app/com.psa.mym.mypeugeot) for example. + +1.3 Install requirements : + +- On debian based distribution you can install some requirement from repos: + ```sudo apt-get install python3-typing-extensions python3-pandas python3-plotly python3-paho-mqtt python3-six python3-dateutil python3-brotli libblas-dev liblapack-dev gfortran python3-pycryptodome``` + +- For everyone : + ```pip3 install -r requirements.txt``` + +1.4 run the decoder script : ```python3 app_decoder.py ``` + + mypeugeot email: + mypeugeot password: + What is the car api realm : clientsB2CPeugeot, clientsB2CDS, clientsB2COpel, clientsB2CVauxhall + clientsB2CPeugeot + What is your country code ? (ex: FR, GB, DE, ES...) + FR + save config change + + Your vehicles: {'VINNUBMER': {'id': 'vehicule id'}} + +1.5 If it works you will have VIN of your vehicles and there ids in the last line. The script generate a test.json file with all credentials needed. + ## II. Use the app