62 lines
1.9 KiB
HTML
Raw Normal View History

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-10-17 13:37:39 +02:00
<!-- <script type="text/javascript">
2021-10-17 08:11:08 +02:00
$(function() {
$('#KameraEichen').on('click', function(e) {
e.preventDefault()
$.getJSON('/eichen',
function(data) {
2021-10-17 08:18:08 +02:00
console.log(data);
2021-10-17 08:11:08 +02:00
});
return false;
});
});
2021-10-17 13:37:39 +02:00
</script> -->
2021-03-03 15:06:33 +01:00
</head>
<body>
<h1>RPi Web Server</h1>
{% for pin in pins %}
<h2>{{ pins[pin].name }}
{% 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 }}
{% 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-10-17 13:31:53 +02:00
<div class="row">
<div class="col-md-2">
2021-10-17 13:39:16 +02:00
<a href="/eichen" class="btn btn-block btn-lg btn-default" role="button">Kamera Eichen</a>
2021-10-17 13:31:53 +02:00
</div>
</div>
<div class="row">
<div class="col-md-2">
<div>Position, Motor1: {{ pos_1 }}</div>
</div>
<div class="col-md-2">
<div>Position, Motor2: {{ pos_2 }}</div>
</div>
<div class="col-md-2">
<div>Position, Motor3: {{ pos_3 }}</div>
</div>
</div>
2021-03-03 15:06:33 +01:00
</body>
</html>