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
    • MMM-Remote-Control API Questions

      @Jopyth Hey so i was going through your MMM-Remote-Control API and i had some questions.
      So i am trying to make a python script that detects a swiping motion to then change pages, but since this is a seperatte python script (not in a module), the MMM-pages module cant accept the notifications given to it.
      So the creater of MMM-pages, told me if i had a look at your API i could possible achieve this. but after giving it a thorough read, i was having difficulty figuring it out.

      So essentially i wanted something like this

      def swiper():
        #code here to detect swipe
        if leftSwipe:
          #send a notification to pages to go left
        if rightSwipe:
          #send a notification to pages to go right
      
      posted in Troubleshooting
      S
      sgarg15
    • RE: Bored during Quarantine

      @bhepler cool i will have a look through, for MMM-Globe do you know which style they used to get this ?
      eddd9c9b-db80-4387-9287-160b5907732f-image.png

      posted in General Discussion
      S
      sgarg15
    • RE: Bored during Quarantine

      @bhepler Yea i have a raspberry 2 b+ so i dont think it can handle the ecnom globe module, so could you tell me the one that is like MMM-Globe but for the moon and any other modules that will look really nice and that my raspberry pi will probably be able to handle?

      posted in General Discussion
      S
      sgarg15
    • RE: Bored during Quarantine

      @bhepler Yea i am mainly looking for things that would impress, i like the MMM-Globe module and other suggestions that would look really cool on a mirror and that would impress

      posted in General Discussion
      S
      sgarg15
    • RE: Bored during Quarantine

      This was meant to be an open topic but i see your point,
      So basically i wanted a mirror which could display time and the weather but after finding out theres a whole community on this i wanted to take a step further. But i dont know where to start. This mirror will be going in my room and most of the time i will be the only one looking at the mirror.

      currently i am working on getting ultrasonic sensors to work with pages so i can do a sliding motion and switch pages.

      If there are other questions to help me out please post on this forum

      Thanks

      posted in General Discussion
      S
      sgarg15
    • Bored during Quarantine

      Hey guys,
      So i during these times, i am locked inside my house because the situation going on. So i am wondering if you guys have any suggestions as to what i could add to my magic mirror software wise(since i dont have my build done yet). Anything from adding new cool modules to anything else.

      Thanks

      posted in General Discussion
      S
      sgarg15
    • RE: MMM-usonic Problems

      @sdetweil oh ok oh well then

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

      @sdetweil so is this problem solvable or should i find another module?

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

      @sdetweil after reasearching a bit i dont think this modules works anymore with the new updates of pi and MMM a ssaid here
      https://forum.magicmirror.builders/topic/205/mmm-swipe-hand-gestures/32

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

      @sdetweil so i had a look and apparently this was missing || hardware === 'BCM2835' from else 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'
      }
      
      posted in Troubleshooting
      S
      sgarg15
    • 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
    • 2 / 3