This commit is contained in:
Martin Donnelly 2016-11-13 22:43:47 +00:00
parent a8b3f4da6c
commit cd05021a30

View File

@ -104,6 +104,7 @@ var mqttClient = function () {
this.livingRoom.temp = parseFloat(json.temp); this.livingRoom.temp = parseFloat(json.temp);
if (this.livingRoom.temp >= 23) { if (this.livingRoom.temp >= 23) {
console.log('Max temp reached, turn off' );
busEmitter.emit('send', 'FanOff'); busEmitter.emit('send', 'FanOff');
} }
var d = new Date(); var d = new Date();