Add dishwasher notification

This commit is contained in:
Michael Teeuw
2014-04-21 16:51:21 +02:00
parent e901b4e7c1
commit 33d93086b8
3 changed files with 21 additions and 0 deletions

View File

@@ -47,6 +47,15 @@ jQuery(document).ready(function($) {
var compliment;
var socket = io.connect('http://rpi-development.local:8080');
socket.on('dishwasher', function (dishwasherReady) {
if (dishwasherReady) {
$('.dishwasher').fadeIn();
} else {
$('.dishwasher').fadeOut();
}
});
var weatherParams = {
'q':'Baarn,Netherlands',