{# CelesTrak satellite TLE. Fields from payload->data->data. #} {% set d = (event.data.get('data') or {}).get('data') or {} %} {% set orb = (d.get('_enriched') or {}).get('orbit') or {} %} {% if d.get('satellite_name') is not none %}
Satellite
{{ d.satellite_name }}
{% endif %} {% if d.get('norad_id') is not none %}
NORAD ID
{{ d.norad_id }}
{% endif %} {% if d.get('intl_designator') is not none %}
Intl designator
{{ d.intl_designator }}
{% endif %} {% if d.get('epoch') is not none %}
Epoch
{{ d.epoch }}
{% endif %} {% if orb.get('inclination_deg') is not none %}
Inclination
{{ "%.2f"|format(orb.inclination_deg) }}°
{% endif %} {% if orb.get('mean_motion_rev_per_day') is not none %}
Orbital period
{{ "%.1f"|format(1440.0 / orb.mean_motion_rev_per_day) }} min
{% endif %} {% if orb.get('eccentricity') is not none %}
Eccentricity
{{ "%.6f"|format(orb.eccentricity) }}
{% endif %}