GPSPIPE(1) | GPSD Documentation | GPSPIPE(1) |
NAME¶
gpspipe - tool to connect to gpsd and retrieve sentences
SYNOPSIS¶
gpspipe [-?] [--count COUNT] [--daemonize] [--debug LVL] [--help] [--json] [--nmae] [--output FILE] [--pps] [--profile] [--raw] [--scaled] [--seconds SEC] [--serial DEV] [--sleep] [--spinner] [--split24] [--timefmt FMT] [--timestamp] [--usec] [--version] [--zulu] [-2] [-?] [-d] [-D LVL] [-h] [-l] [-n COUNT] [-o FILE] [-p] [-P] [-r] [-R] [-S] [-s serial-device] [-t] [-T timestamp-format] [-u] [-v] [-V] [-w] [-x seconds] [-Z] [server [:port [:device]]]
DESCRIPTION¶
gpspipe is a tool to connect to gpsd and output the received sentences to stdout. This makes the program useful as a pipe from gpsd to another program or file.
gpspipe does not require root privileges, and can be run concurrently with other tools connecting to the local gpsd without causing problems.
The output will consist of one or both of the raw NMEA or native gpsd sentences. Each line can be optionally time stamped. There is also an option to exit gracefully after a given count of packets.
Optionally a server, TCP/IP port number and remote device can be given. If omitted, gpspipe connects to localhost on the default port (2947) and watches all devices opened by gpsd.
gpspipe may be run as a daemon, but requires the -o, --output flag for writing the output to a file.
OPTIONS¶
-?, -h, --help
-2, --split24
-d, --daemonize
-d LVL, --debug LVL
-l, --sleep
-n COUNT, --count COUNT
-o FILE, --output FILE
-p, --profile
-P, --pps
-r, --nmea
-R, --raw
-s DEV, --serial DEV
-S, --scaled
-t, --timestamp
-T FMT, --timefmt FMT
-u, --usec
-v, --spinner
-V, --version
-w, --json
-x SEC, --seconds SEC
-z, --zulu
At least one of -R, -r or -w must be specified.
You must use -o if you use -d.
EXAMPLES¶
When gpsd is running, gpspipe -r -n 100 will send one hundred raw NMEA sentences to standard output, then exit.
When gpsd is running, gpspipe -x 5 -w|sed -n '/TPV/{p;q}' will wait at most 5 seconds for a TPV message, print it to stdout, then exit.
SEE ALSO¶
gpsd(8), gps(1), libgps(3), libgpsmm(3), gpsprof(1), gpsfake(1), gpsctl(1), gpscat(1). gpsmon(1).
AUTHOR¶
Gary E. Miller <gem@rellim.com>.
5 December 2020 | The GPSD Project |