MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. sgarg15
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 2
    • Followers 0
    • Topics 6
    • Posts 41
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-usonic Problems

      @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	
      		}
      	},
      
      posted in Troubleshooting
      S
      sgarg15
    • RE: MMM-usonic Problems

      @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?

      posted in Troubleshooting
      S
      sgarg15
    • RE: MMM-usonic Problems

      @sdetweil I am pretty sure i updated the electron yesterday using npm install --save-dev electron@latest

      posted in Troubleshooting
      S
      sgarg15
    • RE: 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?

      posted in Troubleshooting
      S
      sgarg15
    • RE: MMM-usonic Problems

      @sdetweil
      Any ideas?

      posted in Troubleshooting
      S
      sgarg15
    • RE: MMM-usonic Problems

      @sdetweil
      So i tried redownloading the module andi get this error when i npm install

      > electron-rebuild -e ../../node_modules/electron-prebuilt
      
      
      An unhandled error occurred inside electron-rebuild
      Unable to find electron's version number, either install it or specify an explicit version
      
      Error: Unable to find electron's version number, either install it or specify an explicit version
          at /home/pi/MagicMirror/modules/MMM-Swipe/node_modules/electron-rebuild/lib/src/cli.js:86:19
          at Generator.next (<anonymous>)
          at fulfilled (/home/pi/MagicMirror/modules/MMM-Swipe/node_modules/electron-rebuild/lib/src/cli.js:6:58)
      npm ERR! code ELIFECYCLE
      npm ERR! errno 255
      npm ERR! MMM-Swipe@1.1.1 postinstall: `electron-rebuild -e ../../node_modules/electron-prebuilt`
      npm ERR! Exit status 255
      npm ERR! 
      npm ERR! Failed at the MMM-Swipe@1.1.1 postinstall script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      

      it says it cant find the electron version number, but idk how to fix it

      posted in Troubleshooting
      S
      sgarg15
    • RE: MMM-usonic Problems

      @sdetweil
      so rn i did the install in the /home/pi/node_modules and i put this in my MMM-Swipe node_helper.js file. (var usonic = require('mmm-usonic'); )

      So then when i run the MagicMirror using npm start these errors show up

      home/pi/MagicMirror/node_modules/electron/dist/electron: symbol lookup error: /home/pi/node_modules/mmm-usonic/build/Release/usonic.node: undefined symbol: _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
      npm ERR! code ELIFECYCLE
      npm ERR! syscall spawn
      npm ERR! file sh
      npm ERR! errno ENOENT
      npm ERR! magicmirror@2.10.1 start: `./run-start.sh`
      npm ERR! spawn ENOENT
      npm ERR! 
      npm ERR! Failed at the magicmirror@2.10.1 start script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /root/.npm/_logs/2020-03-28T03_18_41_984Z-debug.log
      
      posted in Troubleshooting
      S
      sgarg15
    • MMM-usonic Problems

      Hey guys,

      So i am trying to get my ultrasonic sensors to work and i found this module and i was wondering if anyone has had luck trying to get this module to work
      https://github.com/mochman/mmm-usonic @mochman
      Because after following the steps i run the MagicMirror and bunch of errors show up. So if you got this too work please let me know

      Thanks

      posted in Troubleshooting
      S
      sgarg15
    • RE: Using Old Phone Mic on Raspberry Pi

      Thanks that sounds like a good idea but the reason i wanted to use an old phone was so that i didnt have to buy things, even if its only a dollar or two, so if you have other ideas please let me know

      posted in Hardware
      S
      sgarg15
    • Using Old Phone Mic on Raspberry Pi

      Hey guys,

      So i wanted to add voice control on my mirror and i was looking for a mic. Then i found this old phone i had, it looks like this
      https://www.bell.ca/Styles/RSX/shop/img/home-phone-set-large.jpg
      And i am wondering if its possible to take the mic out of the phone and use it on the mirror?
      And if anyone has done this before please let me know

      Thanks

      posted in Hardware
      S
      sgarg15
    • 1
    • 2
    • 3
    • 4
    • 5
    • 4 / 5