Wrapper for access the Connected Cars API - an AVL/data collection service installed in most new danish vehicles from Audi, Volkswagen, Skoda and SEAT.
Project description
Python wrapper for the ConnectedCars REST API
Connected Cars is an AVL/data collection service installed in most new danish vehicles from Audi, Volkswagen, Skoda and SEAT. The service has an API that is using GraphQL. This is a thin python wrapper for that API which handles authentication and refresh of access tokens. It allows the direct execution of GraphQL queries, but also includes some predefined queries that returns pyton objects for convenience.
Installation
pip install connectedcars
Data available
Depends on the car, but examples includes:
- gps position
- fuel level
- odometer
Usage
from connectedcars import ConnectedCarsClient
client = ConnectedCarsClient(username = 'XXX', password = 'XXX', namespace = 'XXX')
vehicles = client.vehicles_overview()
for vehicle in vehicles:
print(vehicle.make, vehicle.model, vehicle.fuelLevel.liter)
Could output something like:
Volkswagen Golf 38.0
Namespaces
You will need to provide a namespace corresponding to your login. Known namespaces are:
semler:minvolkswagen
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for connectedcars-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9311c8d9da718d4226f2e63834f9b82897f57ad78e3d48b1fc7b350a9b30ec16 |
|
MD5 | 6be935101bc631172bc2b8936a8dccac |
|
BLAKE2b-256 | e73820b9c6e05c6a2974f585da58bb16ad4e243231eccc257271ad0f83419702 |