Skip to main content

Dashboard and outputs

Web dashboard​

Add --http 0.0.0.0:8080 to any command (or http = in the station file) and open http://<your-machine>:8080:

  • A live map of aircraft (ADS-B, UAT, HFDL and ACARS positions merged by ICAO address, with type silhouettes colored by altitude), ships (AIS), balloons and beacons, with trails.
  • An entity table, tabbed by type (aircraft, ships, beacons, trains, pagers, satellites). An aircraft row expands to show which modes its track comes from.
  • A message stream with per-mode filters and live rates, text search, and the full decoded JSON of any message.
  • A radio panel: per SDR, its mode, tuning, channels and whether messages are still arriving.
  • Mode pages: /airband to listen to airband channels in the browser, /sondes for the radiosonde station. For Iridium, the map adds satellites, spot beams and the beam pattern.

The basemap is OpenFreeMap (OpenStreetMap data, no key). Choose a style under [outputs.map] (dark, positron, bright, liberty, fiord), point style-url at your own, or set format = "raster".

Dashboard APIs​

EndpointWhat
GET /data/aircraft.json, /data/receiver.jsonreadsb/tar1090 schema: xng is a drop-in source for tar1090, graphs1090 and VRS
GET /data/export.geojson, .gpx, .kmlCurrent positions and tracks of everything positioned
GET /api/stateSnapshot of the station, including a cross-mode alerts list (ADS-B emergencies, AIS SART/MOB/EPIRB, STD-C, DSC and SARSAT distress)
GET /api/messages?after=<id>New messages since an id, for programs that follow xng
GET /api/radiosEach radio's health: achieved sample rate, dropped samples, USB overflows, CPU per mode, noise floor and signals heard
GET /metricsPrometheus metrics (frames, CRC, levels, radio health)

Outputs​

Every mode and every command shares the same outputs:

--feed-airframes --station-id XX-KSEA-ACARS1 # Airframes
--udp host:5550 # acarsdec-compatible JSON (ACARS Hub, acars_router, Desktop)
--json # JSON to stdout
--jsonl messages.jsonl # JSON lines file
--mqtt mqtt://user:pass@broker:1883 # MQTT, JSON to <prefix>/<mode>
--mqtt-topic xng # MQTT topic prefix
--zmq tcp://0.0.0.0:5555 # ZMQ PUB, [mode, json] frames
--metrics 0.0.0.0:9090 # Prometheus
--sbs 0.0.0.0:30003 # SBS/BaseStation (Mode S, UAT and HFDL positions)
--beast 0.0.0.0:30005 # Beast (for ADS-B partner feed clients and MLAT)
--nmea-tcp 0.0.0.0:10110 # AIS NMEA server (OpenCPN, chart plotters)
--nmea-udp host:10110 # AIS NMEA push
--asf2-grpc http://ingest:6001 # asf-2.0 over gRPC
--asf2-quic ingest:6011 # asf-2.0 over QUIC

ACARS can be filtered by label before any output: --filter-labels H1,Q0 keeps only those, --exclude-labels SQ drops them.

The local MQTT output is for your own broker (Home Assistant, Node-RED). To receive Airframes data over MQTT, see Streaming.

asf-2.0 is xng's own multiplexed protocol: one protobuf schema carrying every channel, radio and mode over a single gRPC or QUIC connection. xng ingest --grpc 0.0.0.0:6001 --quic 0.0.0.0:6011 is a reference server for collecting several stations of your own.

Running your existing decoders through xng​

Have a decoder you want to keep? xng extern wraps it, so its output gets xng's application layer (ADS-C and CPDLC decoded even from wrapped ACARS), every xng output, and Airframes feeding:

dumpvdl2 ... | xng extern --format dumpvdl2 --asf2-grpc http://ingest:6001
xng extern --format dumphfdl --feed-airframes --station-id XX-KSEA-HFDL \
-- dumphfdl --soapysdr driver=sdrplay ...

Airframes records the wrapped decoder (not xng) as the source of those messages.