mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Merge pull request #87 from hardillb/master
Updated doc and added package.json
This commit is contained in:
commit
337c22e7f3
@ -1,5 +0,0 @@
|
|||||||
This currently requires the sensortag library
|
|
||||||
|
|
||||||
To install use the following command in the Node-Red directory
|
|
||||||
|
|
||||||
npm install sensortag
|
|
26
hardware/sensorTag/README.md
Normal file
26
hardware/sensorTag/README.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
node-red-node-sensortag
|
||||||
|
=======================
|
||||||
|
|
||||||
|
This node adds support to Node-RED to read from the Texas Instruments SensorTag.
|
||||||
|
|
||||||
|
The SensorTag is a Bluetooth LE device hosting the following sensors:
|
||||||
|
* Ambient & ir Temperature
|
||||||
|
* Barometric Pressure
|
||||||
|
* Humidity
|
||||||
|
* 3 axis Accelerometer
|
||||||
|
* 3 axis Magnetometer
|
||||||
|
* 3 axis Gyroscope
|
||||||
|
* 2 push Buttons
|
||||||
|
|
||||||
|
The config node allows the user to enable/disable any of the sensors listed above. The readings from
|
||||||
|
these sensors will be sent as a JSON object payload with the sensor name appended to the topic provided:
|
||||||
|
|
||||||
|
* Temperature - { topic: [topic_prefix]/temperature, payload: { ambient: 21.2, object: 33.0 } }
|
||||||
|
* Barometric Pressure - { topic: [topic_prefix]/pressure, payload: { pres: 1000.1 } }
|
||||||
|
* Humidity - { topic: [topic_prefix]/humidity , payload: { temp: 21.2, humidity: 88} }
|
||||||
|
* Accelerometer - { topic: [topic_prefix]/ , payload: { x:0.0, y:9.8, z:0.0 } }
|
||||||
|
* Magnetometer - { topic: [topic_prefix]/ , payload: { x:0.0, y:0.0, z:0.0 } }
|
||||||
|
* Gyroscope - { topic: [topic_prefix]/ , payload: { x:0.0, y:0.0, z:0.0 } }
|
||||||
|
* Buttons - { topic: [topic_prefix]/ , payload: { left: "down", right: "up"} }
|
||||||
|
|
||||||
|
**NOTE:** Node-RED needs to be run as root inorder or access the Linux Bluetooth 4.0 system calls
|
24
hardware/sensorTag/package.json
Normal file
24
hardware/sensorTag/package.json
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"name": "node-red-node-sensortag",
|
||||||
|
"description": "A Node-RED node to read data from a TI SensorTag",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"keywords" : ["node-red","sensortag"],
|
||||||
|
"dependencies": {
|
||||||
|
"sensortag" : "0.1.9"
|
||||||
|
},
|
||||||
|
"license": "Apache",
|
||||||
|
"repository" : {
|
||||||
|
"type":"git",
|
||||||
|
"url":"https://github.com/node-red/node-red-nodes/tree/master/hardware/sensorTag"
|
||||||
|
},
|
||||||
|
"node-red" : {
|
||||||
|
"nodes" : {
|
||||||
|
"sensortTag": "79-sensorTag.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autor": {
|
||||||
|
"name": "Ben Hardill",
|
||||||
|
"email":"hardillb@gmail.com",
|
||||||
|
"url": "http://www.hardill.me.uk/wordpress"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user