Skip to content
A Python library to help the Shade Tree Mechanic easily interface with OBD-II scanners
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
shadetree Adds support for querying the OBD-II interface for supported PIDs Aug 12, 2014
tests
.gitignore Initial work to provide basic read / write operations for interfacing… Jul 20, 2014
.travis.yml
LICENSE.txt Initial work to provide basic read / write operations for interfacing… Jul 20, 2014
README.rst use master branch for travis-ci build status image Oct 12, 2014
setup.cfg
setup.py
tox.ini use tox for local test running across Python environments Oct 12, 2014

README.rst

build version wheel

ShadeTree OBD

ShadeTree OBD provides easy access to ELM327 OBD-II Interfaces in Python. It's been successfully used with ELM327 OBD-II bluetooth scanners and the Raspberry Pi to create portable automotive OBD-II logging devices. Data can be captured during test drives for later analysis. It may also be used as part of routine driving to gather information to determine an optimal vehicle maintenance schedule. Continuous logging may also help with vehicle troubleshooting when problems occur.

This library was originally developed as a teaching tool to help the best rural problem solvers get excited about computing via their existing passion for automotive work.

The library is still under development. Initial work focused on reading from and writing to ELM327 OBD-II interfaces. Work is ongoing to build more tools and services around the core library.

Installation

Install using pip

$ pip install shadetree

Quick start

from shadetree.obd.scanner import OBDScanner

with OBDScanner() as obd:
    print('ELM version'.format(obd.elm_version))
    print('Vehicle Identification Number (VIN): {0}'.format(obd.vehicle_id_number()))
    print('Engine Control Unit (ECU) Name: {0}'.format(obd.ecu_name()))
    print('Battery voltage: {0}'.format(obd.battery_voltage()))
    print('Fuel type: {0}'.format(obd.fuel_type()))
    print('Coolant temp: {0}'.format(obd.current_engine_coolant_temperature()))
    print('Oil temp: {0}'.format(obd.current_engine_oil_temperature()))
    print('Engine RPM: {0}'.format(obd.current_engine_rpm()))

Supported Python Versions

ShadeTree OBD makes every effort to ensure smooth operation with these Python interpreters:

  • 2.7+
  • 3.4+
  • PyPy

License

See LICENSE for details.

You can’t perform that action at this time.