NTPLOGGPS(8)
π NTPLOGGPS(8) β the ntploggps glow-up π
okay bestie, welcome to the ntploggps page, part of the NTPsec manual set. this lil cutie logs gpsd data and honestly? she's iconic for it. sit down, grab a strawberry π, and let's get you fluent.
β¨ NAME β¨
ntploggps β log gpsd data π
β¨ SYNOPSIS β¨
ntploggps [-h] [-l LOGFILE] [-o] [-w WAIT] [-v] [-V]
-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 here's the tea β β ntploggps connects to a local gpsd daemon and logs two things: the number of satellites in use and the Time Dilution of Precision (TDOP). that's it. that's the whole job. and the best part? ntploggps can run as any user β no special privileges are required, bestie, you literally don't need root. periodt. π
the default vibe is: 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
now let's break down those columns, because each one is a main character π:
- Time β this is the POSIX time of when the log line is written. β°
- Device β the GPS device the data came from. (hi
/dev/ttyS0we love you π«Ά) - TDOP β the Time Dilution of Precision as reported by the GPS. heads up: some GPS always output a static TDOP, so don't come for her if the number never moves. π
- nSat β the number of satellites in use. π°οΈβ¨
πΈ OPTIONS πΈ
here come the flags, and no cap, you're gonna want to know all of them:
-h,--helpβ Displays usage information and exits. your classic "wait what does this do again" button. π-l LOGFILE,--logfile LOGFILEβ Append log data to LOGFILE instead of stdout. π-o,--onceβ Log one line, then exit. one and done, she's a hit it and quit it kinda tool. π-v,--verboseβ Be verbose. spill the details, bestie. π£οΈ-w WAIT,--wait WAITβ Wait WAIT seconds after each log line. The default is 5 seconds. and okay important caveat: this is just the minimum wait time βgpsdmay be reporting data at a much slower interval. so don't @ her if the lines come slower than you asked. π«-V,--versionβ show program's version number and exit. π
π USAGE π
the bare minimum slay
ntploggps
This the simplest use of this program. It can be used to check the status of the local gpsd daemon. π©Ί
the background girlboss move
ntploggps -l /var/log/ntpstats/gpsd -w 60 &
This will continuously log the gpsd data in the background to the file /var/log/ntpstats/gpsd. Only log every 60 seconds. β³ β and yes, that trailing & is doing the heavy lifting, she's the whole moment. π
π AUTHORS π
Gary E. Miller β we stan. π«Ά
β EXIT STATUS β
One of the following exit values will be returned:
0(EXIT_SUCCESS) β Successful program execution. π everything ate, no crumbs.1(EXIT_FAILURE) β The operation failed or the command syntax was not valid. π it's giving flop, check your syntax.
lowkey reminder: -w WAIT sets the minimum wait, not a promise. gpsd runs on its own timeline, bestie. π§
and that's the whole page!! π this was NTPsec, dated 2026-07-24, from the NTPLOGGPS(8) manual β mwah, go log some satellites, you absolute icon. πβ¨π°οΈ
π¦ where this page comes from
- ubuntu stonking: ntpsec-ntpviz 1.2.3+dfsg1-8ubuntu3 Β· NTP
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms