mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-12-26 23:16:47 +01:00
Re-lint a load of nodes
This commit is contained in:
@@ -100,7 +100,8 @@ module.exports = function(RED) {
|
||||
},node.uuid);
|
||||
}
|
||||
},15000);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
console.log("reconfig",node.uuid);
|
||||
enable(node);
|
||||
}
|
||||
@@ -114,46 +115,54 @@ module.exports = function(RED) {
|
||||
var enable = function(node) {
|
||||
if (node.temperature) {
|
||||
node.stag.notifyIrTemperature(function() {});
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
node.stag.unnotifyIrTemperature(function() {});
|
||||
}
|
||||
if (node.pressure) {
|
||||
node.stag.notifyBarometricPressure(function() {});
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
node.stag.unnotifyBarometricPressure(function() {});
|
||||
}
|
||||
if (node.humidity) {
|
||||
node.stag.notifyHumidity(function() {});
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
node.stag.unnotifyHumidity(function() {});
|
||||
}
|
||||
if (node.accelerometer) {
|
||||
node.stag.notifyAccelerometer(function() {});
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
node.stag.unnotifyAccelerometer(function() {});
|
||||
}
|
||||
if (node.magnetometer) {
|
||||
node.stag.notifyMagnetometer(function() {});
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
node.stag.unnotifyMagnetometer(function() {});
|
||||
}
|
||||
if (node.gyroscope) {
|
||||
node.stag.notifyGyroscope(function() {});
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
node.stag.unnotifyGyroscope(function() {});
|
||||
}
|
||||
if (node.stag.type === "cc2650") {
|
||||
if (node.luxometer) {
|
||||
node.stag.enableLuxometer(function() {});
|
||||
node.stag.notifyLuxometer(function() {});
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
node.stag.unnotifyLuxometer(function() {});
|
||||
node.stag.disableLuxometer(function() {});
|
||||
}
|
||||
}
|
||||
if (node.keys) {
|
||||
node.stag.notifySimpleKey(function() {});
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
node.stag.unnotifySimpleKey(function() {});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user