GPS parser module
Steps
- Step 1: install pygpsparser module
pip install pygpsparser
- Step 2: import GPSParser
from pygpsparser 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}')
Release files for pygpsparser 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygpsparser-0.0.7.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygpsparser-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / pygpsparser-0.0.7.tar.gz
| Download URL | pygpsparser-0.0.7.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17738dcc74227d44eccfc93f9aa9108ccae8bad48bb1b0c1a5878513d9f73016
|
|
BLAKE2b-256 checksum How to use checksums |
52bec758e44dfc0d4f0bcbfa09a8b7f5272b1a4ee17e12dbae10ba494da28d1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pygpsparser-0.0.7-py3-none-any.whl
| Download URL | pygpsparser-0.0.7-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2d32070e037b6ca3a0e11a389713480a089dc6d4f3b9070d1f0a6d526f8d6e8
|
|
BLAKE2b-256 checksum How to use checksums |
d1d53099451c55888236c2832a12a786434d700b00248e578499e0d045e4cdf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|