{% extends 'navlets/base.html' %} {% load sensor %} {% block navlet-content %} {% if netbox %}

{{ netbox }}

{# IO display #}
{# Input node #}
Input
{% for input_voltage in input_voltages %}
L{{ forloop.counter }}: {{ input_voltage.unit_of_measurement }}
{% endfor %}
{# Vertical line #}
{# Output node #}
Output
{% for output_voltage, output_power in output %}
L{{ forloop.counter }}: {{ output_voltage.unit_of_measurement }} {% if output_power %} {{ output_power.unit_of_measurement }} {% endif %}
{% endfor %}
{# Wrapper #}
{# Battery node #}
Battery  
{% for temp in temperatures %}
Temp ({{ temp.unit_of_measurement }}):
{% endfor %} {% for battery_time in battery_times %}
Time ({{ battery_time.unit_of_measurement }}):
{% endfor %} {% for capacity in battery_capacity %}
Capacity: %
{% endfor %}
{# .io-display #} Last update: {% else %}
Edit the widget to add UPS
{% endif %} {% endblock %}