{% extends "base.html" %} {% block title %}Aircraft {{ hex }} - ADS-B Anomaly Detection{% endblock %} {% block content %}
Back to Dashboard

Aircraft {{ hex }}

{% match session %} {% when Some with (s) %} {% match s.flight %} {% when Some with (flight) %} FlightAware ({{ flight }}) {% when None %} FlightAware ({{ hex }}) {% endmatch %} {% when None %} FlightAware ({{ hex }}) {% endmatch %} {% if let Some(tail) = tail_number %} Registration {% endif %} ADS-B Exchange
{% match session %} {% when Some with (s) %}
Flight: {% match s.flight %} {% when Some with (flight) %}{{ flight }} {% when None %}Unknown {% endmatch %}
Messages: {{ s.message_count }}

Aircraft Data

Position
{% if s.has_position %}
Latitude:
{% if let Some(lat) = s.lat %}{{ lat }}°{% else %}—{% endif %}
Longitude:
{% if let Some(lon) = s.lon %}{{ lon }}°{% else %}—{% endif %}
Position Available {% else %} No Position Data {% endif %}
Altitude
{% if s.has_altitude %}
{% if let Some(alt) = s.altitude %}{{ alt }} ft{% else %}—{% endif %}
feet above sea level {% else %} No altitude data {% endif %}
Ground Speed
{% if let Some(speed) = s.speed %}{{ speed }} kt{% else %}—{% endif %}
{% match s.speed_mph %} {% when Some with (mph) %} {% match s.speed_kmh %} {% when Some with (kmh) %}
{{ mph }} mph / {{ kmh }} km/h
{% when None %} knots {% endmatch %} {% when None %} knots {% endmatch %}
{% if s.has_position %}
Distance from Antenna
Calculating...
from ADS-B receiver
{% endif %}
Capabilities
{% if s.has_position %} Position {% endif %} {% if s.has_altitude %} Altitude {% endif %} {% if s.has_callsign %} Callsign {% endif %}

Aircraft Location

{% when None %}
No session data found for this aircraft.
{% endmatch %} {% if historical_sessions.len() > 0 %}

Historical Sessions

{% for session in historical_sessions %} {% endfor %}
Flight First Seen Last Seen Duration Messages
{% match session.flight %} {% when Some with (flight) %}{{ flight }} {% when None %}— {% endmatch %} {{ session.first_seen_ago }} {{ session.last_seen_ago }} {% if session.duration_minutes > 60 %} {{ session.duration_minutes / 60 }}h {{ session.duration_minutes % 60 }}m {% else %} {{ session.duration_minutes }}m {% endif %} {{ session.message_count }}
{% endif %}

Recent Observations

{% if observations.len() > 0 %}
{% for obs in observations %} {% endfor %}
Time Flight Data Quality
{{ obs.time_ago }} {% match obs.flight %} {% when Some with (flight) %}{{ flight }} {% when None %}— {% endmatch %} Received
{% else %}
📡
No observations found
This aircraft hasn't transmitted any messages recently.
{% endif %}
{% endblock %}