2018-03-13 18:26:12 +01:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
|
2018-03-23 23:13:32 +01:00
|
|
|
{% block head %}
|
|
|
|
{{ super() }}
|
|
|
|
<meta http-equiv="refresh" content="600">
|
2018-10-06 03:09:38 +02:00
|
|
|
<meta name="google" content="notranslate">
|
2018-03-23 23:13:32 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2018-03-13 18:26:12 +01:00
|
|
|
{% block scripts %}
|
2018-03-18 17:24:22 +01:00
|
|
|
{{ super() }}
|
2018-09-08 02:28:28 +02:00
|
|
|
<script src="/static/js/jquery.min.js"></script>
|
|
|
|
<script src="/static/js/bootstrap.min.js"></script>
|
2018-03-18 17:24:22 +01:00
|
|
|
<script type="text/javascript" src="static/socket.io.slim.js"></script>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
$(document).ready(function() {
|
2018-03-18 18:21:07 +01:00
|
|
|
function request_status() {
|
|
|
|
socket.emit('request_status');
|
|
|
|
}
|
|
|
|
|
2018-03-18 17:39:01 +01:00
|
|
|
var socket = io.connect(location.protocol + '//' + document.domain + ':' + location.port);
|
2018-03-18 18:21:07 +01:00
|
|
|
var timer = setInterval(request_status, 120000);
|
2018-03-18 17:39:01 +01:00
|
|
|
|
2018-03-18 17:24:22 +01:00
|
|
|
socket.on('connect', function() {
|
|
|
|
socket.emit('connected');
|
|
|
|
});
|
|
|
|
socket.on('status', function(status) {
|
2018-03-18 17:39:01 +01:00
|
|
|
$('#led').attr('src', status.led);
|
|
|
|
$('#message').html(status.message);
|
2018-03-18 18:21:07 +01:00
|
|
|
clearInterval(timer);
|
|
|
|
timer = setInterval(request_status, 120000);
|
2018-03-18 17:24:22 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2018-03-13 18:26:12 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-09-17 19:54:33 +02:00
|
|
|
<h1 class="text-center display-4">{{ welcome }}</h1>
|
2018-03-18 16:31:01 +01:00
|
|
|
<div class="row">
|
2018-09-10 01:02:29 +02:00
|
|
|
<div class="col">
|
|
|
|
<div class="text-center">
|
2018-09-17 19:54:33 +02:00
|
|
|
<div class="h2">{{ room }}</div>
|
2018-09-10 01:02:29 +02:00
|
|
|
<img id="led" src="">
|
|
|
|
<div class="h2" id="message"></div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div>
|
|
|
|
<h4 class="text">Kontakt</h4>
|
2018-09-10 20:47:51 +02:00
|
|
|
0941 / 37801 - 740
|
2018-09-10 01:02:29 +02:00
|
|
|
<hr>
|
|
|
|
Keine App? Kein Problem! WiFi anschalten und https://lock.binary.kitchen besuchen.
|
|
|
|
</div>
|
2018-03-18 16:31:01 +01:00
|
|
|
</div>
|
2018-09-10 01:02:29 +02:00
|
|
|
<div class="col-6">
|
|
|
|
<a class="twitter-grid" data-partner="tweetdeck" href="https://twitter.com/binary_kitchen/timelines/1038927503446949888?ref_src=twsrc%5Etfw">gallery</a>
|
|
|
|
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
|
|
|
</div>
|
|
|
|
<div class="col text-center">
|
|
|
|
<img src="static/token.svg" height="300">
|
|
|
|
<img width=175 src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png'/>
|
|
|
|
<img width=175 src='https://fdroid.gitlab.io/artwork/badge/get-it-on.png' />
|
2018-03-18 16:31:01 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-13 18:26:12 +01:00
|
|
|
{{ super() }}
|
|
|
|
{% endblock %}
|