# HG changeset patch # User drewp # Date 1377407515 25200 # Node ID 8a5312d5b5eb803e35d9ad7fff53b5d9d73e7022 # Parent d4a97803a66eb401c936f19dea2c8f6a2efbf6d3 laundry status display Ignore-this: 2152a4e585894a68a40042849d7200be darcs-hash:20130825051155-312f9-fdfec83b90a4b7eff0573f56441cebbdfe19298f diff -r d4a97803a66e -r 8a5312d5b5eb service/laundry/gui.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/laundry/gui.js Sat Aug 24 22:11:55 2013 -0700 @@ -0,0 +1,7 @@ +'use strict'; + +function Ctrl($scope, $http) { + $http.get("status").success(function (data) { + $scope.status = data; + }); +} diff -r d4a97803a66e -r 8a5312d5b5eb service/laundry/index.html --- a/service/laundry/index.html Sat Aug 24 21:48:36 2013 -0700 +++ b/service/laundry/index.html Sat Aug 24 22:11:55 2013 -0700 @@ -1,12 +1,20 @@ - - laundry pi - - - - -

Nothing here {{'yet' + '!'}}

- - + + laundry pi + + + + +

laundry room pi

+
+
motion: {{status.motion}}
+
switch1: {{status.switch1}}
+
switch2: {{status.switch2}}
+
switch3: {{status.switch3}}
+
doorClosed: {{status.doorClosed}}
+
orange led: {{status.led}}
+
+
Status: {{status | json}}
+