{# sat_orbits forward-orbit-track telemetry. Fields from payload->data->data. #}
{% set d = (event.data.get('data') or {}).get('data') or {} %}
{% if d.get('satellite_name') is not none %}
Satellite
{{ d.satellite_name }} (NORAD {{ d.norad_id }})
{% endif %}
{% if d.get('forward_minutes') is not none %}
Forward duration
{{ d.forward_minutes }} minutes
{% endif %}
{% if d.get('current_lat_deg') is not none and d.get('current_lon_deg') is not none %}
{%- set ns = 'N' if d.current_lat_deg >= 0 else 'S' -%}
{%- set we = 'E' if d.current_lon_deg >= 0 else 'W' -%}
Current position
{{ "%.4f"|format(d.current_lat_deg|abs) }}°{{ ns }}, {{ "%.4f"|format(d.current_lon_deg|abs) }}°{{ we }}
{% endif %}
{% if d.get('current_alt_km') is not none %}
Current altitude
{{ "%.1f"|format(d.current_alt_km) }} km
{% endif %}
{% if d.get('sample_seconds') is not none %}
Sample resolution
every {{ d.sample_seconds }} seconds
{% endif %}
{% if d.get('vertex_count') is not none %}
Vertex count
{{ d.vertex_count }}
{% endif %}
{% if d.get('tle_epoch') is not none %}