Added humidity sensor data handling

This commit is contained in:
2015-12-29 23:25:11 +01:00
parent 89877bbe65
commit f30100e795
6 changed files with 15 additions and 16 deletions

View File

@@ -1,15 +1,15 @@
if (Meteor.isClient) {
Template.display.helpers({
temperatures: function () {
return Temperatures.find({}, {sort: {created_at: -1}})
sensorDataCollection: function () {
return SensorData.find({}, {sort: {created_at: -1}})
}
});
Template.display.events({
});
Template.temperature.helpers({
Template.sensorData.helpers({
created_at_formatted: function() {
return moment(this.created_at).format("DD.MM.YYYY, hh:mm")
}