OnWorks favicon

gps - Online in the Cloud

Run gps in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command gps that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



gps, xgps, xgpsspeed, cgps, lcdgps, gegps - test clients for gpsd


xgps [-D debug-level] [-h] [-V] [-l [[d] | [m] | [s]]] [-u [[i] | [n] | [m]]] [server
[:port [:device]]]

xgpsspeed [-D debug-level] [-h] [-V] [--speedunits {[mph] | [kph] | [knots]}] [server
[:port [:device]]]

cgps [-D debug-level] [-h] [-V] [-l [[d] | [m] | [s]]] [-m] [-s] [-u [[i] | [n] | [m]]]
[server [:port [:device]]]

lcdgps [-h] [-V] [-l [[d] | [m] | [s]]] [-u [[i] | [n] | [m]]] [server [:port [:device]]]

gpxlogger [-D debug-level] [-d] [-e export-method] [-f filename] [-l] [-m minmove] [-h]
[-V] [-i track timeout] [server [:port [:device]]]

gegps [-d directory] [-i]


These are the demonstration clients shipped with gpsd. They have some common options:

The -h option causes each client to emit a summary of its options and then exit.

The -V option causes each client to dump the package version and exit.

The -l option, when present, sets the format of latitude and longitude reports. The value
'd' produces decimal degrees and is the default. The value 'm' produces degrees and
decimal minutes. The value 's' produces degrees, minutes, and decimal seconds.

xgps, cgps, and lcdgps look at variables in the environment to figure out what units they
should default to using for display — imperial, nautical, or metric. Here are the
variables and values they check:

GPSD_UNITS one of:
imperial = miles/feet
nautical = knots/feet
metric = km/meters
en_US = miles/feet
C = miles/feet
POSIX = miles/feet
[other] = km/meters
en_US = miles/feet
C = miles/feet
POSIX = miles/feet
[other] = km/meters

These preferences may be overridden by the -u option.

Where present, the -u option can be used to set the system units for display; follow the
keyword with 'i' for 'imperial' for American units (feet in altitude and error estimates,
miles per hour in speeds), 'n' for 'nautical' (feet in altitude and error estimates, knots
in speed) or 'm' for 'metric' (meters in altitude and error estimates, kilometers per hour
in speeds).

The -D option, when present, sets a debug level; it is primarily for use by GPSD
developers. It enables various progress messages to standard error.

By default, clients collect data from all compatible devices on localhost, using the
default GPSD port 2947. An optional argument to any client may specify a server to get
data from. A colon-separated suffix is taken as a port number. If there is a second
colon-separated suffix, that is taken as a specific device name to be watched. However, if
the server specification contains square brackets, the part inside them is taken as an
IPv6 address and port/device suffixes are only parsed after the trailing bracket. Possible
cases look like this:

Look at the default port of localhost, trying both IPv4 and IPv6 and watching output
from serial device 1.

Look at port 2317 on example.com, trying both IPv4 and IPv6.
Look at port 2317 at the specified IPv4 address, collecting data from attached serial
device 3.

Look at port 2317 at the specified IPv6 address, collecting data from attached serial
device 5.

Not all clients shipped with GPSD are documented here. See also the separate manual pages
for gpspipe(1) and gpsmon(1).

xgps is a simple test client for gpsd with an X interface. It displays current GPS
position/time/velocity information and (for GPSes that support the feature) the locations
of accessible satellites.

In the sky view, satellites are color-coded to indicate quality of signal; consult the
data display to the left for exact figures in dB. Square icons indicate WAAS/EGNOS
satellites, circles indicate ordinary GPS satellites. Filled icons were used in the last
fix, outline icons were not.

xgpsspeed is a speedometer that uses position information from the GPS. It accepts an -h
option and optional argument as for gps, or a -V option to dump the package version and

The default display mode resembles a car speedometer. With the option --nautical you get a
more elaborate speed and track presentation modeled after a marine navigation display.

The -speedunits option can be used to set the speed units for display; follow the keyword
with knots for nautical miles per hour, kph for kilometres per hour, or mph for miles per
hour. The default is miles per hour.

In the nautical mode only, --maxspeed sets the maximum on the speedometer.

cgps is a client resembling xgps, but without the pictorial satellite display and able to
run on a serial terminal or terminal emulator.

The -s option prevents cgps from displaying the data coming from the daemon. This display
can also be toggled with the s command.

The -m option will display your magnetic heading (as opposed to your true heading). This
is a calculated value, not a measured value, and is subject to a potential error of up to
two degrees in the areas for which the calculation is valid (currently Western Europe,
Alaska, and Lower 48 in the USA). The formulas used are those found in the Aviation
Formulary v1.43.

cgps terminates when you send it a SIGHUP or SIGINT; given default terminal settings this
will happen when you type Ctrl-C at it. It will also terminate on 'q'

A client that passes gpsd data to lcdproc, turning your car computer into a very expensive
and nearly feature-free GPS receiver. Currently assumes a 4x40 LCD and writes data
formatted to fit that size screen. Also displays 4- or 6-character Maidenhead grid square

This program collects fixes from gpsd and logs them to standard output in GPX, an XML
profile for track logging.

The output may be composed of multiple tracks. A new track is created if there's no fix
for an interval specified by the -i and defaulting to 5 seconds.

The -d option tells gpxlogger to run as a daemon in background. It requires the -f option,
which directs output to a specified logfile.

The -m option sets a minimum move distance in meters (it may include a fractional decimal
part). Motions shorter than this will not be logged.

gpxlogger can use any of the export methods that gpsd supports. For a list of these
methods, use the -l. To force the method, give the -e one of the colon-terminated method
names from the -l table.

If D-Bus support is available on the host, GPSD is configured to use it, and -e dbus is
specified, this program listens to DBUS broadcasts from gpsd via org.gpsd.fix.

With -e sockets, or if sockets is the method defaulted to, you may give a
server-port-device specification as arguments.

This program collects fixes from gpsd and feeds them to a running instance of Google Earth
for live location tracking.

The -d argument is the location of the Google Earth installation directory. If not
specified, it defaults to the current directory.

If you have the free (non-subscription) version, start by running with the -i option to
drop a clue in the Google Earth installation directory, as
'Open_in_Google_Earth_RT_GPS.kml', then open that file in Places (File > Open...). Run
gpsd in the normal way after that.

Use gps online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Alt-F provides a free and open source
    alternative firmware for the DLINK
    DNS-320/320L/321/323/325/327L and
    DNR-322L. Alt-F has Samba and NFS;
    supports ext2/3/4...
    Download Alt-F
  • 2
    Usm is a unified slackware package
    manager that handles automatic
    dependency resolution. It unifies
    various package repositories including
    slackware, slacky, p...
    Download usm
  • 3
    Chart.js is a Javascript library that
    allows designers and developers to draw
    all kinds of charts using the HTML5
    canvas element. Chart js offers a great
    array ...
    Download Chart.js
  • 4
    iReport-Designer for JasperReports
    iReport-Designer for JasperReports
    NOTE: iReport/Jaspersoft Studio Support
    Announcement: As of version 5.5.0,
    Jaspersoft Studio will be the official
    design client for JasperReports. iReport
    Download iReport-Designer for JasperReports
  • 5
    PostInstallerF will install all the
    software that Fedora Linux and others
    doesn't include by default, after
    running Fedora for the first time. Its
    easy for...
    Download PostInstallerF
  • 6
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 7
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • More »

Linux commands

  • 1
    a2crd - attempts the conversion of
    lyrics file into chordii input ...
    Run a2crd
  • 2
    a2j - Wrapper script to simulate
    a2jmidid's non-DBUS behaviour though
    a2jmidid actually being in DBUS mode ...
    Run a2j
  • 3
    coresendmsg - send a CORE API message
    to the core-daemon daemon ...
    Run coresendmsg
  • 4
    core_server - The primary server for
    SpamBayes. DESCRIPTION: Currently serves
    the web interface only. Plugging in
    listeners for various protocols is TBD.
    This ...
    Run core_server
  • 5
    galculator - a GTK 2 / GTK 3 based
    scientific calculator ...
    Run galculator
  • 6
    galleroob - browse and download web
    image galleries ...
    Run galleroob
  • More »