MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Ivanov_d
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    I
    Offline
    • Profile
    • Following 1
    • Followers 6
    • Topics 5
    • Posts 106
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: *NEW LIST 29.06.2021* Two way community order for mirror glass for all european countries - Open until at least 10 people have entered

      @Goldjunge_Chriz with that last order does it mean that we are all set and can expect our mirrors soon? I believe that everybody is excited about receiving the mirror as with that isolation there is a lot of time for DIY projects like this one.

      posted in Hardware
      I
      Ivanov_d
    • RE: *NEW LIST 29.06.2021* Two way community order for mirror glass for all european countries - Open until at least 10 people have entered

      Merry Christmas to all. @Goldjunge_Chriz any way you can make us happier by preparing the orders that have been accumulated so far?

      posted in Hardware
      I
      Ivanov_d
    • RE: *NEW LIST 29.06.2021* Two way community order for mirror glass for all european countries - Open until at least 10 people have entered

      C’mon guys, we need 8 more people :)

      posted in Hardware
      I
      Ivanov_d
    • RE: MMM-Face-Reco-DNN - All new Face Recognition

      I am turning on the monitor using a PIR sensor and it is instant. Keep in mind that it also depends on your monitor, some are slower to respond - this is my second monitor, the first one was very slow to respond to any HDMI related commands.

      posted in Utilities
      I
      Ivanov_d
    • RE: MMM-Spotify

      @Sean I have changed the hook phrase to “showtime” and it still doesn’t work.

      SPOTIFY_PLAY: {
          pattern : "showtime",
          command: "SPOTIFY_PLAY"
        },
      
      [HOTWORD] Final Result: { detected: true, hotword: 'assistant', file: null }
      [AMK2] assistant ready
      [AMK2] Conversation starts.
      [AMK2] Assistant Text Response:
      [AMK2] Transcription: show  --- Done: false
      [AMK2] Transcription: shut  --- Done: false
      [AMK2] Transcription: showtime  --- Done: false
      [AMK2] Transcription: showtime  --- Done: false
      [AMK2] end-of-utterance
      [AMK2] Transcription: showtime  --- Done: true
      { requestId: '5d433446-0000-2772-8141-089e0827c3f4' } { profileFile: 'default.json', lang: 'en-US' }
      [AMK2] Device Action: { requestId: '5d433446-0000-2772-8141-089e0827c3f4' }
      [AMK2] Assistant Text Response:
      [AMK2] Conversation Completed
      null
      [HOTWORD] begins.
      [HOTWORD] Detector starts listening.
      
      posted in Entertainment
      I
      Ivanov_d
    • RE: MMM-Face-Reco-DNN - All new Face Recognition

      @ChrizZz I have used camera motion detection and I gave it up, because:

      1. It is not very reliable (maybe it was just my cheap camera that I used for testing back then)
      2. it is resource hungry

      Because of that I use an external wireless PIR sensor which is part of my smart home system to turn on/off my SmartMirror and it works great. Since the motion processing happens on my smart home system and the Mirror is turned on/off via SSH command it takes up no resources at all from the MagicMirror which is already at 60% load when using Facial Recognition.

      posted in Utilities
      I
      Ivanov_d
    • RE: MMM-Spotify

      @Sean I will try that and report back. Thanks for the suggestion.

      posted in Entertainment
      I
      Ivanov_d
    • RE: MMM-Spotify

      @Sean, I did some more testing and I can confirm that this is the only command that doesn’t work. Maybe I am not understanding it correctly.

      My expected results would be:

      1. Raspotify is running in the background (but no music is playing)
      2. When I say “music please” spotify will start a random song and play it on the MagicMirror

      The result however is:

      1. Raspotify is running in the background and no music is playing
      2. When I say “music please” I see no errors in the logs, however, no music is starting as well
      3. To workaround this I start the music from my smartphone or desktop app and switch the player to MagicMirror, after that I can control the player via AssistankMK2
      posted in Entertainment
      I
      Ivanov_d
    • RE: MMM-Face-Reco-DNN - All new Face Recognition

      @ChrizZz I followed the tutorial and installed OpenCV and all dependencies in a virtual environment, but that did not go very well afterwards, you have to reconfigure the module with the correct paths and that can be cumbersome, therefore I started on a clean state and installed OpenCV and the dependencies without a virtual envioronment - e.g. follow the same tutorial without the part related to virtual enviornment. That is the most appropriate for our use case.

      posted in Utilities
      I
      Ivanov_d
    • RE: Two way community order for all european countries - Open until 24 march 2019

      @Goldjunge_Chriz Sofia, Bulgaria, sir ;)

      posted in Hardware
      I
      Ivanov_d
    • RE: Two way community order for all european countries - Open until 24 march 2019

      @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.

      posted in Hardware
      I
      Ivanov_d
    • 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.0_1563467613897_Untitled20190718193321.png

      posted in Entertainment
      I
      Ivanov_d
    • 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?

      posted in Entertainment
      I
      Ivanov_d
    • 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 …

      posted in Hardware
      I
      Ivanov_d
    • 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.log
      

      And 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?

      posted in Bug Hunt
      I
      Ivanov_d
    • RE: Two way community order for all european countries - Open until 24 march 2019

      @Goldjunge_Chriz when will you start the next thread?

      posted in Hardware
      I
      Ivanov_d
    • 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.

      posted in Utilities
      I
      Ivanov_d
    • 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] online
      
      
      pi@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 app
      
      

      How 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)

      posted in Troubleshooting
      I
      Ivanov_d
    • RE: MMM-Face-Reco-DNN - All new Face Recognition

      I will give it a go. I am getting mixed results with OCV3 facial recognition.

      posted in Utilities
      I
      Ivanov_d
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 5 / 6