Read the statement by Michael Teeuw here.
MMM-usonic Problems
-
@sdetweil So the install worked properly but then when i ran
sudo npm start
it gave this error[1580:0329/130746.224199:FATAL:electron_main_delegate.cc(211)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Any idea what that means?
-
@sgarg15 what version of electron are u running?
-
@sgarg15 do NOT use sudo, just npm start
-
@sdetweil I am pretty sure i updated the electron yesterday using
npm install --save-dev electron@latest
-
@sgarg15 do not use sudo
-
@sdetweil Oh ok i was just following the instruction, so i used
npm start
and now it has another error[13:13:56.836] [LOG] Error: unknown hardware: "BCM2835" at /home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-gpio/lib/gpio.js:34:29 at ChildProcess.exithandler (child_process.js:299:7) at ChildProcess.emit (events.js:210:5) at maybeClose (internal/child_process.js:1021:16) at Socket.<anonymous> (internal/child_process.js:430:11) at Socket.emit (events.js:210:5) at Pipe.<anonymous> (net.js:658:12) [13:13:56.862] [LOG] Error: unknown hardware: "BCM2835" at /home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-usonic/lib/usonic.js:34:29 at ChildProcess.exithandler (child_process.js:299:7) at ChildProcess.emit (events.js:210:5) at maybeClose (internal/child_process.js:1021:16) at Socket.<anonymous> (internal/child_process.js:430:11) at Socket.emit (events.js:210:5) at Pipe.<anonymous> (net.js:658:12)
Any Ideas?
-
@sgarg15 something to do with the MMM-Swipe config info
-
@sdetweil But it is the same as the one in the readMe
readme:
{ module: 'MMM-Swipe', position: 'bottom_left', // Doesn't matter after it's setup. It should be blank. // Best results in one of the side regions like: bottom_left config: { // See 'Configuration options' for more information. echoLeftPin: 24, //Left Sensor's BCM Numbered Echo pin - REQUIRED triggerLeftPin: 23, //Left Sensor's BCM Numbered trigger pin - REQUIRED echoRightPin: 26, //Right Sensor's BCM Numbered Echo pin - REQUIRED triggerRightPin: 25, //Right Sensor's BCM Numbered trigger pin - REQUIRED useAsButton: false, //Enable a GPIO output when you "press". buttonPin: 8, verbose: false, calibrate: false } }
My config:
{ module: 'MMM-Swipe', position: 'bottom_left', // Doesn't matter after it's setup. It should be blank. // Best results in one of the side regions like: bottom_left config: { // See 'Configuration options' for more information. echoLeftPin: 27, //Left Sensor's BCM Numbered Echo pin - REQUIRED triggerLeftPin: 24, //Left Sensor's BCM Numbered trigger pin - REQUIRED echoRightPin: 23, //Right Sensor's BCM Numbered Echo pin - REQUIRED triggerRightPin: 22, //Right Sensor's BCM Numbered trigger pin - REQUIRED useAsButton: false, //Enable a GPIO output when you "press". buttonPin: 8, verbose: true, calibrate: true } },
-
@sgarg15 said in MMM-usonic Problems:
Error: unknown hardware: “BCM2835”
at /home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-usonic/lib/usonic.js:34:29no idea, you would have to read the code there
-
@sdetweil so i had a look and apparently this was missing
|| hardware === 'BCM2835'
fromelse if (hardware === 'BCM2709' || hardware === 'BCM2835')
but when i added that now its giving a different error[14:05:10.212] [ERROR] Error: EACCES, Permission denied at /home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-gpio/lib/gpio.js:30:18 at ChildProcess.exithandler (child_process.js:299:7) at ChildProcess.emit (events.js:210:5) at maybeClose (internal/child_process.js:1021:16) at Socket.<anonymous> (internal/child_process.js:430:11) at Socket.emit (events.js:210:5) at Pipe.<anonymous> (net.js:658:12) { errno: 13, code: 'EACCES', syscall: 'init' } [14:05:10.252] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [14:05:10.254] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [14:05:10.276] [LOG] Whoops! There was an uncaught exception... [14:05:10.278] [ERROR] Error: EACCES, Permission denied at /home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-usonic/lib/usonic.js:32:20 at ChildProcess.exithandler (child_process.js:299:7) at ChildProcess.emit (events.js:210:5) at maybeClose (internal/child_process.js:1021:16) at Socket.<anonymous> (internal/child_process.js:430:11) at Socket.emit (events.js:210:5) at Pipe.<anonymous> (net.js:658:12) { errno: 13, code: 'EACCES', syscall: 'init' }