default on for sensor
This commit is contained in:
@@ -214,7 +214,8 @@ reactToAlarmData = function(controller_id) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var temperatures = (reading.temperatures || []).filter(function(temperature, index) {
|
var temperatures = (reading.temperatures || []).filter(function(temperature, index) {
|
||||||
return Meteor.zoblak.shared.valid_temperature(temperature) && config.sensorsEnabled[index];
|
var is_on = (index in config.sensorsEnabled)?config.sensorsEnabled[index]: true;
|
||||||
|
return Meteor.zoblak.shared.valid_temperature(temperature) && is_on;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user