unassigned-sensors.html 1.03 KB
Newer Older
1 2 3 4 5 6 7
{% extends "bmsapp/base.html" %}

{% block pagetitle %}Unassigned Sensors{% endblock %}

{% block title %}Sensors not Assigned to a Building{% endblock %}

{% block content %}
8

9 10 11 12 13 14 15
<p>This is a list of sensors that are either:</p>

<ul>
    <li>Not entered into the Admin Sensor list, or</li>
    <li>They are entered in the list of Sensors but they are not assigned to a building.</li>
</ul>

16 17 18 19 20 21 22 23
<table class="table table-sm table-striped table-responsive mt-1">
    <thead><tr>
        <th class="text-center">Sensor ID</th>
        <th class="text-center">Last Reading</th>
        <th class="text-center">When</th>
        <th class="text-center">Sensor Name, if available</th>
    </tr></thead>
    <tbody style="background-color: white">
24
    {% for sensor in sensor_list %}
25 26 27
        <tr>
            <td>{{ sensor.id }}</td>
            <td class="text-right px-4">{{ sensor.cur_value }}</td>
28 29 30 31 32 33 34 35
            <td>{{ sensor.minutes_ago }} minutes ago</td>
            <td>{{ sensor.title }}</td>
        </tr>
    {% endfor %}
    </tbody>
</table>

{% endblock %}