Mercurial > code > home > repos > homeauto
comparison 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 |
comparison
equal
deleted
inserted
replaced
95:5907eeb9a630 | 96:27a685ce2e5d |
---|---|
9 refresh(); | 9 refresh(); |
10 $scope.setLed = function (value) { | 10 $scope.setLed = function (value) { |
11 $http.put("led", value).succeed(function () { | 11 $http.put("led", value).succeed(function () { |
12 refresh(); | 12 refresh(); |
13 }); | 13 }); |
14 }; | |
15 $scope.temporaryUnlock = function () { | |
16 var seconds = 3; | |
17 $http.put("strike/temporaryUnlock", {seconds: seconds}).succeed(function () { | |
18 refresh(); | |
19 setTimeout(function () { refresh(); }, (seconds + .1) * 1000); | |
20 }); | |
21 }; | |
22 $scope.beep = function () { | |
23 $http.put("speaker/beep").succeed(function () { | |
24 $scope.speakerStatus = "sent at " + new Date(); | |
25 }); | |
14 } | 26 } |
15 | |
16 } | 27 } |