obd
obd copied to clipboard
A Ruby API for use with an ELM327-based OBD-II interface.
Installation
gem install obd
Usage
Connect your OBD-II adapter and pass its device file to OBD.connect
:
require 'obd'
obd = OBD.connect '/dev/tty.obd'
obd[:engine_rpm]
=> "4367.25rpm"
# Retrieve error codes
obd.send("03")
=> "43000545"