1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

bump sensortag pre-req

This commit is contained in:
Dave Conway-Jones 2017-03-29 17:01:53 +01:00
parent 1ca1492bc4
commit d86cf60b06
3 changed files with 16 additions and 16 deletions

View File

@ -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.18", "version": "0.0.19",
"keywords": [ "keywords": [
"node-red", "node-red",
"sensortag", "sensortag",
@ -9,7 +9,7 @@
"Ti CC2541" "Ti CC2541"
], ],
"dependencies": { "dependencies": {
"sensortag": "~1.2.0" "sensortag": "~1.3.0"
}, },
"scripts" : { "scripts" : {
"postinstall" : "node scripts/checkplatform.js pibt.sh" "postinstall" : "node scripts/checkplatform.js pibt.sh"

View File

@ -1,17 +1,18 @@
var spawn = require('child_process').spawn; var spawn = require('child_process').spawn;
if (process.argv.length === 3) { if (process.argv.length === 3) {
var command = process.argv[2]; var command = process.argv[2];
if (process.platform === 'linux') { if (process.platform === 'linux') {
var dir = __dirname; var dir = __dirname;
var script = spawn(dir + "/" + command); var script = spawn(dir + "/" + command);
script.on('close',function(code){ script.on('close',function(code) {
process.exit(code); process.exit(code);
}); });
} else { }
process.exit(0); else {
} process.exit(0);
}
} else { } else {
process.exit(0); process.exit(0);
} }

View File

@ -1,4 +1,3 @@
#!/bin/bash #!/bin/bash
#sudo apt-get install libbluetooth-dev libudev-dev pi-bluetooth #sudo apt-get install libbluetooth-dev libudev-dev pi-bluetooth
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`) sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)