{% for section in sections %} {% for key, meta in section["fields"].items() %} {% if key == "ocxo" %} {% set field_name = section["name"] + '__' + key %} {% set value = config.get(section["name"], key) %} {% else %} {% set field_name = section["name"] + '__' + key %} {% set value = config.get(section["name"], key) %} {% end %} {% end %} {% end %}

{{ section["label"] }}

{{ meta["label"] }} {{ value }}
{{ meta["label"] }} {% raw value %}
{% if len(gsat_ids) > 0 %}

  GPS Satellites

{% for sat in gsat_ids %} {% end %} {% for snr in gsat_snrs %} {% end %}
Satellite ID{{ sat }}
Satellite SNR{{ snr }}
{% end %} {% if len(lsat_ids) > 0 %}

  Glonass Satellites

{% for sat in lsat_ids %} {% end %} {% for snr in lsat_snrs %} {% end %}
Satellite ID{{ sat }}
Satellite SNR{{ snr }}
{% end %} {% if len(asat_ids) > 0 %}

  Galileo Satellites

{% for sat in asat_ids %} {% end %} {% for snr in asat_snrs %} {% end %}
Satellite ID{{ sat }}
Satellite SNR{{ snr }}
{% end %} {% if len(bsat_ids) > 0 %}

  BeiDou Satellites

{% for sat in bsat_ids %} {% end %} {% for snr in bsat_snrs %} {% end %}
Satellite ID{{ sat }}
Satellite SNR{{ snr }}
{% end %}

  NTP Peers

{% for p in peers %} {% end %} {% if not peers %} {% end %}
Peer IP Mode State Stratum Reach Poll Last Update (sec) Offset Error
{{ p['peer_ip'] }} {{ p['M'] }} {{ p['S'] }} {{ p['stratum'] }} {{ p['reach'] }} {{ p['poll'] }} {{ p['last_time'] }} {{ p['offset'] }} {{ p['error'] }}
No peers to display

  PTP Clients

{% for p in ptp_clients %} {% end %} {% if not ptp_clients %} {% end %}
Client IP MAC Address Lease (Sec) Announce Interval Sync Interval Interface
{{ p['client_ip'] }} {{ p['mac'] }} {{ p['lease'] }} {{ p['announce'] }} {{ p['sync'] }} {{ p['interface'] }}
No PTP Clients to display