Skip to main content

GPS Sentence Parser

Project description

GPS parser module

Steps

  • Step 1: install pygpsparser module
pip install pygpsparser
  • Step 2: import GPSParser
from gpsparser import GPSParser
  • Step 3: prepare GPS sentences, e.g.,
sentence_RMC = '$GNRMC,062357.00,A,2502.3376,N,12133.52528,E,0.132,,231221,,,A*68'
  • Step 4: create GPSParser instance
gps_parser = GPSParser(local_time_zone = 'Asia/Taipei')

local_time_zone: set the local time zone for datetime conversion

  • Step 5: get the RMC message
if gps_parser.parse_NMEA(sentence_RMC) is True:
    print(f'local datetime: {gps_parser.local_datetime}')
    print(f'latlon in radian: {gps_parser.latlon_radian_RMC}')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygpsparser-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

pygpsparser-0.0.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file pygpsparser-0.0.3.tar.gz.

File metadata

  • Download URL: pygpsparser-0.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for pygpsparser-0.0.3.tar.gz
Algorithm Hash digest
SHA256 88c086d9c8ea4afedb702207a58a32cd7e733cf3c377aeb3c0c089381c1c3207
MD5 86039fdadf01e49b1e8a334558235c31
BLAKE2b-256 7d32041e6a816511a7644672024329fe3eee18fed1caa697c43793ca5dddc85e

See more details on using hashes here.

File details

Details for the file pygpsparser-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pygpsparser-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for pygpsparser-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5f9ffb89394f41f7685eb23ab0c527863c3e53f20da664927df97252969913e
MD5 5d132704c6b7501b0c8a25c7f8f2f462
BLAKE2b-256 5e82378bb6f62d6f6fb72a4d8866c3fbf12eedb5aeb427d20818fd9d327c5640

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page