Read the statement by Michael Teeuw here.
MMM-Swipe - Hand gestures
-
No worries. Yeah the sensor looks like it has 2 detectors on it. I’m pretty sure one is the speaker and the other is the microphone detector.
-
@mochman when I use your workaround i get the following errormessage and a whitescreen:
Loading config ... Loading module helpers ... No helper found for module: alert. Initializing new module helper ... WARNING! Could not load config file. Starting with default configuration. Error found: Error: Module version mismatch. Expected 49, got 48. Loading module helpers ... No helper found for module: alert. Initializing new module helper ... App threw an error during load Error: Module version mismatch. Expected 49, got 48. at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20) at Object.Module._extensions..node (module.js:568:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:167:20) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-usonic/lib/usonic.js:5:14) Whoops! There was an uncaught exception... Error: Module version mismatch. Expected 49, got 48. at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20) at Object.Module._extensions..node (module.js:568:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:167:20) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-usonic/lib/usonic.js:5:14) 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 Launching application. -
Can you make another config.js file with just the MMM-Swipe module in there? I don’t know what the:
WARNING! Could not load config file. Starting with default configuration. Error found: Error: Module version mismatch. Expected 49, got 48.means. -
@mochman I change the config file to default and add your Module. The same errormessage.
-
@BeLuGe Try running
rm -rf node_modules/inside the MMM-Swipe folder then runningnpm installagain. -
@mochman I have delete the directory and install the packages with
npm install
And I have reinstall the complete Raspberry and install only your module.
The error is still there -
I can’t help you then. That was my last option. I don’t receive that error nor do I know what that error means.
-
@mochman and @BeLuGe can you tell us what are the versions you are using :
Raspbian Jessie or Wheezy, which version of nodes, npm … ?
From where are you running npm start (local, ssh) using sudo or not ?
I have the same issue as @BeLuGe and I would like to debug/understand what’s is the problem.
I already red it could be a nodejs version issue (compiling vs running version)
So guys tell us what are your configurationHere is mine :
Rpi 3 updated firmware with rpi-update
Raspbian Jessie last version (apt-get update && upgrade && dist-upgrade)
Nodejs last version 6.5.0 ARM version (not sure if it’s 64 bit or 32 bit) from https://nodejs.org
Then install of MM and packages
MM is working fine until I add MMM-Swipe module configuration then got same error message about
Error: Module version mismatch. Expected 49, got 48.Hope we will find the solution …
-
@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. -
I’m running:
RasPi 3 with Jessie
NodeJs 6.7.0
Fully updated withsudo apt-get update sudo apt-get dist-upgrade sudo rpi-updateI 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 startI don’t get any of those errors. I don’t know what module version 49 is?
-
@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 installin theMagicMirrorfolder gets the new package, if you want to reproduce it). -
@Jopyth Thanks! I was able to reproduce the error. I updated the package.json file and it runs correctly.
-
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.
-
No, I have some speakers behind some speaker mesh. I put the sensors behind the mesh.
-
Ok thanks for the info. I will try it.
-
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)
-
@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.
-
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
-
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
-
@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.
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