Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for connectedcars, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size connectedcars-0.1.3-py3-none-any.whl (6.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size connectedcars-0.1.3.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page