A dashboard for monitoring vehicle information to identify problems, calculate consumption, view/clear fault codes, etc
You need a obd2 adapter like ELM-327, I used a Wifi one.
You need Docker or install the python requirements in your env or venv
Docker Install:
- Install docker if not already installed: Docker Install
Run Docker:
- Run:
docker compose up
Local run:
cd app
FLASK_ENV=development flask run
Open http://localhost:5000
in your browser
- Using flask as frontend and api
- Using python-obd to comunicate with adapter
- Connects a wifi device in default '192.168.0.10:35000' address
- If bluetooth, configure properly, see Python-OBD Docs
-
HTML, CSS and JavaScript files are in
app/templates
-
Static files in
app/static
-
Flask routes in
app/app.py
-
OBD2 Connection in
app/connection.py
-
You can run in background to keep terminal free with
docker-compose up -d
See logs withdocker-compose logs
. And to keep showing:docker-compose logs -f
-
Stop and Remove all Containers about:
docker-compose down
- Create dashboard for different views
- Calculate differential ratio from velocity to estimate actual gear
- Change docker to bind bluetooth device
- Use Web Sockets / ASync
- Record log in time-series format
- ...