bubble/templates/index.html

44 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Bubble</title>
<link rel="stylesheet" type="text/css" media="screen" href="/static/style.css" />
<script src="/static/temperature.js"></script>
<script src="/static/mqtt.min.js"></script>
</head>
<body onload="init_temperature()">
<main>
<header>
<div class="temperature-line">
<span>Dehors:</span>
<span id="external-temp">--</span>
<span>°C</span>
</div>
<h1>Bubble Monitoring !</h1>
<div class="temperature-line">
<span>Dedans:</span>
<span id="internal-temp">--</span>
<span>°C</span>
</div>
</header>
<section>
{% for name, status in services_status.items() %}
<div class="service">
<span class="name">{{name}}</span>
{% if status == 'active' %}
<span class="status on"></span>
{% endif %}
{% if status == 'inactive' %}
<span class="status off"></span>
{% endif %}
</div>
{% endfor %}
</section>
</main>
</body>
</html>