Mercurial > code > home > repos > homeauto
diff service/laundry/static/gui.js @ 96:27a685ce2e5d
more laundry web support
Ignore-this: c7313465fbd93fa902b909f9128c2ad
author | drewp@bigasterisk.com |
---|---|
date | Sat, 31 Aug 2013 10:33:50 -0700 |
parents | 5907eeb9a630 |
children | 3c583603f261 |
line wrap: on
line diff
--- a/service/laundry/static/gui.js Mon Aug 26 22:11:29 2013 -0700 +++ b/service/laundry/static/gui.js Sat Aug 31 10:33:50 2013 -0700 @@ -11,6 +11,17 @@ $http.put("led", value).succeed(function () { refresh(); }); + }; + $scope.temporaryUnlock = function () { + var seconds = 3; + $http.put("strike/temporaryUnlock", {seconds: seconds}).succeed(function () { + refresh(); + setTimeout(function () { refresh(); }, (seconds + .1) * 1000); + }); + }; + $scope.beep = function () { + $http.put("speaker/beep").succeed(function () { + $scope.speakerStatus = "sent at " + new Date(); + }); } - }