GPSD shared memory tool
Project description
ShmGpsD: Shared Memory GPSD Reader
ShmGpsD reads GPS data from shared memory-enabled GPSD instances, designed for seamless integration with InfluxDB via Telegraf exec inputs (JSON). Ideal for real-time updates and effortless communication with GPSD.
Key Features:
- Read GPS data efficiently from shared memory
- Perfect for integrating GPS data into InfluxDB via Telegraf
- Streamlined solution for applications requiring precise GPS information
Elevate your applications with ShmGpsD – simplicity meets accuracy.
Compiling gpsd: Optional (Only if OS distro lacks shared memory support)
git clone git://git.savannah.nongnu.org/gpsd.git # or https://gitlab.com/gpsd/gpsd.git
git checkout release-3.18
scons timeservice=yes magic_hat=yes nmea0183=yes ublox=yes mtk3301=yes fixed_port_speed=115200 fixed_stop_bits=1 shm_export=yes shared=yes
sudo scons install
Usage
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import shmgpsd
>>> mygps = shmgpsd.SHM()
>>> mygps.satellites_visible
12
>>> mygps.satellites_used
9
>>> for i in range(0, shmgpsd.MAXCHANNELS):
... if mygps.skyview[i].PRN != 0:
... print("PRN: {0}, SNR: {1}, USED: {2}".format(mygps.skyview[i].PRN,
... mygps.skyview[i].ss,
... mygps.skyview[i].used))
...
PRN: 16, SNR: 49.0, USED: True
PRN: 26, SNR: 34.0, USED: True
PRN: 23, SNR: 27.0, USED: True
PRN: 3, SNR: 47.0, USED: True
PRN: 31, SNR: 38.0, USED: True
PRN: 22, SNR: 49.0, USED: True
PRN: 48, SNR: 42.0, USED: False
PRN: 9, SNR: 40.0, USED: True
PRN: 14, SNR: 34.0, USED: True
PRN: 27, SNR: 39.0, USED: True
PRN: 29, SNR: 35.0, USED: True
PRN: 7, SNR: 27.0, USED: True
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
shmgpsd-0.3.3.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file shmgpsd-0.3.3.tar.gz
.
File metadata
- Download URL: shmgpsd-0.3.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5700b2713ff7f8d7650db3c5293d884de3a0707c5bd14e9327461232bb90542b |
|
MD5 | f927ba50186c6bb21f77182c85984132 |
|
BLAKE2b-256 | 091548771ac86bbeb661995dc2cc6b0e46685f96d485fbb6f3a16f08917dbeb9 |
File details
Details for the file shmgpsd-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: shmgpsd-0.3.3-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b97c458202ffbe2f314b5376b0a1ec0b22e6fa7de20f96d8ce06202c2b520431 |
|
MD5 | 580f0d835aa2e7f2d8314ecea2d5e643 |
|
BLAKE2b-256 | 2ff735b284618e18728d7f34613ac88ce7fe98a704d6948666299c4db04dd3f3 |