-
Notifications
You must be signed in to change notification settings - Fork 1
/
mqtt.html
79 lines (76 loc) · 3.11 KB
/
mqtt.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="svg-pan-zoom.js"></script>
<script type="text/javascript" src="bootstrap.js"></script>
<script type="text/javascript" src="pathseg.js"></script>
<script type="text/javascript" src="getTransformToElement.js"></script>
<script type="text/javascript" src="mqttws31.js" ></script>
<script type="text/javascript" src="spacebus.js"></script>
<link href="bootstrap.css" rel="stylesheet">
<link href="map.css" rel="stylesheet">
<link href="bootstrap-theme.css" rel="stylesheet">
<title>Space Map</title>
</head>
<body>
<div class="modal fade" id="Info" tabindex="-1" role="dialog" aria-labelledby="InfoLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="InfoTitle">Raum-Informationen</h4>
</div>
<div id="InfoBody" class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Space Map</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Map</a></li>
<li class="active"><a href="#">Sensors</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container-fluid" style="height: 100%">
<div class="row" style="height: 100%">
<div class="col-sm-3 col-md-2 sidebar">
MQTT Sensor Information
</div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" style="height: 100%">
<p></p>
<table class="table table-bordered table-striped table-condensed">
<tr><th colspan="2">Space Status</th><td id="mqtt-space-status">Unbekannt</td></tr>
<tr><th rowspan="2">Strom Vorne</th><td>Zählerstand</td><td id="power-meter-front">Unbekannt</td></tr>
<tr><td>Verbrauch</td><td id="power-front-pwr">Unbekannt</td></tr>
<tr><th rowspan="2">Strom Hinten</th><td>Zählerstand</td><td id="power-meter-back">Unbekannt</td></tr>
<tr><td>Verbrauch</td><td id="power-back-pwr">Unbekannt</td></tr>
<tr><th>Lasercutter</th><td>Temperatur</td><td id="temp-lasercutter">Unbekannt</td></tr>
</table>
</div>
</div>
</div>
<script>
MQTTconnect();
</script>
</body>
</html>