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 Awesome Alexa installing snowboy.

    Scheduled Pinned Locked Moved Troubleshooting
    44 Posts 4 Posters 15.6k Views 4 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.
    • A Offline
      Ameyalgudkar @Guest
      last edited by

      @Bugsounet with your automated process it got installed within modules of magic mirror.

      ? 1 Reply Last reply Reply Quote 0
      • G Offline
        gelaw
        last edited by gelaw

        Was the error installing MMM-AwesomeAlexa solved? I am also stuck at the step “npm run prepublish”. (see below).
        I tried the fix to install libcblas, but my system shows that it is already installed.
        I am running a clean install of the latest Buster full release with a basic install of MagicMirror - no other add-on modules.

        root@raspberrypi:/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy# npm run prepublish
        
        > snowboy@1.3.1 prepublish /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy
        > tsc --listFiles
        
        node_modules/@types/node/index.d.ts:20:1 - error TS1084: Invalid 'reference' directive syntax.
        
        20 /// <reference lib="es2015" />
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        
        
        /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/node_modules/typescript/lib/lib.es6.d.ts
        /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/index.ts
        /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/node-pre-gyp.d.ts
        /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/SnowboyDetectNative.d.ts
        /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/node_modules/@types/node/base.d.ts
        /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/node_modules/@types/node/index.d.ts
        /home/pi/MagicMirror/node_modules/@types/color-name/index.d.ts
        npm ERR! code ELIFECYCLE
        npm ERR! errno 2
        npm ERR! snowboy@1.3.1 prepublish: `tsc --listFiles`
        npm ERR! Exit status 2
        npm ERR! 
        npm ERR! Failed at the snowboy@1.3.1 prepublish 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!     /root/.npm/_logs/2020-09-13T14_34_37_010Z-debug.log
        root@raspberrypi:/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy# 
        
        
        A 1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @Ameyalgudkar
          last edited by

          @Ameyalgudkar sure that’s why I do my own … because to complex to build with original repo

          I fork it and correct source file, upgraded some library.
          Add some personal change for simply configuration…

          But i never tested it in this module … maybe there is a few change to do … i don’t know really
          I don’t use Alexa ':(

          1 Reply Last reply Reply Quote 0
          • A Offline
            Ameyalgudkar @gelaw
            last edited by

            @gelaw no it didn’t. still trying to figure somehow to install Snowboy. just the npm install method is not executing properly. I need the help of dev if I could. but looks like he hasn’t touched his post for a while.

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

              @Ameyalgudkar did u run my script? you keep going thru the steps even if there are errors…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                Ameyalgudkar @sdetweil
                last edited by

                @sdetweil yes I tried, but snowboy not getting installed. here is the errors

                if that would be helpful for you to understand what is actually happening. sorry for the file being very long and tiring.

                S 1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User
                  last edited by

                  install nan wih npm

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

                    @Ameyalgudkar no you did NOT use my script, OR follow the instructions… the instructions explicitly tell you to install nan

                    https://awesome-alexa.js.org/#/installation

                    my script, which is same as the instructions for this module, plus the step to add the one dependency
                    over and over we asked if u followed the instructions… but u have not…

                    #!/bin/bash
                    cd ~/MagicMirror/modules # Navigate to module folder 
                    if [  ! -e   ~/MagicMirror/modules/MMM-awesome-alexa ]; then
                       git clone https://github.com/dolanmiu/MMM-awesome-alexa.git # Clone this repository
                     fi
                     cd MMM-awesome-alexa # go into the module directory
                     v=$(apt -qq list libatlas-base-dev 2>/dev/null)
                     if [ "$v". == "." ]; then 
                       sudo apt-get install libatlas-base-dev
                     fi
                     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

                    A 1 Reply Last reply Reply Quote 0
                    • A Offline
                      Ameyalgudkar @sdetweil
                      last edited by

                      @sdetweil now I really dont know what else I have to follow, you can see each and every step I did, I literally copy pasted all the commands as they are. in the same order and directories, I havent included the first few steps mentioned as they get executed every time. I have posted every step which has got errors.

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

                        @Ameyalgudkar ignore the errors and keep going… it WILL FAIL til the last step…

                        which is why I offered the script to do it for you

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        A 1 Reply Last reply Reply Quote 0
                        • A Offline
                          Ameyalgudkar @sdetweil
                          last edited by

                          @sdetweil how should I run the script? I tried the bash c but that didnt worked so did everything from script manually.
                          I will run the script exactly as you say and then will show you result if thats ok. also please let me know in which directory should I run the script.

                          S 2 Replies Last reply Reply Quote 0
                          • S Offline
                            sdetweil @Ameyalgudkar
                            last edited by

                            @Ameyalgudkar
                            cut and paste this line into a terminal window

                            bash -c  "$(curl -sL 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

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

                              @Ameyalgudkar said in MMM Awesome Alexa installing snowboy.:

                              I tried the bash c

                              looks like you forgot the - in front of c

                              bash -c do-install.sh
                              and didn’t mark it executable
                              chmod +x do-install.sh

                              (if u already downloaded the file)

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                gelaw
                                last edited by

                                @sdetweil Thank you! I finally found my mistake. Yes it does work when your script is followed exactly.

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

                                  @gelaw i just made a script out of the steps provided by the author, with one fix for a dependency.

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    Ameyalgudkar @sdetweil
                                    last edited by

                                    @sdetweil Okay, would gladly like to tell that this did get the errors but it worked even with them. I didn’t knew until now that its fine to get those errors as no one mentions them anywhere in the scripts. Now the one thing is that the alexa only listens once and then stops listening to hotword. My mic is working and I have checked that. Speakers are working, I read somewhere about the electron and Chrome issue not sure if that would be the reason. But if that is then I will try, if that doesn’t work ill ask.

                                    Thank you for the help and support

                                    1 Reply Last reply Reply Quote 0

                                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                    With your input, this post could be even better 💗

                                    Register Login
                                    • 1
                                    • 2
                                    • 3
                                    • 2 / 3
                                    • 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