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",
|
"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"
|
||||||
|
@ -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);
|
||||||
}
|
}
|
@ -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`)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user