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.

    Alexa not working

    Scheduled Pinned Locked Moved Troubleshooting
    7 Posts 2 Posters 340 Views 2 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.
    • L Offline
      laluromeo @sdetweil
      last edited by

      @sdetweil
      Thankyou for answear.
      pi@raspberrypi:~ $ cd MagicMirror
      pi@raspberrypi:~/MagicMirror $ npm run start

      magicmirror@2.15.0 start /home/pi/MagicMirror
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

      [28.06.2021 17:27.55.653] [LOG] Starting MagicMirror: v2.15.0
      [28.06.2021 17:27.55.673] [LOG] Loading config …
      [28.06.2021 17:27.55.692] [LOG] Loading module helpers …
      [28.06.2021 17:27.58.698] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘node-pre-gyp’
      Require stack:

      • /home/pi/MagicMirror/node_modules/snowboy/lib/node/index.js
      • /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.js
      • /home/pi/MagicMirror/js/app.js
      • /home/pi/MagicMirror/js/electron.js
      • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js

      [28.06.2021 17:27.58.703] [LOG] Loading module helpers …
      [28.06.2021 17:27.58.720] [ERROR] App threw an error during load
      [28.06.2021 17:27.58.725] [ERROR] Error: Cannot find module ‘node-pre-gyp’
      Require stack:

      • /home/pi/MagicMirror/node_modules/snowboy/lib/node/index.js
      • /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.js
      • /home/pi/MagicMirror/js/app.js
      • /home/pi/MagicMirror/js/electron.js
      • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      • at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
        at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Module._load (internal/modules/cjs/loader.js:848:27)
        at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
        at Module.require (internal/modules/cjs/loader.js:1032:19)
        at require (internal/modules/cjs/helpers.js:72:18)
        at Object. (/home/pi/MagicMirror/node_modules/snowboy/lib/node/index.js:6:16)
        at Module._compile (internal/modules/cjs/loader.js:1152:30)
        at Object.Module._extensions…js (internal/modules/cjs/loader.js:1173:10)
        [28.06.2021 17:27.58.731] [ERROR] Whoops! There was an uncaught exception…
        [28.06.2021 17:27.58.749] [ERROR] Error: Cannot find module ‘node-pre-gyp’
        Require stack:
      • /home/pi/MagicMirror/node_modules/snowboy/lib/node/index.js
      • /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.js
      • /home/pi/MagicMirror/js/app.js
      • /home/pi/MagicMirror/js/electron.js
      • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      • at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
        at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Module._load (internal/modules/cjs/loader.js:848:27)
        at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
        at Module.require (internal/modules/cjs/loader.js:1032:19)
        at require (internal/modules/cjs/helpers.js:72:18)
        at Object. (/home/pi/MagicMirror/node_modules/snowboy/lib/node/index.js:6:16)
        at Module._compile (internal/modules/cjs/loader.js:1152:30)
        at Object.Module._extensions…js (internal/modules/cjs/loader.js:1173:10) {
        code: ‘MODULE_NOT_FOUND’,
        requireStack: [
        ‘/home/pi/MagicMirror/node_modules/snowboy/lib/node/index.js’,
        ‘/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.js’,
        ‘/home/pi/MagicMirror/js/app.js’,
        ‘/home/pi/MagicMirror/js/electron.js’,
        ‘/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
        undefined
        ]
        }
        [28.06.2021 17:27.58.757] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
        [28.06.2021 17:27.58.759] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
        [28.06.2021 17:27.59.662] [LOG] Launching application.
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @laluromeo
        last edited by

        @laluromeo said in Alexa not working:

        node-pre-gyp

        missing dependency, sound like installation not complete

        you had to do the 14 step install process listed on the wiki, right?

        I have a script that does those , I just copy/pasted and made it a script so I didn’t have to type…
        ignore the errors til; the last step

        https://www.dropbox.com/s/omrx3vztjp738hf/do-install.sh?dl=0

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • L Offline
          laluromeo @sdetweil
          last edited by

          @sdetweil
          Never worked, I just installed awesome alexa. The method to install is from MMM-awesome-alexa from modules section @ https://magicmirror.builders/

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @laluromeo
            last edited by

            @laluromeo from the doc linked to at that url
            3rd party takes you to the item in the list, click that link takes u to the module home page on github, then

            How to
            Check out the documentation for installation and usage: https://awesome-alexa.js.org
            

            which then says

            Installing
            First you have to setup your speakers and microphone correctly: Audio setup
            
            After you have done audio setup you can install Awesome Alexa module to your MagicMirror: Installation
            

            which then says

            Raspberry Pi Specific Dependencies
            If you are using Raspberry Pi install the following:
            
            $ sudo apt-get install swig3.0 python-pyaudio python3-pyaudio sox
            $ pip install pyaudio
            Copy to clipboardErrorCopied
            Note: You may need these to get python-pyaudio to work as mentioned here:
            
            $ sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg libav-tools
            Copy to clipboardErrorCopied
            Then install the atlas matrix computing library:
            
            $ sudo apt-get install libatlas-base-dev
            Copy to clipboardErrorCopied
            Step 2. Install Module
            Execute the following commands to install the module:
            
            Originally from: https://github.com/dolanmiu/MMM-awesome-alexa/issues/164#issuecomment-492951739
            
            $ cd ~/MagicMirror/modules # Navigate to module folder
            $ git clone https://github.com/dolanmiu/MMM-awesome-alexa.git # Clone this repository
            $ cd MMM-awesome-alexa # go into the module directory
            $ npm install --only=prod # Install depdendencies
            $ cd node_modules
            $ rm -rf snowboy # Remove the installed snowboy
            $ git clone https://github.com/Kitt-AI/snowboy.git # Manually get snowboy from git
            $ cd snowboy # Go into the /snowboy directory
            $ rm -rf node_modules
            $ npm install nan --save # Make sure you install this in the /snowboy directory
            $ npm install node-pre-gyp@0.12.0 --save # Make sure you install this in the /snowboy directory
            $ npm install # Make sure you install in the /snowboy directory
            $ npm run prepublish # Make sure you run this in the /snowboy directory
            $ npm install --save-dev electron-rebuild # Make sure you install this in the /snowboy directory
            $ npm install nan # Make sure you install this in the /snowboy directory
            $ ./node_modules/.bin/electron-rebuild # Build snowboy to your device specifications, in the /snowboy directory
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            L 1 Reply Last reply Reply Quote 0
            • L Offline
              laluromeo @sdetweil
              last edited by

              @sdetweil Thank You. I Reinstalled for the second time. Now it work just fine.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • 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