view 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
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>