Mercurial > code > home > repos > homeauto
annotate service/laundry/index.html @ 462:7ec5945752b7
some old Measurement and Locator edits
Ignore-this: 188ecdf63f49b7a58f99a5961c6c23a6
author | drewp@bigasterisk.com |
---|---|
date | Sat, 20 Apr 2019 23:35:46 -0700 |
parents | d379351d398d |
children |
rev | line source |
---|---|
92 | 1 <!doctype html> |
2 <html lang="en" ng-app> | |
93 | 3 <head> |
4 <title>laundry pi</title> | |
132
d379351d398d
serve 3rdparty js from bigasterisk.com/lib
drewp@bigasterisk.com
parents:
96
diff
changeset
|
5 <script src="//bigasterisk.com/lib/angular/angular-1.2.0rc1.min.js"></script> |
94 | 6 <script src="static/gui.js"></script> |
93 | 7 </head> |
8 <body ng-controller="Ctrl"> | |
9 <h1>laundry room pi</h1> | |
10 <div> | |
95 | 11 <div> |
12 current <a href="status">/status</a> | |
13 (as an rdf <a href="graph">graph</a>) | |
14 </div> | |
96 | 15 <div><button ng-click="refresh()">refresh</button></div> |
16 <h2>Inputs</h2> | |
93 | 17 <div>motion: {{status.motion}}</div> |
18 <div>switch1: {{status.switch1}}</div> | |
19 <div>switch2: {{status.switch2}}</div> | |
20 <div>switch3: {{status.switch3}}</div> | |
21 <div>doorClosed: {{status.doorClosed}}</div> | |
96 | 22 <h2>Outputs</h2> |
95 | 23 <div> |
24 orange led: {{status.led}} | |
25 <button ng-click="setLed('on')">on</button> | |
26 <button ng-click="setLed('off')">off</button> | |
27 </div> | |
96 | 28 <div>strike: {{status.strike}} <button ng-click="temporaryUnlock()">unlock for 3 seconds</button></div> |
29 <div>speaker: <button ng-click="beep()">beep</button> {{speakerStatus}}</div> | |
93 | 30 </div> |
96 | 31 <h2>Raw status</h2> |
32 <div>{{status | json}}</div> | |
93 | 33 </body> |
92 | 34 </html> |