added back watering route and hopefully fixed bug with graph

This commit is contained in:
Senad Uka
2017-05-24 18:45:37 +02:00
parent 81652c8c64
commit 947a9c6a43
4 changed files with 12 additions and 8 deletions

View File

@@ -1,5 +1,7 @@
Tracker.autorun(function() {
var id = Session.get('controller_id');
Session.set("orientation", new Date());
Session.set("resize", new Date());
if (id) {
Meteor.subscribe("sensor_data", id);
Meteor.subscribe("controller_state", id);
@@ -9,6 +11,6 @@ Tracker.autorun(function() {
Session.set("orientation", new Date());
});
window.addEventListener('resize', function(){
Session.set("resized", new Date());
Session.set("resize", new Date());
});
});