MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Swipe - Hand gestures

    Scheduled Pinned Locked Moved Troubleshooting
    45 Posts 17 Posters 47.2k Views 16 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      BeLuGe
      last edited by

      @bob123bob I use Raspbian Jessie last version, Nodejs 6.5.0.
      I have test it with Nodejs 5.11.1, the same issue.
      I run MM without sudo.

      1 Reply Last reply Reply Quote 0
      • mochmanM Offline
        mochman Module Developer
        last edited by

        I’m running:

        RasPi 3 with Jessie
        NodeJs 6.7.0
        Fully updated with

        sudo apt-get update
        sudo apt-get dist-upgrade
        sudo rpi-update
        

        I just removed the entire MMM-Swipe Folder

        cd ~/MagicMirror/modules/
        git clone https://github.com/mochman/MMM-Swipe
        cd MMM-Swipe/
        npm install
        cd ~/MagicMirror/
        sudo npm start
        

        I don’t get any of those errors. I don’t know what module version 49 is?

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          Jopyth Moderator @mochman
          last edited by Jopyth

          @mochman Similar issue here. They changed the package.json to fix it. Seems to be a problem with a new Electron version.

          You would only get this error if you newly install Magic Mirror (npm install in the MagicMirror folder gets the new package, if you want to reproduce it).

          Helpful sticky: How to troubleshoot

          1 Reply Last reply Reply Quote 0
          • mochmanM Offline
            mochman Module Developer
            last edited by

            @Jopyth Thanks! I was able to reproduce the error. I updated the package.json file and it runs correctly.

            1 Reply Last reply Reply Quote 1
            • D Offline
              DirkS
              last edited by

              Did you try to use the HR-SR04 behind the mirror glas? I would like to use it like that but don’t know if the ultrasonic sensor will work behind the glas.

              1 Reply Last reply Reply Quote 0
              • mochmanM Offline
                mochman Module Developer
                last edited by

                No, I have some speakers behind some speaker mesh. I put the sensors behind the mesh.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  DirkS
                  last edited by

                  Ok thanks for the info. I will try it.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    Blamer
                    last edited by

                    I have just installed the MMM-Swipe module and wired up the sensors to the Raspberry for tests. Right now I still do not understand how this modul communicates with the other Magic Mirror modules. How do I have to config e.g. the calender module or the clock module to swipe left or right? Or does it just work with special modules?
                    That´s the only information I found on Github:

                    This module will use the sendNotification(notification, payload) to send:
                    notification = ‘MOVEMENT’
                    payload = ‘Swipe Left’, ‘Swipe Right’, or ‘Press’

                    Please use as appropriate in your module using notificationReceived(notification, payload, sender)

                    1 Reply Last reply Reply Quote 0
                    • mochmanM Offline
                      mochman Module Developer
                      last edited by

                      @Blamer Yeah, this isn’t created with a certain module in mind. It sends that notification so you can use it in a module you create if you want. I haven’t been really using this too much after I made it so I don’t have any other modules that would utilize the notifications.

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        bibi
                        last edited by

                        hi @mochman - i don’t really get what is the use of your module… could you please give me some use case pls? thx a lot

                        1 Reply Last reply Reply Quote 0
                        • SnilleS Offline
                          Snille Module Developer
                          last edited by

                          Hi, I’m trying out your module.
                          I’m not running the Mirror with sudo, is there no other way to get your module to work?
                          I’m getting this:

                          { Error: EACCES, Permission denied
                              at Error (native)
                              at /home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-gpio/lib/gpio.js:32:18
                              at ChildProcess.exithandler (child_process.js:209:7)
                              at emitTwo (events.js:106:13)
                              at ChildProcess.emit (events.js:191:7)
                              at maybeClose (internal/child_process.js:877:16)
                              at Socket. (internal/child_process.js:334:11)
                              at emitOne (events.js:96:13)
                              at Socket.emit (events.js:188:7)
                              at Pipe._handle.close [as _onclose] (net.js:493:12) errno: 13, code: 'EACCES', syscall: 'init' }
                          

                          I’m guessing it have to do with the mirror not running as root…
                          the pi user is a member of the gpio group at least. :)

                          Thank you.

                          Best regards Snille

                          If you cant find it, make it and share it!
                          Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                          1 Reply Last reply Reply Quote 0
                          • mochmanM Offline
                            mochman Module Developer
                            last edited by

                            @Snille Yeah, this module requires root access. I haven’t developed it since I first made it so I’m not sure if it still works with all the updates the pi & MM have gotten. Sorry.

                            SnilleS M 2 Replies Last reply Reply Quote 0
                            • SnilleS Offline
                              Snille Module Developer @mochman
                              last edited by

                              @mochman No worries, thank you for letting me know. :)

                              If you cant find it, make it and share it!
                              Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                Michii_M @mochman
                                last edited by

                                @mochman
                                Hey
                                Since this module does not work anymore, I would like to try to get it running again.
                                Can you tell me which file or parameters probably need to be adjusted?

                                yawnsY 1 Reply Last reply Reply Quote 0
                                • yawnsY Offline
                                  yawns Moderator @Michii_M
                                  last edited by

                                  @Michii_M
                                  maybe you could explain that a bit more. What is not working any more? Do you have any error messages? Did you log an issue on github with the developer @mochman ?

                                  M 1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    Michii_M @yawns
                                    last edited by

                                    @yawns
                                    @mochman said that he did not develop the module any more. Probably the error messages come by updates from the PI and MM. The error messages I can upload later after the work.
                                    From GitHub I have unfortunately no idea at all about the errors, how does it work?

                                    yawnsY 1 Reply Last reply Reply Quote 0
                                    • yawnsY Offline
                                      yawns Moderator @Michii_M
                                      last edited by

                                      @Michii_M
                                      On github you can log issues (problems you might have found): https://github.com/mochman/MMM-Swipe/issues

                                      However if mochman is not continuing development of this module then it is not really helpful to log the issue any way. Let’s wait for your error logs and maybe we can find another developer who could jump in

                                      M 1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        Michii_M @yawns
                                        last edited by yawns

                                        @yawns

                                        pi@raspberrypi:~/MagicMirror/modules/MMM-swipe $ npm install
                                        
                                        > MMM-Swipe@1.1.1 postinstall /home/pi/MagicMirror/modules/MMM-swipe
                                        > electron-rebuild -e ../../node_modules/electron-prebuilt
                                        
                                        An unhandled error occurred inside electron-rebuild
                                        Unable to find electron-prebuilt's version number, either install it or specify an explicit version
                                        
                                        Error: Unable to find electron-prebuilt's version number, either install it or specify an explicit version
                                            at _callee$ (/home/pi/MagicMirror/modules/MMM-swipe/node_modules/electron-rebuild/lib/cli.js:74:17)
                                            at tryCatch (/home/pi/MagicMirror/modules/MMM-swipe/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:63:40)
                                            at GeneratorFunctionPrototype.invoke [as _invoke] (/home/pi/MagicMirror/modules/MMM-swipe/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:337:22)
                                            at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/home/pi/MagicMirror/modules/MMM-swipe/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:96:21)
                                            at GeneratorFunctionPrototype.tryCatcher (/home/pi/MagicMirror/modules/MMM-swipe/node_modules/bluebird/js/release/util.js:16:23)
                                            at PromiseSpawn._promiseFulfilled (/home/pi/MagicMirror/modules/MMM-swipe/node_modules/bluebird/js/release/generators.js:97:49)
                                            at /home/pi/MagicMirror/modules/MMM-swipe/node_modules/bluebird/js/release/generators.js:201:15
                                            at Object. (/home/pi/MagicMirror/modules/MMM-swipe/node_modules/electron-rebuild/lib/cli.js:197:4)
                                            at Module._compile (module.js:570:32)
                                            at Object.Module._extensions..js (module.js:579:10)
                                            at Module.load (module.js:487:32)
                                            at tryModuleLoad (module.js:446:12)
                                            at Function.Module._load (module.js:438:3)
                                            at Module.runMain (module.js:604:10)
                                            at run (bootstrap_node.js:393:7)
                                            at startup (bootstrap_node.js:150:9)
                                        
                                        npm ERR! Linux 4.4.50-v7+
                                        npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
                                        npm ERR! node v6.10.1
                                        npm ERR! npm  v3.10.10
                                        npm ERR! code ELIFECYCLE
                                        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 'electron-rebuild -e ../../node_modules/electron-prebuilt'.
                                        npm ERR! Make sure you have the latest version of node.js and npm installed.
                                        npm ERR! If you do, this is most likely a problem with the MMM-Swipe package,
                                        npm ERR! not with npm itself.
                                        npm ERR! Tell the author that this fails on your system:
                                        npm ERR!     electron-rebuild -e ../../node_modules/electron-prebuilt
                                        npm ERR! You can get information on how to open an issue for this project with:
                                        npm ERR!     npm bugs MMM-Swipe
                                        npm ERR! Or if that isn't available, you can get their info via:
                                        npm ERR!     npm owner ls MMM-Swipe
                                        npm ERR! There is likely additional logging output above.
                                        
                                        npm ERR! Please include the following file with any support request:
                                        npm ERR!     /home/pi/MagicMirror/modules/MMM-swipe/npm-debug.log
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          trisfoz
                                          last edited by

                                          Hello everybody,
                                          After installing the module, when I run it as sudo. I get an error message :

                                          WARNING! Could not load config file. Starting with default configuration. Error found: Error: Module version mismatch. Expected 48, got 53.
                                          Loading module helpers ...
                                          No helper found for module: alert.
                                          Initializing new module helper ...
                                          Module helper loaded: updatenotification
                                          No helper found for module: clock.
                                          Initializing new module helper ...
                                          Module helper loaded: calendar
                                          No helper found for module: compliments.
                                          No helper found for module: currentweather.
                                          No helper found for module: weatherforecast.
                                          Initializing new module helper ...
                                          Module helper loaded: newsfeed
                                          Whoops! There was an uncaught exception...
                                          Error: Module version mismatch. Expected 48, got 53.
                                              at Error (native)
                                              at Object.Module._extensions..node (module.js:597:18)
                                              at Module.load (module.js:487:32)
                                              at tryModuleLoad (module.js:446:12)
                                              at Function.Module._load (module.js:438:3)
                                              at Module.require (module.js:497:17)
                                              at require (internal/module.js:20:19)
                                              at Object. (/home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-usonic/lib/usonic.js:5:14)
                                              at Module._compile (module.js:570:32)
                                              at Object.Module._extensions..js (module.js:579:10)
                                          MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                          If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                          (node:2253) DeprecationWarning: sys is deprecated. Use util instead.
                                          

                                          Does anyone know how I can get this module to work?

                                          Thank you.

                                          1 Reply Last reply Reply Quote 0
                                          • T Offline
                                            trisfoz
                                            last edited by

                                            Hi eveerbody,

                                            Got magic mirror to boot up but with a new error with the MMM-Swipe module

                                            
                                            Whoops! There was an uncaught exception...
                                            Error: please call `usonic.init()` first
                                                at Object.createSensor (/home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-usonic/lib/usonic.js:57:15)
                                                at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-Swipe/node_helper.js:48:29)
                                                at Socket. (/home/pi/MagicMirror/modules/node_modules/node_helper/index.js:103:10)
                                                at emitTwo (events.js:106:13)
                                                at Socket.emit (events.js:191:7)
                                                at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:503:12
                                                at _combinedTickCallback (internal/process/next_tick.js:73:7)
                                                at process._tickCallback (internal/process/next_tick.js:104:9)
                                            MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                            If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                            
                                            

                                            Thanks for any help given.

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy