Skip to main content

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

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

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.4.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

shmgpsd-0.3.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file shmgpsd-0.3.4.tar.gz.

File metadata

  • Download URL: shmgpsd-0.3.4.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

Hashes for shmgpsd-0.3.4.tar.gz
Algorithm Hash digest
SHA256 e550729ced13033b509ed47573bdbe662278bda0c40926b780f740ed780896e0
MD5 1d4f59e2ce3f604dbea8f5cf783e66f5
BLAKE2b-256 d7381155d36bb51c90ee882f07e5cacd85d82a60fdf126e937db1085d3040075

See more details on using hashes here.

File details

Details for the file shmgpsd-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: shmgpsd-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for shmgpsd-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 06c172e8ce61176b8ea4c0624045c1846269339bd8358fdb4bb0fd10b1237683
MD5 d196d81e397f90602ed86a542ca4f274
BLAKE2b-256 57f414852a876f11c2d4c3f56a050a3fa1befee79ed1c3219ae0d6877982dcba

See more details on using hashes here.

Supported by

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