{% extends "base.html" %} {% block title %}Pair Devices - Terra-View{% endblock %} {% block content %}

Pair Devices

Select a recorder (seismograph or SLM) and a modem to create a bidirectional pairing.

Recorder: None selected
Modem: None selected

Recorders ({{ recorders|length }})

{% for unit in recorders %}
{% if unit.device_type == 'slm' %} {% else %} {% endif %}
{{ unit.id }}
{{ unit.device_type|capitalize }} {% if not unit.deployed %}(Benched){% endif %}
{% if unit.deployed_with_modem_id %} → {{ unit.deployed_with_modem_id }} {% endif %}
{% else %}
No recorders found in roster
{% endfor %}

Modems ({{ modems|length }})

{% for unit in modems %}
{{ unit.id }}
{% if unit.ip_address %}{{ unit.ip_address }}{% endif %} {% if unit.phone_number %}{% if unit.ip_address %} · {% endif %}{{ unit.phone_number }}{% endif %} {% if not unit.ip_address and not unit.phone_number %}Modem{% endif %} {% if not unit.deployed %}(Benched){% endif %}
{% if unit.deployed_with_unit_id %} ← {{ unit.deployed_with_unit_id }} {% endif %}
{% else %}
No modems found in roster
{% endfor %}

Existing Pairings ({{ pairings|length }})

{% for pairing in pairings %}
{{ pairing.recorder_id }} {{ pairing.recorder_type }}
{{ pairing.modem_id }} {% if pairing.modem_ip %} {{ pairing.modem_ip }} {% endif %}
{% else %}
No pairings found. Select a recorder and modem above to create one.
{% endfor %}
{% endblock %}