2022-07-30 00:19:30 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="de">
|
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" href="../static/Styles/main.css">
|
2022-08-15 01:10:34 +02:00
|
|
|
<link rel="stylesheet" href="../static/Styles/dashboard.css">
|
2022-07-30 00:19:30 +02:00
|
|
|
<meta charset="UTF-8">
|
2022-08-15 01:10:34 +02:00
|
|
|
<title>{{ translater.getTranslation("Irrigation") }}{{ translater.getTranslation("system") }}</title>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
@media screen and (min-width: 2051px){
|
|
|
|
#content{
|
|
|
|
grid-template-rows: repeat( {{ (zones|length / 3) + 1 }} , minmax(150px, auto));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media screen and (max-width: 2050px) and (min-width: 1351px){
|
|
|
|
#content{
|
|
|
|
grid-template-rows: repeat( {{ (zones|length / 2) + 1 }} , minmax(150px, auto));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media screen and (max-width: 1350px){
|
|
|
|
#content{
|
|
|
|
grid-template-rows: repeat( {{ zones|length }} , minmax(150px, auto));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
2022-07-30 00:19:30 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{% include "header.html" %}
|
|
|
|
|
|
|
|
|
|
|
|
<main>
|
|
|
|
|
2022-08-15 01:10:34 +02:00
|
|
|
<h2>{{ translater.getTranslation("Dashboard") }}</h2>
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
{% for zone in zones %}
|
|
|
|
<div id="zone_{{ zone.number }}" class="zone">
|
|
|
|
<a href="/zones/{{ zone.number}}">
|
|
|
|
<h3>{{ zone.name }}</h3>
|
|
|
|
</a>
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
|
|
|
<span class="outer_dot">
|
|
|
|
<span class="inner_icon {{ 'dot_green' if zone.state else 'dot_red' }}"></span>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td class="property">{{ translater.getTranslation("state") }}:</td>
|
|
|
|
<td class="value">
|
|
|
|
<p class="state">{{ translater.getTranslation("switched on") if zone.state else translater.getTranslation("switched off") }}</p>
|
|
|
|
<p class="on_off" href="">{{ translater.getTranslation("turn off") if zone.state else translater.getTranslation("turn on") }}</p>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
|
|
|
<span class="outer_dot">
|
|
|
|
<p class="inner_icon">{{'A' if zone.autoMode else 'M'}}</p>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td class="property">{{ translater.getTranslation("operating mode") }}:</td>
|
|
|
|
<td class="value">{{translater.getTranslation("automatic mode") if zone.autoMode else translater.getTranslation("manual mode")}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
|
|
|
<span class="outer_dot">
|
2022-08-15 23:58:07 +02:00
|
|
|
<span class="inner_icon {{ 'dot_green' if(zone.actualHumidity >= zone.desiredHumidity) else 'dot_red' }}"></span>
|
2022-08-15 01:10:34 +02:00
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td class="property">{{ translater.getTranslation("actual humidity") }}:</td>
|
2022-08-15 23:58:07 +02:00
|
|
|
<td class="value">{{ zone.actualHumidity}}</td>
|
2022-08-15 01:10:34 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td class="property">{{ translater.getTranslation("desired humidity") }}:</td>
|
2022-08-15 23:58:07 +02:00
|
|
|
<td class="value">{{ zone.desiredHumidity }}</td>
|
2022-08-15 01:10:34 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<p class="zone_number">{{ zone.number }}</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-30 00:19:30 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</main>
|
2022-08-15 01:10:34 +02:00
|
|
|
<p><br><br></p>
|
2022-07-30 00:19:30 +02:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|