gpsplot.adoc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. = gpsplot(1)
  2. :author: Gary E. Miller
  3. :date: 26 February 2021
  4. :email: <gem@rellim.com.>
  5. :keywords: gps, gpsplot, scatterplot. strip chart
  6. :manmanual: GPSD Documentation
  7. :mansource: GPSD {gpsdver}
  8. :robots: index,follow
  9. :sectlinks:
  10. :toc: macro
  11. :type: manpage
  12. :webfonts!:
  13. include::../www/inc-menu.adoc[]
  14. == NAME
  15. gpsplot - tool to dynamically dump plot data from gpsd
  16. == SYNOPSIS
  17. *gpsplot* [OPTIONS] [server[:port[:device]]]
  18. *gpsplot* -h
  19. *gpsplot* -V
  20. == DESCRIPTION
  21. *gpsplot* is a tool to connect to *gpsd* and dynamically plot data to the
  22. users screen. Plot types include scatterplots and stripcharts.
  23. Plotting requires the Python Matplotlib module, and its many
  24. dependencies be installed on the display host. If the display host is
  25. not the *gpsd* host, then Matplotlib is not required to be on the *gpsd*
  26. host.
  27. *gpslot* does not require root privileges, but can be run as root.
  28. Running under sudo will cause some loss of functionality. It can be run
  29. concurrently with other tools connecting to the local *gpsd* without
  30. causing problems.
  31. == OPTIONS
  32. *-?*, *-h*, *--help*::
  33. Print a usage message and exit.
  34. *-b BACKEND*, *--backend BACKEND*::
  35. Set the Matplotlib interactive backend to BACKEND.
  36. *-B*, *--backends*::
  37. Print available Matplotlib interactive backends, then exit.
  38. The Matplotlib backends vary wildly in how fst they run and
  39. how good they look. Try them all to see for yourself.
  40. *-d LVL*, *--debug LVL*::
  41. Set debug level to LVL.
  42. *--device DEVICE*::
  43. The DEVICE on the *gpsd* to connect to. Defaults to all.
  44. *--exit*::
  45. Exit after --count, --file, or --file completes.
  46. *--fields FIELDS*::
  47. The code for the fields to plot. FIELDS is one of: llh
  48. (lat/lon/altHAE) or llm (lat/lon/altMSL).
  49. *--file FILE*::
  50. Read JSON from FILE instead of from *gpsd*..
  51. *--host HOST*::
  52. Connect to the *gpsd* on HOST (server). Defaults to localhost.
  53. *--image IMAGE.EXT*::
  54. Save plot as IMAGE.EXT. EXT determines image type (.jpg, .png, etc.).
  55. Which EXT are supported is installation dependent.
  56. *-n COUNT*, *--count COUNT*::
  57. Stop after COUNT plot messages. 0 to disable. Default 0',
  58. *--plottype PLOTTYPE*::
  59. The type of plot to make. PLOTTYPE is one of 'scatterplot'
  60. or 'stripchart'.
  61. *-p PORT*, *--port PORT*::
  62. Use PORT to connect to *gpsd*. Defaults to 2947.
  63. *-V*, *--version*::
  64. Print the program version and exit.
  65. *-x SECONDS*, *--seconds SECONDS*::
  66. Stop after SECONDS. 0 to disable. Default 0',
  67. == ARGUMENTS
  68. By default, clients collect data from the local *gpsd* daemon running
  69. on localhost, using the default GPSD port 2947. The optional argument
  70. to any client may override this behavior: *[server[:port[:device]]]*
  71. For further explanation, and examples, see the *ARGUMENTS* section in
  72. the *gps*(1) man page
  73. == ENVIRONMENT
  74. You can set the environment varable *MPLBACKEND* to your desired
  75. Matplotlib backend. This save you from using *-b BACKEND* every time
  76. you run *gpsplot*.
  77. == EXAMPLES
  78. Generate a scatterplot of Latitude, Longitude and the Altitude above
  79. Mean Sea Level (altMSL). Stop after 60 seconds:
  80. ----
  81. gpsplot --seconds 60 --fields llm
  82. ----
  83. Generate a scatterplot of Latitude, Longitude and the Height Above
  84. Ellipsoid (altHAE). Stop after 60 fixes:
  85. ----
  86. gpsplot --count 60 --plottype stripchart
  87. ----
  88. Use the *WXAgg* backend to repeat the last experiment to see if it is
  89. faster or looks better to you.
  90. ----
  91. export MPLBACKEND=WX
  92. gpsplot --count 60 --plottype stripchart
  93. ----
  94. Generate a scatterplot locally of Latitude, Longitude and altMSL from
  95. a remote *gpsd* instance at host "example.com" and the remote device
  96. "/dev/ttyS0". Collect 60 fixes, Stop, save the plot as "save.jpg, and
  97. exit:
  98. ----
  99. gpsplot --count 60 --exit --fields llm --image save.jpg example.com::/dev/ttyS0
  100. ----
  101. == RETURN VALUES
  102. *0*:: on success.
  103. *1*:: on failure
  104. == SEE ALSO
  105. *gpsd*(8), *gpsprof*(1), *gpsfake*(1).
  106. == RESOURCES
  107. *Project web site:* {gpsdweb}
  108. == COPYING
  109. This file is Copyright 2020 by the GPSD project +
  110. SPDX-License-Identifier: BSD-2-clause