Skip to content

hurzhurz/psa-token-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PSA Token Helper

This is an experimental tool to easy get OAuth2 tokens for a PSA account (Citroën, DS, Opel, Peugeot) and is meant as a proof of concept.
The received tokens can then be used for example with EVCC

It is a simple Python GUI application with an embedded web browser QtWebEngine. The start page has pre generated login links with an authorization challenge for each brand. After the login, the browser can read the authorization code from the redirect URL and use it to fetch the tokens.

Usage

Windows

There is a pre-built executable (PyInstaller one-file bundle) in the release section.

Home Assistant / Docker

See https://github.com/hurzhurz/psa-token-helper-addon

General

Install Python3 and the necessary modules to run psa-token-helper.py.
Here as an example with an python virtual environment:

python3 -m venv venv
source venv/bin/activate # on windows: .\venv\Scripts\activate
pip install PyQT5 PyQtWebEngine requests

python psa-token-helper.py

Screenshots

  • Step 1: select brand step1
  • Step 2: login step1
  • Step 3: final confirmation step1
  • Step 4: display of received tokens step1

About

Tool to get OAuth2 tokens for PSA (Citroën, DS, Opel, Peugeot)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors