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",
"description": "A Node-RED node to read data from a TI SensorTag",
"version": "0.0.18",
"version": "0.0.19",
"keywords": [
"node-red",
"sensortag",
@ -9,7 +9,7 @@
"Ti CC2541"
],
"dependencies": {
"sensortag": "~1.2.0"
"sensortag": "~1.3.0"
},
"scripts" : {
"postinstall" : "node scripts/checkplatform.js pibt.sh"

View File

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

View File

@ -1,4 +1,3 @@
#!/bin/bash
#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`)