Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPS Data Parser

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.

Features

  • 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.

Getting Started

Prerequisites

Ensure you have the following installed on your system:

  • Python 3.8 or later
  • MySQL Server
  • Required Python packages (listed in requirements.txt)

Installation

  1. Clone the repository:

    git clone https://github.com/pravinkori/gps-data-parser.git
    cd gps-data-parser
  2. Install dependencies:

    pip install -r requirements.txt
  3. Configure your settings:

    • Copy the example configuration file:
      cp config/config.example.ini config/config.ini
    • Edit config/config.ini to set your MySQL credentials and desired serial settings.

Usage

Run the parser with the following command:

python src/gps_parser.py

Testing

Run the test suite to ensure everything works correctly:

python -m unittest discover tests

Contributing

We welcome contributions from the community! Please read the CONTRIBUTING.md file for details on how to get started.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A Python-based GPS data parser that processes and stores NMEA sentences in a MySQL database

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages