MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Hotword

    Scheduled Pinned Locked Moved System
    60 Posts 20 Posters 24.8k Views 17 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? Offline
      A Former User @Manfred
      last edited by

      @manfred
      You might missed this in your MMM-AssistantMk2 configuration

      notifications: {
      ASSISTANT_ACTIVATED: “HOTWORD_PAUSE”,
      ASSISTANT_DEACTIVATED: “HOTWORD_RESUME”,
      },

      Or MMM-Hotword is not updated yet.

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        Manfred @Guest
        last edited by

        @sean Thank you very much!! That did the trick!

        1 Reply Last reply Reply Quote 0
        • S Offline
          s.monti.74
          last edited by

          Hi , I can’t really use this module. I Have also done a minimal config.js with only this module but the mirror starts black (totally) and I have to reboot the RaspPi (I can’t close the Mirror)
          What can I check ?
          I have done correctly the installation of the module
          Please help me
          thanks from Italy
          0_1547392273498_4b43a938-0146-4e06-b17c-0f1bae2c4abe-image.png

          ? 1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @s.monti.74
            last edited by

            @s-monti-74
            I need an error log to examine. I doubt you missed electron-rebuild step on installation.

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              s.monti.74 @Guest
              last edited by

              @sean please telle me which log I have to activate and how, thanks

              1 Reply Last reply Reply Quote 0
              • S Offline
                s.monti.74
                last edited by

                OH, I missed electron-rebuild . thanks
                I try…

                1 Reply Last reply Reply Quote 0
                • C Offline
                  cjdzombie
                  last edited by

                  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
                  
                  
                  ? 1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User @cjdzombie
                    last edited by A Former User

                    @cjdzombie
                    ‘npm install nan’ then do ‘npm install’ again

                    C 1 Reply Last reply Reply Quote 0
                    • C Offline
                      cjdzombie @Guest
                      last edited by

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

                      ? S 3 Replies Last reply Reply Quote 0
                      • ? Offline
                        A Former User @cjdzombie
                        last edited by

                        @cjdzombie

                        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.

                        Same result? Your prior issue Error: Cannot find module 'nan' should be solved by npm install nan. If not so, that is an issue of another level. It means your npm is not valid. So check again same result.

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 3 / 6
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy