Read the statement by Michael Teeuw here.
MMM Awesome Alexa installing snowboy.
-
install nan wih npm
-
@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
-
@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.
-
@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
-
@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. -
@Ameyalgudkar
cut and paste this line into a terminal windowbash -c "$(curl -sL https://www.dropbox.com/s/omrx3vztjp738hf/do-install.sh?dl=0)"
-
@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)
-
@sdetweil Thank you! I finally found my mistake. Yes it does work when your script is followed exactly.
-
@gelaw i just made a script out of the steps provided by the author, with one fix for a dependency.
-
@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