{% extends "layout.html" %}
{% set active_page = "live" %}
{% set help_page = ["live-measurements", _('Live Leasurements')] %}
{% block title %} - {{_('Live')}}{% endblock %}
{% block head %}
{% endblock %}
{%- block body %}
{% include 'flash_messages.html' %}
{%- if sensorDisplayOrderSorted|length == 0 -%}
No Sensors Activated. Click here to go to the sensor page. Read the Manual to become more familiar with the system and configuration options.
{%- endif -%}
{%- if sensorDisplayOrderSorted -%}
{%- for sensor_order in sensorDisplayOrderSorted -%}
{%- set collapse_container_number = loop.index -%}
{%- for each_sensor in sensor if each_sensor.id == sensor_order -%}
{%- set sensor_has_pid = [] -%}
{%- if pidDisplayOrder -%}
{%- for pid_order in pidDisplayOrder -%}
{%- for each_pid in pid if each_pid.id == pid_order and each_pid.is_activated and each_pid.sensor_id == each_sensor.id -%}
{%- do sensor_has_pid.append(1) -%}
{%- endfor -%}
{%- endfor -%}
{%- endif -%}
{%- if sensor_has_pid -%}
{%- endif -%}
{{each_sensor.name}} ({{each_sensor.id}})
{%- if each_sensor.device != 'EDGE' -%}
{{_('%(type)s Sensor, %(sec)s second interval', type=each_sensor.device, sec=each_sensor.period)}}
{%- if pidDisplayOrder -%}
{%- for pid_order in pidDisplayOrder -%}
{%- for each_pid in pid if each_pid.id == pid_order and each_pid.is_activated and each_pid.sensor_id == each_sensor.id -%}
{{each_pid.name}} ({{each_pid.id}})
Every {{each_pid.period}} seconds, apply PID to {% if each_pid.direction == 'both' -%}raise or lower{%- else -%}{{each_pid.direction}}{%- endif %} {{each_pid.measurement}} to {{each_pid.setpoint}}