jsHint passing versions of BBB, scanBLE and wemo nodes.

Also fixe and in vs out issue on wemo... no way it could have been working previously..
This commit is contained in:
Dave C-J
2014-06-30 23:41:38 +01:00
parent c14364d752
commit 999874f2b5
3 changed files with 469 additions and 465 deletions

View File

@@ -16,12 +16,12 @@
module.exports = function(RED) {
"use strict";
var WeMo = new require('wemo');
var Wemo = require('wemo');
function WeMoOut(n) {
function WemoOut(n) {
RED.nodes.createNode(this,n);
this.ipaddr = n.ipaddr;
this.wemoSwitch = new WeMo(n.ipaddr);
this.wemoSwitch = new Wemo(n.ipaddr);
var node = this;
this.on("input", function(msg) {
@@ -35,9 +35,9 @@ module.exports = function(RED) {
}
});
}
RED.nodes.registerType("wemo out",WeMoOut);
RED.nodes.registerType("wemo out",WemoOut);
function WeMoIn(n) {
function WemoIn(n) {
RED.nodes.createNode(this,n);
this.ipaddr = n.ipaddr;
this.wemoSwitch = new WeMo(n.ipaddr);
@@ -58,5 +58,5 @@ module.exports = function(RED) {
clearInterval(tick);
});
}
RED.nodes.registerType("wemo in",WeMoOut);
RED.nodes.registerType("wemo in",WemoIn);
}