Read the statement by Michael Teeuw here.
unable to get noble package running
-
I have tested your module (both in MM and stand-alone) and in both cases i get
"scanning was started. Everything is working fine."
shown in the console (i use a RaspberryPi 2 with an USB-Bluetooth adapter).Are you runnung MagicMirror with sudo-rights? If there is no console output, then it indicates, that the bluetooth adapter wasn’t started (no “stateChange”-event).
Is my module fully working for you? I currently can’t think of any reason it should only work in one of the both cases (except for the “version mismatch”-error).
-
@aschulz90
Thanks for your effort and you for quick help. After using a totally new image and installing everything again. I finally started the MM² with sudo-rights without using a ssh-connection.
This finally solved my issue.Via ssh-connection I’m unable to start the MM². I tried
DISPLAY=:0 sudo npm start
. This caused> magicmirror@2.1.0 start /home/pi/MagicMirror > electron js/electron.js No protocol specified npm ERR! Linux 4.4.45-v7+ npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" npm ERR! node v6.9.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! magicmirror@2.1.0 start: `electron js/electron.js` npm ERR! Exit status 1 ...
Is there a way to start the MM² via ssh with sudo rights?
-
-
@SvenSommer Late but…
https://github.com/sandeepmistry/noble#running-without-rootsudo
Running without root/sudo
Run the following command:sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
This grants the node binary cap_net_raw privileges, so it can start/stop BLE advertising.
Note: The above command requires setcap to be installed, it can be installed using the following:
sudo apt-get install libcap2-bin
This works on my Zero W with Debian Stretch
-
@SvenSommer this solution worked for ur project?
Having the same problem to run noble via ssh.for me the command : sudo setcap cap_net_raw+eip $(eval readlink -f
which node
) , seems to do nothing.