Call fetch when opening coffee scale page

This commit is contained in:
Jan Tuomi
2017-09-18 23:59:49 +03:00
parent a813b502fc
commit d4d63ac99d
+1
View File
@@ -170,6 +170,7 @@ function fetchdata(data, status){
}
}
$.getJSON("/coffee/cups", fetchdata);
setInterval(function() {
$.getJSON("/coffee/cups", fetchdata);
}, 2000);