GPS Data Parser is a Python-based application designed to parse GPS data (NMEA sentences) from serial ports, process it, and store the data in a MySQL database. It includes robust features for handling GNGGA and GNVTG sentences, timezone conversions, and real-time data storage.
- Auto-detection of GPS serial ports.
- Parsing GNGGA and GNVTG NMEA sentences.
- Conversion of UTC time to local timezone (Asia/Dubai by default).
- Multi-threaded real-time GPS data processing.
- Storage of parsed data in MySQL database.
Ensure you have the following installed on your system:
- Python 3.8 or later
- MySQL Server
- Required Python packages (listed in
requirements.txt)
-
Clone the repository:
git clone https://github.com/pravinkori/gps-data-parser.git cd gps-data-parser -
Install dependencies:
pip install -r requirements.txt
-
Configure your settings:
- Copy the example configuration file:
cp config/config.example.ini config/config.ini
- Edit
config/config.inito set your MySQL credentials and desired serial settings.
- Copy the example configuration file:
Run the parser with the following command:
python src/gps_parser.pyRun the test suite to ensure everything works correctly:
python -m unittest discover testsWe welcome contributions from the community! Please read the CONTRIBUTING.md file for details on how to get started.
This project is licensed under the MIT License. See the LICENSE file for details.