Call fetch when opening coffee scale page
This commit is contained in:
@@ -170,6 +170,7 @@ function fetchdata(data, status){
|
||||
}
|
||||
}
|
||||
|
||||
$.getJSON("/coffee/cups", fetchdata);
|
||||
setInterval(function() {
|
||||
$.getJSON("/coffee/cups", fetchdata);
|
||||
}, 2000);
|
||||
|
||||
Reference in New Issue
Block a user