2021-03-03 15:06:33 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<head>
|
|
|
|
<title>RPi Web Server</title>
|
|
|
|
<!-- Latest compiled and minified CSS -->
|
2021-03-03 22:00:04 +01:00
|
|
|
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
|
2021-03-03 15:06:33 +01:00
|
|
|
<!-- Latest compiled and minified JavaScript -->
|
2021-03-03 22:04:01 +01:00
|
|
|
<script src="/static/js/jquery-3.6.0.min.js"></script>
|
2021-03-03 22:00:04 +01:00
|
|
|
<script src="/static/js/bootstrap.min.js"></script>
|
2021-03-03 15:06:33 +01:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<h1>RPi Web Server</h1>
|
|
|
|
{% for pin in pins %}
|
|
|
|
<h2>{{ pins[pin].name }}
|
2021-10-17 07:32:38 +02:00
|
|
|
{% if pins[pin].state == 0 %}
|
2021-03-03 15:06:33 +01:00
|
|
|
ist gerade <strong>an</strong></h2><div class="row"><div class="col-md-2">
|
2021-03-04 10:35:24 +01:00
|
|
|
<a href="/{{pin}}/off" class="btn btn-block btn-lg btn-default" role="button">Turn off</a></div></div>
|
2021-03-03 15:06:33 +01:00
|
|
|
{% else %}
|
|
|
|
ist gerade <strong>aus</strong></h2><div class="row"><div class="col-md-2">
|
2021-03-04 10:35:24 +01:00
|
|
|
<a href="/{{pin}}/on" class="btn btn-block btn-lg btn-primary" role="button">Turn on</a></div></div>
|
2021-03-03 15:06:33 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2021-03-03 17:35:50 +01:00
|
|
|
{% for pin in pins_in %}
|
|
|
|
<h3>{{ pins_in[pin].name }}
|
2021-10-17 07:32:38 +02:00
|
|
|
{% if pins_in[pin].state == 0 %}
|
2021-03-04 10:58:44 +01:00
|
|
|
ist gerade <strong>an</strong></h3>
|
2021-03-03 17:35:50 +01:00
|
|
|
{% else %}
|
2021-03-04 10:58:44 +01:00
|
|
|
ist gerade <strong>aus</strong></h3>
|
2021-03-03 17:35:50 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2021-03-03 15:06:33 +01:00
|
|
|
</body>
|
|
|
|
</html>
|