This is a basic Python wrapper around the DroneMobile API. The wrapper provides methods to return vehicle status as well as some basic commands, e.g. start/stop, lock/unlock.
The code here is based off of an unsupported API from DroneMobile and is subject to change without notice. The authors claim no responsibility for damages to your vehicle by use of the code within.
- Automatically authenticate & re-fetch tokens once expired
- Get status of the vehicle (this returns a ton of info about the car: lat/long, temperature, battery, odometer, door status, and a bunch of other stuff that may/may not apply to your car.
- Start the engine
- Stop the engine
- Lock the doors
- Unlock the doors
Install using pip:
pip install drone_mobile
To test the libary there is a demo script demo.py
.
demo.py USERNAME PASSWORD
e.g.
demo.py [email protected] mypassword
- 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!