GPSLOGNTP(1)
π GPSLOGNTP π
okay bestie, welcome to the gpslogntp manual page β yes it's from the GPSD Documentation, and yes it's lowkey iconic. sit down, grab a boba, and let's get into it π§β¨
β¨ NAME β¨
gpslogntp β log gpsd data for ntpviz
π¦ SYNOPSIS π¦
gpslogntp [-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 between log lines, default 5
-v, --verbose be verbose
-V, --version show program's version number and exit
πΈ DESCRIPTION πΈ
so what does gpslogntp actually do? it connects to a local gpsd daemon and logs the number of satellites in use plus the Time Dilution of Precision (TDOP). and the best part? gpslogntp can run as any user, no special privileges are required. no sudo, no drama, no "permission denied" meltdown π
. this log is intended to be used by ntpviz.
the default vibe is: write the data to stdout about once every 5 seconds. the log file looks like 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's break down those columns, because they're all doing something:
- 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 π
- nSat β the number of satellites in use. π°οΈ
formerly known as ntploggps and formerly part of NTPsec. glow-up era fr fr.
Note: Many GNSS receivers always report TDOP as "1.0". not a bug, just the way they are π«Ά
π OPTIONS π
-h,--helpβ Displays usage information and exits. the classic escape hatch πͺ-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. tell me everything bestie π£οΈ-w WAIT,--wait WAITβ Wait WAIT seconds after each log line. The default is 5 seconds. This is just the minimum wait time.gpsdmay be reporting data at a much slower interval. so don't come for the timing, it's doing its best π-V,--versionβ show program's version number and exit
π USAGE π
gpslogntp
this the simplest use of this program. It can be used to check the status of the local gpsd daemon. quick little vibe check, no notes β¨
gpslogntp -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. set it and forget it, the background queen π
π AUTHORS π
Gary E. Miller
β EXIT STATUS β
One of the following exit values will be returned:
0(EXIT_SUCCESS) β Successful program execution. we ate and left no crumbs π½οΈ1(EXIT_FAILURE) β The operation failed or the command syntax was not valid. π
π₯ SEE ALSO π₯
gpsd(8), gps(1), ntpviz(1), ntpd(8).
iykyk π
π§ RESOURCES π§
Project web site: https://gpsd.io/
π COPYING π
This file is Copyright by the GPSD project
This file is Copyright by the NTPSec project
SPDX-License-Identifier: BSD-2-clause
π«Ά AUTHOR π«Ά
Gary E. Miller
and that's the whole page bestie!! π this was GPSD, Version 3.27.5, dated 2025-11-04, and honestly? she served. periodt π β¨πΈ
π¦ where this page comes from
- arch rolling: gpsd 3.27.5-1 Β· BSD
- fedora 44: gpsd-clients 1:3.27.5-3.fc44 Β· BSD-2-Clause
- fedora 44: gpsd-clients 1:3.27.5-5.fc44 Β· BSD-2-Clause
- nixos 26.05: gpsd 3.27.5
- nixpkgs unstable: gpsd 3.27.5
- opensuse-leap 16.0: gpsd-clients 3.27.5-160000.1.1 Β· BSD-3-Clause
- opensuse-leap 16.0: gpsd-clients 3.27.5-160000.1.1 Β· BSD-3-Clause
- opensuse-leap 16.0: gpsd-clients 3.27.5-160000.1.1 Β· BSD-3-Clause
- opensuse-leap 16.0: gpsd-clients 3.27.5-160000.1.1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms