GPS2UDP(1)
π GPS2UDP(1) β the gpsd manual, bestie edition π
GPSD Documentation Β· GPS2UDP(1)
β¨ NAME β¨
gps2udp β feed the take from gpsd to one or more aggregation sites π«Ά
π SYNOPSIS π
gps2udp [OPTIONS] [server[:port[:device]]]
gps2udp -h
gps2udp -V
π¦ DESCRIPTION π¦
okay so, gps2udp is literally the little tool that connects to gpsd and beams the sentences it receives out to one or a whole bunch of UDP host:port destinations. that's the whole vibe. it's giving "useful for feeding AIS information from gpsd to aishub, marinetraffic, shipfinder,β¦" π
ngl the best part: gps2udp does not require root privileges, but it can run as root if you're feeling spicy. it can also run concurrently with other tools that connect to the local gpsd without causing problems. no drama, no conflicts, we love a peaceful icon π
the output is gonna be one or both of: NMEA sentences (that's the -n option) or JSON sentences (that's the -j option). either way, the output gets sent to one or many destination hosts through a UDP network socket (the -u HOST:PORT options). slay π
optionally you can hand it a server, a TCP/IP port number, and a remote device. if you skip all that, gps2udp connects to localhost on the default port (2947) and just watches all the devices opened by gpsd. defaults, periodt β¨
gps2udp may also be run as a daemon β that's the -b option, main character energy fr fr.
and here's the lowkey iconic part: gps2udp is designed to run smoothly in the background and it reconnects automatically to gpsd whenever it gets restarted. it just... comes back. resilient queen πΈ for debugging purposes, there's an option to exit gracefully after a given count of packets β that's the -c option π¦
π OPTIONS π
-?,-h,--helpβ-Printa usage message and exit. π-a,--aisβ Send only AIS messages.-b,--daemonβ Causesgps2udpto run as a daemon.-c COUNT,--count COUNTβ Exit afterCOUNTsentences are sent.-d LVL,--debug LVLβ Set debug level toLVL.LVL=0prints nothing.LVL=1prints sent packet on stdout.LVL=2prints ignored packets.-j,--jsonβ Causes JSON sentences to be output.-n,--nmeaβ Causes NMEA sentences to be output.-t,--tpvβ Only output TPV sentences. Implies--json.-u HOST:PORT,--udp HOST:PORTβ UDP destination for output sentences (up to five destinations).-v,-V,--versionβ Prints the program version, then exit.-vis deprecated December 2020.
β οΈ bestie, note the deprecation:-vis deprecated December 2020. use-Vor--versioninstead, i'm begging π
π ARGUMENTS π
by default, clients collect data from the local gpsd daemon running on localhost, using the default GPSD port 2947. the optional argument to any client may override this behavior:
[server[:port[:device]]]
for further explanation, and examples, see the ARGUMENTS section in the gps(1) man page π«Ά
π EXAMPLES π
with a running gpsd accessible on the network, this will collect data from localhost:gpsd, display them on stdout, and send a copy to test aishub in NMEA format. π¦
gps2udp -d 1 -n -u data.aishub.net:2222
this next one will collect data from a remote gpsd located on fridu.net host, will filter AIS messages, and send them to 3 destinations (aishub, marinetraffic, shipfinder) in NMEA format, while running in background mode. three destinations? multitasking queen π
gps2udp -a -n -b -u data.aishub.net:2222 -u 5.9.207.224:5321 \
-u 109.200.19.151:4001 fridu.net:2947
β RETURN VALUES β
0β on success. we love a win π1β on failure π
π SEE ALSO π
π RESOURCES π
Project web site: https://gpsd.io/
π COPYING π
This file is Copyright 2013 by the GPSD project SPDX-License-Identifier: BSD-2-clause
π§ AUTHOR π§
Fulup Ar Foll
GPSD Version 3.27.5 Β· 2025-11-04 Β· GPS2UDP(1)
okay that's the whole page bestie, go forth and UDP π β¨π¦πΈππ«Άπ₯
π¦ 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