@Goldjunge_Chriz will you please consider my order for a 73x80 cm mirror with polished edges? I would be glad if you could include a small leftover piece if you have any left so I can test different adhesives on it. I want to glue an aluminum frame to the back of the mirror so I can make a frameless smartmirror.
Read the statement by Michael Teeuw here.
Posts
-
RE: Two way community order for all european countries - Open until 24 march 2019
-
RE: MMM-Spotify
@Sean yes, the other commands work. I can skip the song, increase/decrease the volume and etc. Also Raspotify is running, because I can start the playback on the mirror from my Desktop/Smartphone app.

-
RE: MMM-Spotify
I have the following recipies:
var recipe = { transcriptionHook: { HIDE_ALL_MODULES: { pattern: "standby mode", command: "HIDEMODULES" }, SHOW_ALL_MODULES: { pattern: "show modules", command: "SHOWMODULES" }, SCREEN_ON: { pattern: "turn on screen", command: "SCREENON" }, SCREEN_OFF: { pattern: "turn off screen", command: "SCREENOFF" }, REBOOT: { pattern: "reboot the mirror", command: "REBOOT" }, SHUTDOWN: { pattern: "extinction totale", command: "SHUTDOWN" }, STOP_PLAY: { pattern: "stop the video", // this is for youtube but it is preferable to have youtubeAutoplay: false, when running spotify so you don't get interaction with youtube player. command: "STOP_VID" }, SPOTIFY_PREVIOUS: { pattern: "previous song", command: "SPOTIFY_PREVIOUS" }, SPOTIFY_PAUSE: { pattern : "stop the music", command: "SPOTIFY_PAUSE" }, SPOTIFY_PLAY: { pattern : "music please", command: "SPOTIFY_PLAY" }, SPOTIFY_NEXT: { pattern: "next song", command: "SPOTIFY_NEXT" }, SPOTIFY_VOLUME: { pattern: "set music volume to ([0-9]{1,2}[0]?|100)", command: "SPOTIFY_VOLUME" }, SPOTIFY_SEARCH: { pattern: "play (.*) on Spotify", command: "SPOTIFY_SEARCH" }, SPOTIFY_SEARCH_PLAYLIST: { pattern: "playlist (.*) on Spotify", command: "SPOTIFY_SEARCH_PLAYLIST" }, SPOTIFY_MA_PLAYLIST: { pattern: "(.*) my playlist", // (.*) is an action eg: play my playlist / run my playlist etc... command: "SPOTIFY_MA_PLAYLIST" }, SPOTIFY_TRANSFER: { pattern: "play the music on (.*)", // (.*) is the name of your device command: "SPOTIFY_TRANSFER" }, VOLUME_UP: { pattern: "volume up", command: "CMD_VOLUME_UP" }, VOLUME_DOWN: { pattern: "volume down", command: "CMD_VOLUME_DOWN" }, SET_VOLUME: { pattern: "set master volume to ([0-9]{1,2}[0]?|100)", command: "CMD_VOLUME_SET" } }, command: { STOP_VID: { moduleExec: { module: ["MMM-AssistantMk2"], exec: (module, params, key) => { module.assistant.subdom.youtube.innerHTML = ""; module.assistant.subdom.youtube.style.display = "none"; module.youtubePlaying = false; } } }, SPOTIFY_TRANSFER: { notificationExec: { notification: "SPOTIFY_TRANSFER", payload: (params) => { console.log("SPOTIFY_TRANSFER @",params) return params[1]; } } }, SPOTIFY_PAUSE: { notificationExec: { notification: "SPOTIFY_PAUSE" } }, SPOTIFY_PLAY: { notificationExec: { notification: "SPOTIFY_PLAY" } }, SPOTIFY_MA_PLAYLIST: { notificationExec: { notification: "SPOTIFY_PLAY", payload: (params) => { console.log("SPOTIFY_MA_PLAYLIST") return { context_uri:"spotify:playlist:0ka8HWt4xXcnTK5OpOuN2k", // Uri of a personnal playlist or album } }, notification: "SPOTIFY_SHUFFLE", // added this to toogle shuffle notification: "SPOTIFY_NEXT" // added this to not always have the same song starting first } }, SPOTIFY_NEXT: { notificationExec: { notification: "SPOTIFY_NEXT" } }, SPOTIFY_PREVIOUS: { notificationExec: { notification: "SPOTIFY_PREVIOUS" } }, SPOTIFY_VOLUME: { notificationExec: { notification: "SPOTIFY_VOLUME", payload: (params) => { console.log("SPOTIFY_VOLUME @",params) return params[1]; } } }, SPOTIFY_SEARCH: { notificationExec: { notification: "SPOTIFY_SEARCH", payload: (params) => { console.log("SPOTIFY_SEARCH @",params) return { type: "artist,track,album,playlist", query: params[1], random:false, } } } }, SPOTIFY_SEARCH_PLAYLIST: { notificationExec: { notification: "SPOTIFY_SEARCH", payload: (params) => { console.log("SPOTIFY_SEARCH_PLAYLIST @",params) return { type: "playlist", query: params[1], random:true, } } } }, CMD_VOLUME_UP: { notificationExec: { notification: "VOLUME_UP" } }, CMD_VOLUME_DOWN: { notificationExec: { notification: "VOLUME_DOWN" } }, CMD_VOLUME_SET: { notificationExec: { notification: "VOLUME_SET", payload: (params, key) => { console.log("@", params); return params[1]; } } }, } } exports.recipe = recipe // Don't remove this line.However, the
SPOTIFY_PLAY: { pattern : "music please", command: "SPOTIFY_PLAY" },Doesn’t work. It recognizes the command, but nothing happens. Playback from the mirror (raspotify) doesn’t happen. If I switch the source from my desktop/phone spotify app to Raspotify, then everything is fine (e.g. I renamed the player from Raspotify to MagicMirror if that matters).
There are no errors in the logs as far as I can see.
Any thoughts?
-
RE: Two way community order for all european countries - Open until 24 march 2019
@Goldjunge_Chriz ahhh so close … I need 73x80 cm with polished edges …
-
Failed at the magicmirror@2.8.0 start script
When I restart the Raspberry (PRI3B+) I get this error in the pm2 log:
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! magicmirror@2.8.0 start: `sh run-start.sh` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the magicmirror@2.8.0 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! /home/pi/.npm/_logs/2019-07-12T19_29_14_310Z-debug.log ATTENTION: default value of option force_s3tc_enable overridden by environment. ATTENTION: default value of option force_s3tc_enable overridden by environment. ATTENTION: default value of option force_s3tc_enable overridden by environment. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! magicmirror@2.8.0 start: `sh run-start.sh` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the magicmirror@2.8.0 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! /home/pi/.npm/_logs/2019-07-12T19_59_43_770Z-debug.logAnd this is the output of the npm log:
0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ] 2 info using npm@6.9.0 3 info using node@v10.16.0 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle magicmirror@2.8.0~prestart: magicmirror@2.8.0 6 info lifecycle magicmirror@2.8.0~start: magicmirror@2.8.0 7 verbose lifecycle magicmirror@2.8.0~start: unsafe-perm in lifecycle true 8 verbose lifecycle magicmirror@2.8.0~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games 9 verbose lifecycle magicmirror@2.8.0~start: CWD: /home/pi/MagicMirror 10 silly lifecycle magicmirror@2.8.0~start: Args: [ '-c', 'sh run-start.sh' ] 11 silly lifecycle magicmirror@2.8.0~start: Returned: code: 1 signal: null 12 info lifecycle magicmirror@2.8.0~start: Failed to exec start script 13 verbose stack Error: magicmirror@2.8.0 start: `sh run-start.sh` 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:198:13) 13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:198:13) 13 verbose stack at maybeClose (internal/child_process.js:982:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid magicmirror@2.8.0 15 verbose cwd /home/pi/MagicMirror 16 verbose Linux 4.19.42-v7+ 17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start" 18 verbose node v10.16.0 19 verbose npm v6.9.0 20 error code ELIFECYCLE 21 error errno 1 22 error magicmirror@2.8.0 start: `sh run-start.sh` 22 error Exit status 1 23 error Failed at the magicmirror@2.8.0 start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]The MagicMirror script starts though … and the modules are loaded …
How can I fix this? -
RE: Two way community order for all european countries - Open until 24 march 2019
@Goldjunge_Chriz when will you start the next thread?
-
RE: MMM-Face-Reco-DNN - All new Face Recognition
After few days of installing (it takes a lot of time to build OpenCV 4.1 and dlib), trial and errors I finally installed and configured the module and oh boy is it good? Yes it is. It is much faster and accurate than Facial_Recognition_OCV3 that I used before. It was tottaly worth the time.
Thanks a lot to nischi for responding so quickly to the issues I posted on GitHub and to the enhansments he made based on my feedback.
-
RE: pm2 do not work after v2.8.0 Update
I do have the same issue and although I managed to make MM start automatically I now have two instances and one restarts every few seconds because of the same error:
0|MagicMirror | { Error: ENOENT: no such file or directory, open 'package.json' 0|MagicMirror | at Object.openSync (fs.js:443:3) 0|MagicMirror | at Object.readFileSync (fs.js:343:35) 0|MagicMirror | at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:15:32) 0|MagicMirror | at Module._compile (internal/modules/cjs/loader.js:776:30) 0|MagicMirror | at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) 0|MagicMirror | at Module.load (internal/modules/cjs/loader.js:653:32) 0|MagicMirror | at tryModuleLoad (internal/modules/cjs/loader.js:593:12) 0|MagicMirror | at Function.Module._load (internal/modules/cjs/loader.js:585:3) 0|MagicMirror | at Module.require (internal/modules/cjs/loader.js:690:17) 0|MagicMirror | at Module.Hook._require.Module.require (/usr/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:70:37) 0|MagicMirror | errno: -2, 0|MagicMirror | syscall: 'open', 0|MagicMirror | code: 'ENOENT', 0|MagicMirror | path: 'package.json' } PM2 | App [MagicMirror:0] exited with code [1] via signal [SIGINT] PM2 | App [MagicMirror:0] starting in -fork mode- PM2 | App [MagicMirror:0] onlinepi@raspberrypi:~ $ pm2 status all ┌─────────────┬────┬─────────┬──────┬──────┬────────┬─────────┬────────┬─────┬───────────┬──────┬──────────┐ │ App name │ id │ version │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │ ├─────────────┼────┼─────────┼──────┼──────┼────────┼─────────┼────────┼─────┼───────────┼──────┼──────────┤ │ MagicMirror │ 0 │ 2.8.0 │ fork │ 2096 │ online │ 87 │ 1s │ 0% │ 30.9 MB │ pi │ disabled │ │ mm │ 1 │ 2.8.0 │ fork │ 914 │ online │ 0 │ 3m │ 0% │ 2.5 MB │ pi │ disabled │ └─────────────┴────┴─────────┴──────┴──────┴────────┴─────────┴────────┴─────┴───────────┴──────┴──────────┘ Use `pm2 show <id|name>` to get more details about an appHow do I:
a) fix MagicMirror startup script
or
b) make it stop from auto starting (e.g. stopping it manually via pm2 stop MagicMirror and then saving the state with pm2 save doesn’t work) -
RE: MMM-Face-Reco-DNN - All new Face Recognition
I will give it a go. I am getting mixed results with OCV3 facial recognition.