Skip to content

A Python library to help the Shade Tree Mechanic easily interface with OBD-II scanners

License

Notifications You must be signed in to change notification settings

corbinbs/shadetree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Python library to help the Shade Tree Mechanic easily interface with OBD-II scanners

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages