Skip to content

X-Plane 12

This page lists all available telemetry data and commands for X-Plane 12. X-Plane telemetry is captured via the X-Plane Web API (requires X-Plane 12.1.1+).

X-Plane Setup

To enable the Web API in X-Plane:

  1. Open X-Plane 12
  2. Go to Settings > General
  3. Under Network, enable the Web API
  4. Note the port (default: 8086)

GameGlue will automatically connect once the Web API is enabled.

SDK Settings

NameValue
Game IDxplane
Scopesxplane:read xplane:write

Readable Data

Position Data

NameDescription
latLatitude (degrees)
lonLongitude (degrees)
alt_mslAltitude above mean sea level (feet)
alt_aglAltitude above ground level (feet)
on_groundAircraft is on ground (0/1)

Speed Data

NameDescription
iasIndicated airspeed (knots)
tasTrue airspeed (knots)
gsGround speed (knots)
machMach number
vviVertical velocity (ft/min)
g_loadG-force

Attitude Data

NameDescription
hdg_magMagnetic heading (degrees)
hdg_trueTrue heading (degrees)
pitchPitch angle (degrees)
rollRoll angle (degrees)
yawYaw/sideslip angle (degrees)

Engine Data

NameDescription
throttle_0Engine 1 throttle (0-1)
throttle_1Engine 2 throttle (0-1)
throttle_2Engine 3 throttle (0-1)
throttle_3Engine 4 throttle (0-1)
rpm_0Engine 1 RPM
rpm_1Engine 2 RPM
rpm_2Engine 3 RPM
rpm_3Engine 4 RPM
n1_0Engine 1 N1 percentage
n1_1Engine 2 N1 percentage
n1_2Engine 3 N1 percentage
n1_3Engine 4 N1 percentage
n2_0Engine 1 N2 percentage
n2_1Engine 2 N2 percentage
n2_2Engine 3 N2 percentage
n2_3Engine 4 N2 percentage
egt_0Engine 1 EGT (°C)
egt_1Engine 2 EGT (°C)
egt_2Engine 3 EGT (°C)
egt_3Engine 4 EGT (°C)

Fuel Data

NameDescription
fuel_total_lbsTotal fuel quantity (lbs)
ff_0Engine 1 fuel flow
ff_1Engine 2 fuel flow
ff_2Engine 3 fuel flow
ff_3Engine 4 fuel flow

Autopilot Data

NameDescription
ap_masterAutopilot master engaged (0/1)
ap_alt_holdAltitude hold engaged (0/1)
ap_hdg_holdHeading hold engaged (0/1)
ap_vs_holdVertical speed hold engaged (0/1)
ap_spd_holdSpeed hold engaged (0/1)
ap_aprApproach mode engaged (0/1)
ap_navNAV mode engaged (0/1)
fd_onFlight director active (0/1)
ap_alt_setTarget altitude setting (feet)
ap_hdg_setTarget heading setting (degrees)
ap_vs_setTarget vertical speed (ft/min)
ap_spd_setTarget speed (knots)

Flight Controls

NameDescription
flap_ratioFlap position (0-1)
spoiler_ratioSpoiler position (0-1)
gear_deployGear deployed (0/1)
park_brakeParking brake set (0/1)
brake_leftLeft brake position (0-1)
brake_rightRight brake position (0-1)

Lighting

NameDescription
land_lightsLanding lights (0/1)
taxi_lightsTaxi lights (0/1)
beaconBeacon lights (0/1)
nav_lightsNavigation lights (0/1)
strobeStrobe lights (0/1)

Environment

NameDescription
oatOutside air temperature (°C)
baro_setAltimeter setting (inHg)
wind_dirWind direction (degrees)
wind_spdWind speed (knots)

Warnings

NameDescription
stallStall warning active
overspeedOverspeed warning active

Simulation State

NameDescription
pausedSimulation is paused
replay_modeReplay mode active
time_localLocal time (seconds since midnight)
time_zuluZulu time (seconds since midnight)

Writable Commands

Use these commands with sendCommand(commandName, value) to control the simulator. Requires the xplane:write scope.

Cross-Sim Compatibility

X-Plane and MSFS use the same command names. Dashboards built for one simulator will work with the other without code changes.

Autopilot Commands

CommandDescription
autopilot_onEngage autopilot
autopilot_offDisengage autopilot
autopilot_toggleToggle autopilot
autopilot_altitude_hold_onEnable altitude hold
autopilot_altitude_hold_offDisable altitude hold
autopilot_heading_hold_onEnable heading hold
autopilot_heading_hold_offDisable heading hold
autopilot_vs_hold_onEnable vertical speed hold
autopilot_vs_hold_offDisable vertical speed hold
autopilot_nav_onEnable NAV mode
autopilot_nav_offDisable NAV mode
autopilot_approach_onEnable approach mode
autopilot_approach_offDisable approach mode
flight_director_onTurn on flight director
flight_director_offTurn off flight director
set_autopilot_altitudeSet target altitude (feet)
set_autopilot_headingSet target heading (degrees)
set_autopilot_vsSet target vertical speed (ft/min)
set_autopilot_speedSet target airspeed (knots)

Flight Control Commands

CommandDescription
gear_upRetract landing gear
gear_downExtend landing gear
gear_toggleToggle landing gear
flaps_upRetract flaps one notch
flaps_downExtend flaps one notch
flaps_fullFull flaps
flaps_retractFully retract flaps
set_flapsSet flap ratio (0-1)
spoilers_armArm spoilers
spoilers_deployDeploy spoilers
spoilers_retractRetract spoilers
spoilers_toggleToggle spoilers
parking_brake_onSet parking brake
parking_brake_offRelease parking brake
parking_brake_toggleToggle parking brake

Throttle Commands

CommandDescription
set_throttleSet all throttles (0-1)
set_throttle_0Set engine 1 throttle (0-1)
set_throttle_1Set engine 2 throttle (0-1)
set_throttle_2Set engine 3 throttle (0-1)
set_throttle_3Set engine 4 throttle (0-1)
throttle_fullThrottle to maximum
throttle_idleThrottle to idle
throttle_cutoffEngine shutdown

Lighting Commands

CommandDescription
landing_lights_onTurn on landing lights
landing_lights_offTurn off landing lights
landing_lights_toggleToggle landing lights
taxi_lights_onTurn on taxi lights
taxi_lights_offTurn off taxi lights
taxi_lights_toggleToggle taxi lights
beacon_lights_onTurn on beacon
beacon_lights_offTurn off beacon
beacon_lights_toggleToggle beacon
nav_lights_onTurn on nav lights
nav_lights_offTurn off nav lights
nav_lights_toggleToggle nav lights
strobe_lights_onTurn on strobes
strobe_lights_offTurn off strobes
strobe_lights_toggleToggle strobes

Simulation Commands

CommandDescription
pausePause simulation
unpauseResume simulation
pause_toggleToggle pause