table of contents
GPSPLOT(1) | GPSD Documentation | GPSPLOT(1) |
NAME¶
gpsplot - tool to dynamically dump plot data from gpsd
SYNOPSIS¶
gpsplot [OPTIONS] [server[:port[:device]]]
gpsplot -h
gpsplot -V
DESCRIPTION¶
gpsplot is a tool to connect to gpsd and dynamically plot data to the users screen. Plot types include scatterplots and stripcharts.
Plotting requires the Python Matplotlib module, and its many dependencies be installed on the display host. If the display host is not the gpsd host, then Matplotlib is not required to be on the gpsd host.
gpslot does not require root privileges, but can be run as root. Running under sudo will cause some loss of functionality. It can be run concurrently with other tools connecting to the local gpsd without causing problems.
OPTIONS¶
-?, -h, --help
-b BACKEND, --backend BACKEND
-B, --backends
-d LVL, --debug LVL
--device DEVICE
--exit
--fields FIELDS
--file FILE
--host HOST
--image IMAGE.EXT
-n COUNT, --count COUNT
--plottype PLOTTYPE
-p PORT, --port PORT
-V, --version
-x SECONDS, --seconds SECONDS
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
ENVIRONMENT¶
You can set the environment variable MPLBACKEND to your desired Matplotlib backend. This save you from using -b BACKEND every time you run gpsplot.
EXAMPLES¶
Generate a scatterplot of Latitude, Longitude and the Altitude above Mean Sea Level (altMSL). Stop after 60 seconds:
gpsplot --seconds 60 --fields llm
Generate a scatterplot of Latitude, Longitude and the Height Above Ellipsoid (altHAE). Stop after 60 fixes:
gpsplot --count 60 --plottype stripchart
Use the WXAgg backend to repeat the last experiment to see if it is faster or looks better to you.
export MPLBACKEND=WX gpsplot --count 60 --plottype stripchart
Generate a scatterplot locally of Latitude, Longitude and altMSL from a remote gpsd instance at host "example.com" and the remote device "/dev/ttyS0". Collect 60 fixes, Stop, save the plot as "save.jpg, and exit:
gpsplot --count 60 --exit --fields llm --image save.jpg example.com::/dev/ttyS0
RETURN VALUES¶
0
1
SEE ALSO¶
RESOURCES¶
Project web site: <https://gpsd.io/>
COPYING¶
This file is Copyright 2020 by the GPSD project
SPDX-License-Identifier: BSD-2-clause
AUTHOR¶
Gary E. Miller
2024-10-28 | GPSD 3.25 |