Obd2MdfToCsv is an application designed to transform OBD2 MDF file car logs into well-structured, beautiful CSV files. This tool is essential for professionals and enthusiasts in the automotive industry who deal with vehicle data logging and analysis.
- Convert MDF to CSV: Seamlessly convert OBD2 MDF files into an easily readable CSV format.
- Data Integrity: Ensures that all data from the MDF file is accurately represented in the CSV output.
- Filtering Options: Offers options to filter and select specific data parameters for conversion.
- Batch Processing: Supports processing multiple files at once, saving time and effort.
- Docker Integration: Packaged with Docker, enabling easy setup and execution across different environments.
These instructions will get you a copy of the project up and running on your local machine.
-
Clone the Repository
git clone https://github.com/yankejustin/Obd2MdfToCsv.git cd Obd2MdfToCsv
-
Build the Docker Container
docker build -t obd2mdftocsv .
To convert an MDF to CSV with column name changing and data modification:
```bash
docker run -v ${PWD}/data:/app/data obd2mdftocsv python app.py data/input.mdf data/output.csv
```
For example, if you place input.mdf
inside the data
directory, you can run the container like this:
```bash
docker run -v /path/to/Obd2MdfToCsv/data:/app/data obd2mdftocsv python app.py /app/data/input.mdf
```
Note: Replace
/path/to/Obd2MdfToCsv
with the actual path to where you cloned the repository.
- Docker - Used to containerize the application.
- Python - The core programming language used.
- MDF Standard Reference - Standard for MDF files.
- ASAM MDF - Measurement Data File Parser - Used for parsing MDF files.
To bring the latest changes from GitHub to your machine:
-
Pull the latest code:
cd /path/to/Obd2MdfToCsv git pull origin main
-
Rebuild the Docker image:
docker build -t obd2mdftocsv .
-
Run the Docker container:
docker run -v /path/to/Obd2MdfToCsv/data:/usr/src/app/data obd2mdftocsv /usr/src/app/data/input.mdf
Note: The
OptionalFilePathForInput
parameter can be excluded entirely, and it will default to the local path and file:/Obd2MdfToCsv/data/input.mdf