Skip to main content

obd-tui

CI Codecov PyPI License: MIT Python uv

obd-tui turns any ELM327-compatible OBD-II adapter into a live terminal dashboard. It auto-detects the adapter on the serial bus, asks the vehicle which commands it actually supports, and streams the readings into a tabbed Textual UI — engine, turbo/air, EGR, diagnostics, fault codes, and the full PID catalogue.

The engine panel of obd-tui

No adapter at hand? obd-tui --demo runs the whole dashboard against a simulated vehicle.

Documentation

The project site is published from main to GitHub Pages: https://goabonga.github.io/obd-tui/.

Requirements

  • Python 3.11+
  • An ELM327-compatible OBD-II adapter on a serial port (USB or Bluetooth RFCOMM)
  • uv for development

Install

pip install obd-tui      # or: uvx obd-tui

On Ubuntu 24.04 LTS and 26.04 LTS, from the PPA:

sudo add-apt-repository ppa:goabonga/obd-tui
sudo apt install obd-tui

Usage

obd-tui                       # launch the dashboard
obd-tui --port /dev/ttyUSB0   # skip auto-detection and connect at once
obd-tui --demo                # simulated vehicle, no hardware needed
obd-tui --record drive.jsonl  # log every sweep as JSON Lines
obd-tui --units imperial      # °F, mph, psi
obd-tui --version

Keys: c connect · d disconnect · 15 panels · p PID catalogue · x clear DTCs · q quit. Panels taller than the window scroll with the wheel, the arrows or PgUp/PgDn.

Features

  • Demo mode--demo drives the dashboard from a simulated vehicle, so the UI can be tried, screenshotted and tested with nothing plugged in.
  • Trends — RPM, coolant and MAF are charted above the engine readings from a five-minute rolling history.
  • Recording--record FILE appends every sweep to a JSON Lines file, flushed as it goes, ready for jq or pandas.
  • Adapter auto-detection — scans serial ports for known OBD-II adapters (vLinker / FTDI 0403:6015, and any port whose product or manufacturer string looks like an OBD adapter), falls back to bound Bluetooth RFCOMM nodes, and takes --port to override.
  • Metric or imperial--units imperial for °F, mph and psi; only the display changes, recordings stay in the units the vehicle reports.
  • Configuration file — port, units, sweep period and reconnect interval in ~/.config/obd-tui/config.toml, overridden by the command line.
  • Clear DTCsx sends mode 04 after a confirmation dialog spelling out what it resets, then reads the codes back.
  • Adaptive polling — readings are swept at three cadences, and whatever the open panel shows is read every sweep. A vehicle that stops answering is detected and the session drops to LINK LOST instead of hanging.
  • Capability discovery — queries the vehicle for its supported commands across modes 01–09 plus the ELM adapter commands, so panels only show data the ECU can actually produce.
  • Tabbed dashboard — Engine, Turbo/Air, EGR, Diagnostics, Faults and the PID catalogue, refreshed once per second while connected.
  • Reconnects on its own — a missing adapter, a port that refused to open or a vehicle that went quiet is retried every few seconds, until d says the link is to stay down.
  • Live connection status in the footer: state, port, and adapter VID:PID.
  • Tabs stay disabled until a device is connected, and disable again on disconnect.

Getting started (development)

git clone https://github.com/goabonga/obd-tui.git
cd obd-tui
uv sync
uv run pre-commit install
uv run ruff check src tests
uv run mypy src
uv run pytest

Versioning and release

Versions are bumped from Conventional Commits by multicz. On every push to main, CI computes the bump, writes the changelog, tags, and publishes the wheel to PyPI through Trusted Publishing. Maintainers do not bump versions or edit the changelog by hand.

Stability and deprecation policy

obd-tui follows Semantic Versioning and the standard Python n + 2 deprecation cadence (announce + warn in one release, remove in the release after the next). Full policy: docs/stability.md.

Contributing

See CONTRIBUTING.md for the workflow, the commit-message convention, and the test/lint expectations. By participating you agree to the Code of Conduct.

Security issues: please follow the disclosure process in SECURITY.md.

License

Distributed under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

obd_tui-0.4.0.tar.gz (180.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

obd_tui-0.4.0-py3-none-any.whl (51.4 kB view details)

Uploaded Python 3

File details

Details for the file obd_tui-0.4.0.tar.gz.

File metadata

  • Download URL: obd_tui-0.4.0.tar.gz
  • Upload date:
  • Size: 180.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for obd_tui-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a17973c9fc72b4e1b8b6f4c926d40dd04ffccd92af3fb718bec0804503fb0d70
MD5 94bcc0d450bc9cdca3e6f9ad4922cd61
BLAKE2b-256 6fd82f2b872d14aa71e2a2e00f5c793c6adddb2abb3344c19c6d84f1ad663ccb

See more details on using hashes here.

Provenance

The following attestation bundles were made for obd_tui-0.4.0.tar.gz:

Publisher: ci.yml on goabonga/obd-tui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file obd_tui-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: obd_tui-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 51.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for obd_tui-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32a93194841c630b4c97502eab7672ff00641fd2a1cb9022c5144b7a04a77f23
MD5 66f0b52e2bd9c26c1e168ca350d7fe9a
BLAKE2b-256 a0d21e0abbc8d5b42eb448c5364e27e6f48dd9e0c0295b9df5198d14469aee11

See more details on using hashes here.

Provenance

The following attestation bundles were made for obd_tui-0.4.0-py3-none-any.whl:

Publisher: ci.yml on goabonga/obd-tui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.8

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page