'\" t .\" Title: gpsplot .\" Author: Gary E. Miller .\" Generator: Asciidoctor 2.0.20 .\" Date: 2024-03-15 .\" Manual: GPSD Documentation .\" Source: GPSD 3.25 .\" Language: English .\" .TH "GPSPLOT" "1" "2024-03-15" "GPSD 3.25" "GPSD Documentation" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" gpsplot \- tool to dynamically dump plot data from gpsd .SH "SYNOPSIS" .sp \fBgpsplot\fP [OPTIONS] [server[:port[:device]]] .sp \fBgpsplot\fP \-h .sp \fBgpsplot\fP \-V .SH "DESCRIPTION" .sp \fBgpsplot\fP is a tool to connect to \fBgpsd\fP and dynamically plot data to the users screen. Plot types include scatterplots and stripcharts. .sp Plotting requires the Python Matplotlib module, and its many dependencies be installed on the display host. If the display host is not the \fBgpsd\fP host, then Matplotlib is not required to be on the \fBgpsd\fP host. .sp \fBgpslot\fP 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 \fBgpsd\fP without causing problems. .SH "OPTIONS" .sp \fB\-?\fP, \fB\-h\fP, \fB\-\-help\fP .RS 4 Print a usage message and exit. .RE .sp \fB\-b BACKEND\fP, \fB\-\-backend BACKEND\fP .RS 4 Set the Matplotlib interactive backend to BACKEND. .RE .sp \fB\-B\fP, \fB\-\-backends\fP .RS 4 Print available Matplotlib interactive backends, then exit. The Matplotlib backends vary wildly in how fst they run and how good they look. Try them all to see for yourself. .RE .sp \fB\-d LVL\fP, \fB\-\-debug LVL\fP .RS 4 Set debug level to LVL. .RE .sp \fB\-\-device DEVICE\fP .RS 4 The DEVICE on the \fBgpsd\fP to connect to. Defaults to all. .RE .sp \fB\-\-exit\fP .RS 4 Exit after \-\-count, \-\-file, or \-\-file completes. .RE .sp \fB\-\-fields FIELDS\fP .RS 4 The code for the fields to plot. FIELDS is one of: llh (lat/lon/altHAE) or llm (lat/lon/altMSL). .RE .sp \fB\-\-file FILE\fP .RS 4 Read JSON from FILE instead of from \fBgpsd\fP.. .RE .sp \fB\-\-host HOST\fP .RS 4 Connect to the \fBgpsd\fP on HOST (server). Defaults to localhost. .RE .sp \fB\-\-image IMAGE.EXT\fP .RS 4 Save plot as IMAGE.EXT. EXT determines image type (.jpg, .png, etc.). Which EXT are supported is installation dependent. .RE .sp \fB\-n COUNT\fP, \fB\-\-count COUNT\fP .RS 4 Stop after COUNT plot messages. 0 to disable. Default 0\*(Aq, .RE .sp \fB\-\-plottype PLOTTYPE\fP .RS 4 The type of plot to make. PLOTTYPE is one of \*(Aqscatterplot\*(Aq or \*(Aqstripchart\*(Aq. .RE .sp \fB\-p PORT\fP, \fB\-\-port PORT\fP .RS 4 Use PORT to connect to \fBgpsd\fP. Defaults to 2947. .RE .sp \fB\-V\fP, \fB\-\-version\fP .RS 4 Print the program version and exit. .RE .sp \fB\-x SECONDS\fP, \fB\-\-seconds SECONDS\fP .RS 4 Stop after SECONDS. 0 to disable. Default 0\*(Aq, .RE .SH "ARGUMENTS" .sp By default, clients collect data from the local \fBgpsd\fP daemon running on localhost, using the default GPSD port 2947. The optional argument to any client may override this behavior: \fB[server[:port[:device]]]\fP .sp For further explanation, and examples, see the \fBARGUMENTS\fP section in the \fBgps\fP(1) man page .SH "ENVIRONMENT" .sp You can set the environment variable \fBMPLBACKEND\fP to your desired Matplotlib backend. This save you from using \fB\-b BACKEND\fP every time you run \fBgpsplot\fP. .SH "EXAMPLES" .sp Generate a scatterplot of Latitude, Longitude and the Altitude above Mean Sea Level (altMSL). Stop after 60 seconds: .sp .if n .RS 4 .nf .fam C gpsplot \-\-seconds 60 \-\-fields llm .fam .fi .if n .RE .sp Generate a scatterplot of Latitude, Longitude and the Height Above Ellipsoid (altHAE). Stop after 60 fixes: .sp .if n .RS 4 .nf .fam C gpsplot \-\-count 60 \-\-plottype stripchart .fam .fi .if n .RE .sp Use the \fBWXAgg\fP backend to repeat the last experiment to see if it is faster or looks better to you. .sp .if n .RS 4 .nf .fam C export MPLBACKEND=WX gpsplot \-\-count 60 \-\-plottype stripchart .fam .fi .if n .RE .sp Generate a scatterplot locally of Latitude, Longitude and altMSL from a remote \fBgpsd\fP instance at host "example.com" and the remote device "/dev/ttyS0". Collect 60 fixes, Stop, save the plot as "save.jpg, and exit: .sp .if n .RS 4 .nf .fam C gpsplot \-\-count 60 \-\-exit \-\-fields llm \-\-image save.jpg example.com::/dev/ttyS0 .fam .fi .if n .RE .SH "RETURN VALUES" .sp \fB0\fP .RS 4 on success. .RE .sp \fB1\fP .RS 4 on failure .RE .SH "SEE ALSO" .sp \fBgpsd\fP(8), \fBgpsprof\fP(1), \fBgpsfake\fP(1). .SH "RESOURCES" .sp \fBProject web site:\fP \c .URL "https://gpsd.io/" "" "" .SH "COPYING" .sp This file is Copyright 2020 by the GPSD project .br SPDX\-License\-Identifier: BSD\-2\-clause .SH "AUTHOR" .sp Gary E. Miller