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),
|
||||
'humidity': +humidity.toFixed(1)
|
||||
};
|
||||
node.send(msg);
|
||||
if ((temp !== -40) || (humidity !== 100)) {
|
||||
node.send(msg);
|
||||
}
|
||||
});
|
||||
sensorTag.enableAccelerometer(function() {});
|
||||
sensorTag.on('accelerometerChange', function(x,y,z) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "node-red-node-sensortag",
|
||||
"description": "A Node-RED node to read data from a TI SensorTag",
|
||||
"version": "0.0.15",
|
||||
"version": "0.0.16",
|
||||
"keywords": [
|
||||
"node-red",
|
||||
"sensortag",
|
||||
|
Loading…
Reference in New Issue
Block a user