xgps.adoc 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. = xgps(1)
  2. Remco Treffcorn; Derrick Brashear; Russ Nelson; Eric S. Raymond
  3. :date: 25 February 2021
  4. :keywords: gps, gpsd, xgps
  5. :manmanual: GPSD Documentation
  6. :mansource: GPSD, Version {gpsdver}
  7. :robots: index,follow
  8. :sectlinks:
  9. :toc: macro
  10. :type: manpage
  11. :webfonts!:
  12. include::../www/inc-menu.adoc[]
  13. == NAME
  14. xgps - X client for gpsd
  15. == SYNOPSIS
  16. *xgps* [OPTIONS] [service[:port[:device]]]
  17. *xgps* -h
  18. *xgps* -V
  19. == DESCRIPTION
  20. *xgps* is a simple sample client for gpsd with an X interface. It
  21. displays current GNSS position/time/velocity information and (for
  22. GNSS receivers that support the feature) the locations of accessible
  23. satellites.
  24. In the sky view, satellites are color-coded to indicate quality of
  25. signal, consult the data display to the left for exact figures in dB.
  26. Diamond-shaped icons indicate GLONASS satellites, squares are used for
  27. SBAS (e.g. WAAS, EGNOS), circles indicate GPS, and down-, up-, right-,
  28. and left-pointing triangles, respectively, indicate Galileo, BeiDou,
  29. QZSS, and other systems' satellites (e.g. IMES, IRNSS, as well as
  30. unknown systems). Filled icons were used in the current fix, outline
  31. icons were not. Hovering over a symbol with the mouse pointer will
  32. temporarily display a small popup window with the satellite details from
  33. the Satellite List pane.
  34. *xgps* will run fine as a normal user, and fine as root. Running *xgps*
  35. under *sudo* will cause some loss of functionality.
  36. == OPTIONS
  37. *-?*, *-h*, *--help*::
  38. Causes the client to emit a summary of its options and then exit.
  39. *-device DEVICE*::
  40. The device on the host to connect to. The default is empty (any).
  41. *-D LVL*, *--debug LVL*::
  42. Sets the debug level, it is primarily for use by GPSD developers. It
  43. enables various progress messages to standard error.
  44. *--host HOST*::
  45. The host (server) to connect to. The default is localhost.
  46. *-l FMT*, *--llfmt FMT*::
  47. Set the format of latitude and longitude reports. The value 'd'
  48. produces decimal degrees and is the default. The value 'm' produces
  49. degrees and decimal minutes. The value 's' produces degrees, minutes,
  50. and decimal seconds.
  51. *-p PORT*, *--port PORT*::
  52. The port to connect to. The default is 2947.
  53. *-r DEG*, *--rotate DEG*::
  54. Accepts an argument in degrees, to rotate the skyview
  55. counterclockwise.
  56. *-V*, *--version*::
  57. This option causes each client to dump the package version and exit.
  58. == ARGUMENTS
  59. By default, clients collect data from the local *gpsd* daemon running
  60. on localhost, using the default GPSD port 2947. The optional argument
  61. to any client may override this behavior: *[server[:port[:device]]]*
  62. For further explanation, and examples, see the *ARGUMENTS* section in
  63. the *gps*(1) man page
  64. == ENVIRONMENT
  65. The *XGPSOPTS>* environment variable may be set to pass commonly used
  66. command line options to *xgps*. This is often used to set the *-u*
  67. option for locale specific units. *XGPSOPTS* is processed before the CLI
  68. options.
  69. *xgps* also looks at other variables in the environment to figure out
  70. the units for display -- imperial, nautical, or metric. Here are the
  71. variables and values checked:
  72. ----
  73. GPSD_UNITS one of:
  74. i = miles/feet
  75. imperial = miles/feet
  76. n = knots/feet
  77. nautical = knots/feet
  78. m = km/meters
  79. metric = km/meters
  80. LC_MEASUREMENT
  81. en_US = miles/feet
  82. C = miles/feet
  83. POSIX = miles/feet
  84. [other] = km/meters
  85. LANG
  86. en_US = miles/feet
  87. C = miles/feet
  88. POSIX = miles/feet
  89. [other] = km/meters
  90. ----
  91. These preferences may be overridden by the *-u*, or *--units* option.
  92. The *-u* option can be used to set the system units for display;
  93. follow the keyword with 'i' for 'imperial' for American units
  94. (International Feet in altitude and error estimates, miles per hour in
  95. speeds), 'n' for 'nautical' (feet in altitude and error estimates, knots
  96. in speed) or 'm' for 'metric' (meters in altitude and error estimates,
  97. kilometers per hour in speeds).
  98. Note: The USA Survey Foot is not supported.
  99. The environment variable *GPSD_UNITS* is checked if no unit system is
  100. specified on the command line or in *XPGSOPTS* it may be set to 'i'.
  101. 'imperial', 'm', 'metric', or 'n', 'nautical'.
  102. *LC_MEASUREMENT* and then *LANG* are checked if no unit system has
  103. been specified on the command line, in *XPGSOPTS* or in
  104. *GPSD_UNITS*. If the value is 'C', 'POSIX', or begins with 'en_US' the
  105. unit system is set to imperial. The default if no system has been
  106. selected defaults to metric.
  107. == RETURN VALUES
  108. *0*:: on success.
  109. *1*:: on failure
  110. == SEE ALSO
  111. *gpsd*(8), *gps*(1), *xgpsspeed*(1)
  112. == RESOURCES
  113. *Project web site:* {gpsdweb}
  114. == COPYING
  115. This file is Copyright 2013 by the GPSD project +
  116. SPDX-License-Identifier: BSD-2-clause