Permalink
Switch branches/tags
Nothing to show
Find file
8f19567 Jun 17, 2012
22 lines (15 sloc) 354 Bytes
import elm
import obdii
import sys
import time
def main():
port = sys.argv[1]
adapter = elm.Elm(port)
obd = obdii.Obdii(adapter)
while True:
rpm = obd.get_current_engine_rpm()
ect = obd.get_current_ect()
print "RPM: %d rpm, ECT: %d C" % (rpm, ect)
time.sleep(1)
if __name__ == '__main__':
main()