PyGPSClient GPS Client
Reason this release was yanked:
obsolete
Project description
PyGPSClient
PyGPSClient is a free, open source graphical GPS testing and diagnostic client application written entirely in Python and tkinter.
The application runs on any platform which supports a Python3 interpreter (>=3.6) and tkinter (>=8.6) GUI framework, including Windows, MacOS, Linux and Raspberry Pi OS. It displays location and diagnostic data from any NMEA or UBX (u-blox ©) compatible GPS device over a standard serial (UART) or USB port, in addition to providing a small but useful subset of the configuration functionality in u-blox's Windows-only u-center tool.
Originally designed as a platform-agnostic evaluation, development and educational tool for the u-blox NEO-6M series GPS modules, and in particular the Makerhawk Hobbyist GPS Board, it has evolved into a more general purpose multi-platform NMEA / UBX GPS client.
Features:
- Supports both NMEA and UBX protocols. It uses the existing pynmea2 library for NMEA parsing and implements a new pyubx2 library for UBX parsing.
- Configurable GUI with selectable and resizeable widgets.
- Expandable banner widget showing key navigation information.
- Serial console widget showing either raw or parsed data stream.
- Skyview widget showing current satellite visibility and position (elevation / azimuth).
- Graphview widget showing current satellite reception (signal-to-noise ratio).
- Mapview widget with location marker, showing either a static Mercator world map, or an optional dynamic web-based map downloaded via a MapQuest API (requires an Internet connection and free MapQuest API Key).
- WORK IN PROGRESS UBX Configuration Dialog (under Menu...Options), with the ability to send UBX configuration messages to u-blox GPS devices e.g. NMEA and UBX message filters. This includes the facility to add user-defined preset configuration messages - see instructions under installation below.
This is a personal project and I have no affiliation whatsoever with u-blox ©, Makerhawk © or MapQuest ©.
Glossary of Terms
- utc - coordinated universal time
- siv - satellites in view
- sip - satellites used in position solution
- dop - dilution of precision (pdop - position, hdop - horizontal, vdop - vertical)
- acc - accuracy of location in real units (hacc - horizontal, vacc - vertical)
Current Status
Alpha. Main application and widgets are fully functional for both NMEA and UBX protocols. The UBX configuration dialog is a work in progress and additional configuration functionality will be added in due course. Needs slightly more robust exception handling in a few areas.
Constructive feedback welcome.
Installation
In the following, python
refers to the python 3 executable (this application will not run under python 2). You may need to type python3
, depending on your particular environment.
Dependencies
See requirements.txt.
On Windows and MacOS, pip, tkinter and the necessary imaging libraries are generally packaged with Python. On some Linux distributions like Ubuntu 18+ and Raspberry Pi OS, they may need to be installed separately, e.g.:
sudo apt-get install python3-pip python3-tk python3-pil python3-pil.imagetk
The following python libraries are required (these will be installed automatically if using pip):
python -m pip install pyubx2 pyserial pynmea2 Pillow requests
User Privileges
To access the serial port on most linux platforms, you will need to be a member of the
tty
and dialout
groups. Other than this, no special privileges are required.
1. Install using pip
The easiest way to install PyGPSClient is via pip:
python -m pip PyGPSClient
If the python3 site_packages are in your path, simply run python -m pygpsclient
.
If not, run python -m \full_path_to_site_packages\pygspclient
.
2. Manual installation
To install and run, download and unzip this repository and run:
python -m /path_to_folder/foldername/pygpsclient
e.g. if you downloaded and unzipped to a folder named PyGPSClient-0.1.6
, run:
python -m /path_to_folder/PyGPSClient-0.1.6/pygpsclient
.
MapQuest API Key
To use the optional dynamic web-based mapview facility, you need to request and install a MapQuest API key. The free edition of this API allows for up to 15,000 transactions/month (roughly 500/day) on a non-commercial basis. For this reason, the map refresh rate is intentionally limited to 1/minute to avoid exceeding the free transaction limit under normal use. NB: this application is not intended to be used for real time navigational purposes.
Once you have received the API key (a 32-character alphanumeric string), copy it to a file named mqapikey
(lower case,
no extension) and place this file in the user's home directory.
User Defined Presets
The UBX Configuration Dialog includes the facility to add user-defined preset UBX configuration messages. These can be set up by adding
appropriate message descriptions and payload definitions to a file named ubxpresets
(lower case, no extension), and then placing this
file in the user's home directory. An illustrative user preset file is given below - the payload definition follows the format passed
to a pyubx2 UBXMessage constructor i.e. msgClass, msgID, payload
:
<--------- description -------->: <----------------- UBXMessage Constructor --------------->
USER CFG-MSG Add RMC to messages: 'CFG', 'CFG-MSG', b'\xf0\x04\x01\x01\x01\x00\x01\x00', SET
USER CFG-MSG Add VTG to messages: 'CFG', 'CFG-MSG', b'\xf0\x05\x01\x01\x01\x00\x01\x00', SET
License
BSD 3-Clause License ("BSD License 2.0", "Revised BSD License", "New BSD License", or "Modified BSD License")
Copyright (c) 2020, SEMU Consulting All rights reserved.
Application icons from iconmonstr ©.
Author Information
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file PyGPSClient-0.1.6.tar.gz
.
File metadata
- Download URL: PyGPSClient-0.1.6.tar.gz
- Upload date:
- Size: 375.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf0101c6b11d8be1e3af8c15a01acaa78da9cc3ebe5d4a10a7754ffa8c426a48 |
|
MD5 | 89b2d03696994c13724df9909b695798 |
|
BLAKE2b-256 | dd95cfd2d8a2b29b5bf22c8692e9b33ba8600ed66dd67292e977f8608f11171a |
File details
Details for the file PyGPSClient-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: PyGPSClient-0.1.6-py3-none-any.whl
- Upload date:
- Size: 384.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f856d855f10e85ca8885794715b5d6f8c40adcf00ca92ef25ee2c4e51780a96 |
|
MD5 | 5251429197c291f3649a7a3275cb702f |
|
BLAKE2b-256 | 64d9e839a15b82a6ec08e9c2bc8f8cea8fb4b046a6430765346b4e940c27aea1 |