created and tested server side water control

This commit is contained in:
Senad Uka
2016-01-24 09:12:10 +01:00
parent ff2c9f530f
commit 85d41bc69b
19 changed files with 281 additions and 83 deletions

21
app/client/log.js Normal file
View File

@@ -0,0 +1,21 @@
Template.log.helpers({
sensorDataCollection: function() {
return SensorData.find({}, {
sort: {
created_at: -1
}
});
}
});
Template.log.events({
'click clear_log': function() {
Meteor.call('clearLog');
}
});
Template.sensorData.helpers({
created_at_formatted: function() {
return moment(this.created_at).format("DD.MM.YYYY, HH:mm")
}
});