obd-tui
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.
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
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 · 1–5 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 —
--demodrives 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 FILEappends every sweep to a JSON Lines file, flushed as it goes, ready forjqor 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--portto override. - Metric or imperial —
--units imperialfor °F, mph and psi; only the display changes, recordings stay in the units the vehicle reports. - Configuration file — port, units and sweep period in
~/.config/obd-tui/config.toml, overridden by the command line. - Clear DTCs —
xsends 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 LOSTinstead 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.
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file obd_tui-0.3.4.tar.gz.
File metadata
- Download URL: obd_tui-0.3.4.tar.gz
- Upload date:
- Size: 162.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5707d5e1f444b110664baac06ee377a7af37d97881d9f14768a76805e198b663
|
|
| MD5 |
400a331dd9b48a9c107f58809880ca82
|
|
| BLAKE2b-256 |
f76c3e9ae4fdad058cc5bf8b86b1bcfd7287126ee82a3282932b2005954b7eba
|
Provenance
The following attestation bundles were made for obd_tui-0.3.4.tar.gz:
Publisher:
ci.yml on goabonga/obd-tui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
obd_tui-0.3.4.tar.gz -
Subject digest:
5707d5e1f444b110664baac06ee377a7af37d97881d9f14768a76805e198b663 - Sigstore transparency entry: 2485281817
- Sigstore integration time:
-
Permalink:
goabonga/obd-tui@5bb54ca1fd8a7dbdf6768250ee97cd035884c394 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/goabonga
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@5bb54ca1fd8a7dbdf6768250ee97cd035884c394 -
Trigger Event:
push
-
Statement type:
File details
Details for the file obd_tui-0.3.4-py3-none-any.whl.
File metadata
- Download URL: obd_tui-0.3.4-py3-none-any.whl
- Upload date:
- Size: 46.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54880651d738daa1ca0b57850f2e6c222fd55cef639b0180116cc44802dff7e9
|
|
| MD5 |
2e3be9980b8c27b61030fb308d1265e7
|
|
| BLAKE2b-256 |
c6330a22e955a1c680f0f11f9ed31cd4f09ef0ab01e409884e9ef99a2cf129e9
|
Provenance
The following attestation bundles were made for obd_tui-0.3.4-py3-none-any.whl:
Publisher:
ci.yml on goabonga/obd-tui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
obd_tui-0.3.4-py3-none-any.whl -
Subject digest:
54880651d738daa1ca0b57850f2e6c222fd55cef639b0180116cc44802dff7e9 - Sigstore transparency entry: 2485281849
- Sigstore integration time:
-
Permalink:
goabonga/obd-tui@5bb54ca1fd8a7dbdf6768250ee97cd035884c394 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/goabonga
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@5bb54ca1fd8a7dbdf6768250ee97cd035884c394 -
Trigger Event:
push
-
Statement type: