add tabs to prepare measurement values
This commit is contained in:
parent
c384436562
commit
b7c31e0e14
@ -9,7 +9,7 @@ from twisted.web.static import File
|
|||||||
import paho.mqtt.client as mqtt
|
import paho.mqtt.client as mqtt
|
||||||
import json
|
import json
|
||||||
|
|
||||||
logfile = '/tmp/laundry.log'
|
logfile = '/opt/logs/laundry.log'
|
||||||
|
|
||||||
switchMapping = {
|
switchMapping = {
|
||||||
'oven': { 'index': 1, 'label': 'Herd' },
|
'oven': { 'index': 1, 'label': 'Herd' },
|
||||||
@ -121,7 +121,7 @@ root.putChild("switchCommand", SwitchCommand())
|
|||||||
root.putChild("switchStatus", SwitchStatus())
|
root.putChild("switchStatus", SwitchStatus())
|
||||||
root.putChild("switchMapping", SwitchMapping())
|
root.putChild("switchMapping", SwitchMapping())
|
||||||
|
|
||||||
factory = Site(root, logPath='laundryServer.log')
|
factory = Site(root, logPath='/opt/logs/laundryServer.log')
|
||||||
|
|
||||||
reactor.listenTCP(8080, factory)
|
reactor.listenTCP(8080, factory)
|
||||||
reactor.run()
|
reactor.run()
|
||||||
|
23
index.html
23
index.html
@ -74,13 +74,22 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div data-role="page" id="mainpage">
|
<div data-role="page" id="mainpage">
|
||||||
<div data-role="header">
|
<div id="tabs" data-role="tabs">
|
||||||
<h1>RelayBox</h1>
|
<div data-role="navbar">
|
||||||
</div>
|
<ul>
|
||||||
<div data-role="main" class="ui-content">
|
<li><a class="ui-btn-active" href="#one" data-ajax="false">Relaybox</a></li>
|
||||||
<ul id="switchlist" data-role="listview" data-inset="true" data-count-theme="b">
|
<li><a href="#two" data-ajax="false">Measurements</a></li>
|
||||||
<li><a class="switchlink" id="itemEmpty0" href="#dialog?switch=0"><span id="labelEmpty0">Vorlage</span> <span id="statusEmpty0" class="ui-li-count">on</span></a></li>
|
</ul>
|
||||||
</ul>
|
</div>
|
||||||
|
|
||||||
|
<div class="ui-body-d ui-content" id="one">
|
||||||
|
<ul id="switchlist" data-role="listview" data-inset="true" data-count-theme="b">
|
||||||
|
<li><a class="switchlink" id="itemEmpty0" href="#dialog?switch=0"><span id="labelEmpty0">Vorlage</span> <span id="statusEmpty0" class="ui-li-count">on</span></a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="ui-body-d ui-content" id="two">
|
||||||
|
bla
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user