This is a basic Python wrapper around the FordPass APIs. The wrapper provides methods to return vehicle status as well as some basic commands, e.g. start/stop, lock/unlock.
It's more or less a straight port of @d4v3y0rk's NPM module d4v3y0rk/ffpass - props to him for his work figuring out the relevant API requests needed.
Forked from clarkd/fordpass-python and currently mantained by me.
- Automatically auth & re-fetches tokens once expired
- Get status of the vehicle (this returns a ton of info about the car: lat/long, oil, battery, fuel, odometer, tire pressures, open windows and a bunch of other stuff that may/may not apply to your car, e.g. charge level, diesel filters.)
- Start the engine (if supported)
- Stop the engine (if supported)
- Lock the doors
- Unlock the doors
Install using pip:
pip install fordpass
To test the libary there is a demo script demo.py
.
demo.py USERNAME PASSWORD VIN
e.g.
demo.py [email protected] mypassword WX12345678901234
- Bump the version number inside
setup.py
. - Build the package:
python setup.py sdist bdist_wheel
. - Upload to TestPyPi using
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
and verify everything is as expected. - Upload to PyPi using
twine upload dist/*
. - All done!