view service/laundry/index.html @ 1162:52960ea4dfa6

audiolevels now saves multiple frequency bands Ignore-this: 933a5d32f4d97ee148f15a3c6b12235e darcs-hash:4cf1710eadb9e815d3ccb1fdbae513774bcd94d1
author drewp <drewp@bigasterisk.com>
date Wed, 05 Sep 2018 06:06:25 -0700
parents 38a4769595e2
children
line wrap: on
line source

<!doctype html>
<html lang="en" ng-app>
  <head>
    <title>laundry pi</title>
    <script src="//bigasterisk.com/lib/angular/angular-1.2.0rc1.min.js"></script>
    <script src="static/gui.js"></script>
  </head>
  <body ng-controller="Ctrl">
    <h1>laundry room pi</h1>
    <div>
      <div>
        current <a href="status">/status</a>
        (as an rdf <a href="graph">graph</a>)
      </div>
      <div><button ng-click="refresh()">refresh</button></div>
      <h2>Inputs</h2>
      <div>motion: {{status.motion}}</div>
      <div>switch1: {{status.switch1}}</div>
      <div>switch2: {{status.switch2}}</div>
      <div>switch3: {{status.switch3}}</div>
      <div>doorClosed: {{status.doorClosed}}</div>
      <h2>Outputs</h2>
      <div>
        orange led: {{status.led}}
        <button ng-click="setLed('on')">on</button>
        <button ng-click="setLed('off')">off</button>
      </div>
      <div>strike: {{status.strike}} <button ng-click="temporaryUnlock()">unlock for 3 seconds</button></div>
      <div>speaker: <button ng-click="beep()">beep</button> {{speakerStatus}}</div>
    </div>
    <h2>Raw status</h2>
    <div>{{status | json}}</div>
  </body>
</html>