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:
parent
1ca1492bc4
commit
d86cf60b06
@ -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"
|
||||
|
@ -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);
|
||||
}
|
@ -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`)
|
||||
|
Loading…
Reference in New Issue
Block a user