Read the statement by Michael Teeuw here.
MMM-Swipe - Hand gestures
-
@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? -
-
-
@Michii_M
On github you can log issues (problems you might have found): https://github.com/mochman/MMM-Swipe/issuesHowever 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
-
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
-
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.
-
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.
-
@trisfoz
Hi, i don’t know if you are still trying but i had the same problem. I fixed it by adjusting the usonic.js file. If you check the git page of this project you can find a recent bugfix for the BCM2835.} else if (hardware === 'BCM2709') {
chagned to
} else if (hardware === 'BCM2709' || hardware === 'BCM2835') {
Applying this fix brought me one step further.
But now i’m stuck at starting MagicMirror as sudo.
-
@Melnem
Hi, thanks for your message. It fixed my problem.
I do not know if you have managed to run in sudo at startup but I use PM2.
In the start script :cd ~ nano mm.sh
In mm.sh I put
cd ~/MagicMirror DISPLAY=:0 sudo npm start
and it seems to work fine.
Thanks again for all your help !
-
To anyone still looking to continue development of this module or to adjust it so the Mirror does not need to be run as
sudo
: I started work on a fork to change to using theonoff
node module which doesn’t requiresudo
.The new version is about 90% there and just needs some additional testing to make sure everything works as intended. Unfortunately, after I put the effort into re-writing a lot of the code, I realized that the sensors and my dog do not get along so I need to try something else.
I’m putting the code out there in case anyone is interested in taking it any further… there are some development notes on the readme page to explain some of the differences in the two versions.
Thank you to @mochman for the original development and inspiration.
[card:shbatm/MMM-Swipe]