NTPLOGGPS(1)

πŸ“¦
version 1.2.5 Β· 2 versions
, in alpine 3.24

πŸ›°οΈ NTPLOGGPS(1) β€” like, the ntploggps girlies' guide πŸ’–

okay bestie, so this is ntploggps from the NTPsec fam β€” pull up a chair, we're logging gpsd data and it's gonna be adorable ✨


🌸 NAME 🌸

ntploggps β€” literally just logs your gpsd data. that's the whole vibe. no cap. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

ntploggps [-h] [-l LOGFILE] [-o] [-w WAIT] [-v] [-V]

and here's the quick-reference menu, so you know what you're ordering:

  • -h, --help β€” show this help message and exit
  • -l LOGFILE, --logfile LOGFILE β€” append log data to LOGFILE instead of stdout
  • -o, --once β€” log one line, then exit
  • -w WAIT, --wait WAIT β€” wait WAIT seconds after each log line, default 5
  • -v, --verbose β€” be verbose
  • -V, --version β€” show program's version number and exit

✨ DESCRIPTION ✨

so ntploggps connects to a local gpsd daemon and logs two things: the number of satellites in use, and the Time Dilution of Precision (TDOP). obsessed. πŸŽ€

the best part? ntploggps can run as any user β€” no special privileges required. she's lowkey for the people. 🫢

default behavior is to write the data to stdout about once every 5 seconds. and the log file? it's giving this:

# Time       Device     TDOP     nSat
1483668619.0 /dev/ttyS0 0.820000 7
1483668624.0 /dev/ttyS0 0.820000 7
1483668629.0 /dev/ttyS0 0.820000 7

let me break down the columns for you, because iykyk:

  • Time β€” the POSIX time of when the log line is written. ⏰
  • Device β€” the GPS device the data came from.
  • TDOP β€” the Time Dilution of Precision as reported by the GPS. heads up: some GPS always output a static TDOP (iconic of them, honestly).
  • nSat β€” the number of satellites in use. πŸ›°οΈ

πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” displays usage information and exits. your little safety net. πŸ’–
  • -l LOGFILE, --logfile LOGFILE β€” append log data to LOGFILE instead of stdout
  • -o, --once β€” log one line, then exit. one and done, main character energy. πŸ’…
  • -v, --verbose β€” be verbose
  • -w WAIT, --wait WAIT β€” wait WAIT seconds after each log line. the default is 5 seconds. and listen β€” this is just the minimum wait time. gpsd may be reporting data at a much slower interval, so don't come for her if it's slower, okay? 😭
  • -V, --version β€” show program's version number and exit

🌈 USAGE 🌈

ntploggps

the simplest possible use of this program. perfect for checking the status of your local gpsd daemon β€” a little vibe check, if you will. ⭐

ntploggps -l /var/log/ntpstats/gpsd -w 60 &

this one will continuously log the gpsd data in the background to the file /var/log/ntpstats/gpsd. only logs every 60 seconds. set it and forget it, bestie. πŸ”₯


πŸ‘‘ AUTHORS πŸ‘‘

Gary E. Miller β€” the one who made this happen. we stan. 🫢


πŸ’€ EXIT STATUS πŸ’€

one of the following exit values will be returned:

  • 0 (EXIT_SUCCESS) β€” successful program execution. slay. ✨
  • 1 (EXIT_FAILURE) β€” the operation failed or the command syntax was not valid. not slay, but we recover. πŸ™ˆ

ok that's the whole page, no notes. go log some satellites, bestie πŸ’œ

NTPsec πŸ¦‹ 2026-08-02 β€” mwah, see you in the group chat πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from