mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	let PI try to enable sensorTag access on install
This commit is contained in:
		@@ -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
 | 
				
			||||||
		Reference in New Issue
	
	Block a user