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
import shmgpsd mygps = shmgpsd.SHM() for i in range(0, shmgpsd.MAXCHANNELS): ... if mygps.skyview[i].PRN != 0: ... print(f"PRN: {mygps.skyview[i].PRN:4}, "
... f"SNR: {mygps.skyview[i].ss:4}, "
... f"USED: {mygps.skyview[i].used:4}" ) ... PRN: 19, SNR: 18.0, USED: 1 PRN: 22, SNR: 28.0, USED: 1 PRN: 17, SNR: 21.0, USED: 1 PRN: 6, SNR: 31.0, USED: 1 PRN: 14, SNR: 33.0, USED: 1 PRN: 24, SNR: 17.0, USED: 1 PRN: 3, SNR: 15.0, USED: 1 PRN: 46, SNR: 29.0, USED: 0 PRN: 11, SNR: 24.0, USED: 1 PRN: 12, SNR: 20.0, USED: 0 PRN: 30, SNR: 0.0, USED: 0 print(f"Satellites visible: {mygps.satellites_visible:2}") Satellites visible: 11 print(f"Satellites used: {mygps.satellites_used:2}") Satellites used: 8
Metadata
Release files for shmgpsd 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shmgpsd-0.3.4.tar.gz | 4.5 kB | Without provenance | Details for shmgpsd-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shmgpsd-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for shmgpsd-0.3.4-py3-none-any.whl |
Total release size: 9.1 kB
Release files / shmgpsd-0.3.4.tar.gz
| Download URL | shmgpsd-0.3.4.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e550729ced13033b509ed47573bdbe662278bda0c40926b780f740ed780896e0
|
|
BLAKE2b-256 checksum How to use checksums |
d7381155d36bb51c90ee882f07e5cacd85d82a60fdf126e937db1085d3040075
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / shmgpsd-0.3.4-py3-none-any.whl
| Download URL | shmgpsd-0.3.4-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06c172e8ce61176b8ea4c0624045c1846269339bd8358fdb4bb0fd10b1237683
|
|
BLAKE2b-256 checksum How to use checksums |
57f414852a876f11c2d4c3f56a050a3fa1befee79ed1c3219ae0d6877982dcba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for shmgpsd 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.