mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
let PI try to enable sensorTag access on install
This commit is contained in:
parent
0321bf8150
commit
4248b580ee
@ -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.14",
|
"version": "0.0.15",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"node-red",
|
"node-red",
|
||||||
"sensortag",
|
"sensortag",
|
||||||
@ -11,6 +11,9 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"sensortag": "~1.2.0"
|
"sensortag": "~1.2.0"
|
||||||
},
|
},
|
||||||
|
"scripts" : {
|
||||||
|
"postinstall" : "scripts/pibt.sh"
|
||||||
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
6
hardware/sensorTag/scripts/pibt.sh
Executable file
6
hardware/sensorTag/scripts/pibt.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if grep -q ARM /proc/cpuinfo
|
||||||
|
then
|
||||||
|
sudo apt-get install libbluetooth-dev libudev-dev pi-bluetooth
|
||||||
|
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user