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

    cjdzombie

    @cjdzombie

    0
    Reputation
    236
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    cjdzombie Unfollow Follow

    Latest posts made by cjdzombie

    • Google Assistant Slow Response Time

      I recently setup mt Raspberry Pi to run Google Assistant in the background with my Magic Mirror. I was curious if anyone has found a way to speed up the response time of the Assistant? I have a Google Home Mini and that responds very promptly. Any luck with speeding things up?

      posted in General Discussion
      C
      cjdzombie
    • RE: MMM-Hotword

      @sean said in MMM-Hotword:

      npm install

      Thanks for your reply. I ran the suggested commands.

      pi@raspberrypi:~/MagicMirror/modules/MMM-Hotword $ npm install nan
      

      and then

      pi@raspberrypi:~/MagicMirror/modules/MMM-Hotword $ npm install
      

      Unfortunately I got the same result. It seems that Snowboy is the issue. It just wont install in the process. When I try the next command in the process I get this result.

      cd ~/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
      

      I get the reply

      pi@raspberrypi:~ $ cd ~/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
      bash: cd: /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy: No such file or directory
      
      

      I’ve been at this since last weekend. It’s fun , but frustrating. Any other help would be awesome.

      Thanks!

      posted in System
      C
      cjdzombie
    • RE: MMM-Hotword

      Hi,

      I’m trying to install Hotword to work with the Assistant Module. I’m stuck at the install because I keep getting an error with Snowboy. What is the issue here. I’m new to this type of codind and would appreciate some help. Here are the errors.

      pi@raspberrypi:~ $ cd ~/MagicMirror/modules/
      pi@raspberrypi:~/MagicMirror/modules $ sudo apt-get install libmagic-dev libatlas-base-dev sox libsox-fmt-all
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      libatlas-base-dev is already the newest version (3.10.3-1+rpi1).
      libmagic-dev is already the newest version (1:5.30-1+deb9u2).
      libsox-fmt-all is already the newest version (14.4.1-5).
      sox is already the newest version (14.4.1-5).
      The following packages were automatically installed and are no longer required:
        erlang-base erlang-crypto erlang-syntax-tools fonts-lato
        libboost-thread1.62.0 libc-ares2 libhttp-parser2.8 libqt5opengl5
        libqt5scintilla2-12v5 libqt5scintilla2-l10n libqwt-qt5-6 libruby2.3
        libscsynth1 libsctp1 libuv1 libyaml-0-2 nodejs-doc rake realpath ruby
        ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert
        ruby-test-unit ruby2.3 rubygems-integration
      Use 'sudo apt autoremove' to remove them.
      0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
      pi@raspberrypi:~/MagicMirror/modules $ git clone https://github.com/eouia/MMM-Hotword.git
      Cloning into 'MMM-Hotword'...
      remote: Enumerating objects: 3, done.
      remote: Counting objects: 100% (3/3), done.
      remote: Compressing objects: 100% (3/3), done.
      remote: Total 116 (delta 0), reused 0 (delta 0), pack-reused 113
      Receiving objects: 100% (116/116), 7.93 MiB | 4.19 MiB/s, done.
      Resolving deltas: 100% (64/64), done.
      pi@raspberrypi:~/MagicMirror/modules $ cd MMM-Hotword
      pi@raspberrypi:~/MagicMirror/modules/MMM-Hotword $ npm install
      npm WARN deprecated boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
      npm WARN deprecated hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
      npm WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
      
      > snowboy@1.3.1 install /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
      > node-pre-gyp install --fallback-to-build
      
      node-pre-gyp ERR! Tried to download(403): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.3.1/Release/snowboy-v1.3.1-node-v67-linux-arm.tar.gz 
      node-pre-gyp ERR! Pre-built binaries not found for snowboy@1.3.1 and node@11.8.0 (node-v67 ABI, glibc) (falling back to source compile with node-gyp) 
      node-pre-gyp ERR! Tried to download(undefined): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.3.1/Release/snowboy-v1.3.1-node-v67-linux-arm.tar.gz 
      node-pre-gyp ERR! Pre-built binaries not found for snowboy@1.3.1 and node@11.8.0 (node-v67 ABI, glibc) (falling back to source compile with node-gyp) 
      internal/modules/cjs/loader.js:613
          throw err;
          ^
      
      Error: Cannot find module 'nan'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:611:15)
          at Function.Module._load (internal/modules/cjs/loader.js:537:25)
          at Module.require (internal/modules/cjs/loader.js:665:17)
          at require (internal/modules/cjs/helpers.js:20:18)
          at [eval]:1:1
          at Script.runInThisContext (vm.js:123:20)
          at Object.runInThisContext (vm.js:312:38)
          at Object.<anonymous> ([eval]-wrapper:6:22)
          at Module._compile (internal/modules/cjs/loader.js:736:30)
          at evalScript (internal/process/execution.js:56:25)
      internal/modules/cjs/loader.js:613
          throw err;
          ^
      
      Error: Cannot find module 'nan'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:611:15)
          at Function.Module._load (internal/modules/cjs/loader.js:537:25)
          at Module.require (internal/modules/cjs/loader.js:665:17)
          at require (internal/modules/cjs/helpers.js:20:18)
          at [eval]:1:1
          at Script.runInThisContext (vm.js:123:20)
          at Object.runInThisContext (vm.js:312:38)
          at Object.<anonymous> ([eval]-wrapper:6:22)
          at Module._compile (internal/modules/cjs/loader.js:736:30)
          at evalScript (internal/process/execution.js:56:25)
      gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
      gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
      gypgyp  ERR!ERR!  configure error 
      configure error 
      gypgyp  ERR!ERR! stack  Error: `gyp` failed with exit code: 1
      stackgyp Error: `gyp` failed with exit code: 1
       ERR!gyp  stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
      ERR!gyp  stackERR!      at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
      stack     at ChildProcess.emit (events.js:197:13)
      gypgyp  ERR!ERR!  stackstack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
           at ChildProcess.emit (events.js:197:13)
      gyp ERR! stackgyp      at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
      ERR! System Linux 4.14.79-v7+
      gypgyp  ERR! ERR!command  "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v67-linux-arm/snowboy.node" "--module_name=snowboy" "--module_path=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v67-linux-arm"
      System Linux 4.14.79-v7+
      gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
      gypgyp ERR!  node -vERR! v11.8.0
       commandgyp  "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v67-linux-arm/snowboy.node" "--module_name=snowboy" "--module_path=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v67-linux-arm"
      ERR! node-gyp -v v3.8.0
      gyp gyp ERR!ERR!  not okcwd 
       /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
      gyp ERR! node -v v11.8.0
      gyp ERR! node-gyp -v v3.8.0
      gyp ERR! not ok 
      node-pre-gyp ERR! build error 
      node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v67-linux-arm/snowboy.node --module_name=snowboy --module_path=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v67-linux-arm' (1)
      node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
      node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
      node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:978:16)
      node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
      node-pre-gyp ERR! System Linux 4.14.79-v7+
      node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
      node-pre-gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
      node-pre-gyp ERR! node -v v11.8.0
      node-pre-gyp ERR! node-pre-gyp -v v0.6.39
      node-pre-gyp ERR! not ok 
      Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v67-linux-arm/snowboy.node --module_name=snowboy --module_path=/home/pi/MagicMirror/modules/MMM-Hotword/node_modules/snowboy/lib/node/binding/Release/node-v67-linux-arm' (1)
      npm WARN MMM-Hotword@1.1.0 No repository field.
      
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! snowboy@1.3.1 install: `node-pre-gyp install --fallback-to-build`
      npm ERR! Exit status 1
      npm ERR! 
      npm ERR! Failed at the snowboy@1.3.1 install 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-01-29T21_16_15_265Z-debug.log
      
      
      posted in System
      C
      cjdzombie