mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
4f90ccfcd4
commit
b9b0e19f63
@ -77,7 +77,9 @@ module.exports = function(RED) {
|
|||||||
msg.payload = {'temperature': +temp.toFixed(1),
|
msg.payload = {'temperature': +temp.toFixed(1),
|
||||||
'humidity': +humidity.toFixed(1)
|
'humidity': +humidity.toFixed(1)
|
||||||
};
|
};
|
||||||
|
if ((temp !== -40) || (humidity !== 100)) {
|
||||||
node.send(msg);
|
node.send(msg);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
sensorTag.enableAccelerometer(function() {});
|
sensorTag.enableAccelerometer(function() {});
|
||||||
sensorTag.on('accelerometerChange', function(x,y,z) {
|
sensorTag.on('accelerometerChange', function(x,y,z) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "node-red-node-sensortag",
|
"name": "node-red-node-sensortag",
|
||||||
"description": "A Node-RED node to read data from a TI SensorTag",
|
"description": "A Node-RED node to read data from a TI SensorTag",
|
||||||
"version": "0.0.15",
|
"version": "0.0.16",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"node-red",
|
"node-red",
|
||||||
"sensortag",
|
"sensortag",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user