Module not responding
See original GitHub issueHello, and many thanks for creating this module. I am very keen to get started and experiment with it however I got a bit stuck and can’t get it to work at all.
I have followed the setup steps provided in these two links:
https://github.com/dolanmiu/MMM-awesome-alexa https://github.com/dolanmiu/MMM-awesome-alexa/wiki/How-to-get-AVS-Token
Like everyone one else, the most challenging bit was to obtain the refresh token, but with a bit of perseverance I have managed following the guide in the link above. I honestly though that the hard part was over and that all that I had left to do was to put everything together in the config.js file.
The problem I have is that, despite the fact that the mirror starts and loads all the modules correctly and I don’t receive any errors - the Alexa module is unresponsive. Whenever I say the wake-word “Alexa”, nothing happens.
Troubleshooting steps that I followed:
Tested the microphone - the official troubleshooting guide says to use the rec t.wav
command however I get the following result when using it:
rec FAIL formats: can't open input
default’: snd_pcm_open error: No such file or directory`
I am able though to test the mic using this command
$arecord -D plughw:1,0 -f cd test.wav
and play back successfully using
$aplay test.wav
I have tried to start the MagicMirror the traditional way of npm start as suggested on the forum but with no luck.
I have attached bellow the logs, for some reason I got different output when I ran it different times.
Output when running MagicMirror with npm start
pi@raspberrypi:~/MagicMirror $ npm start
magicmirror@2.2.2 start /home/pi/MagicMirror sh run-start.sh
Starting MagicMirror: v2.2.2 Loading config … Loading module helpers … No helper found for module: alert. Initializing new module helper … Module helper loaded: updatenotification No helper found for module: clock. Initializing new module helper … Module helper loaded: calendar No helper found for module: random_quotes. No helper found for module: currentweather. No helper found for module: weatherforecast. Initializing new module helper … Module helper loaded: newsfeed Initializing new module helper … Module helper loaded: MMM-MyCommute Initializing new module helper … Module helper loaded: MMM-awesome-alexa All module helpers loaded. Starting server on port 8080 … Server started … Connecting socket for: updatenotification Connecting socket for: calendar Starting node helper for: calendar Connecting socket for: newsfeed Starting module: newsfeed Connecting socket for: MMM-MyCommute ====================== Starting node_helper for module [MMM-MyCommute] Connecting socket for: MMM-awesome-alexa Sockets connected & modules started … Launching application. Create new calendar fetcher for url: https://calendar.google.com/- Interval: 300000 Create new news fetcher for url: http://feeds.bbci.co.uk/news/rss.xml?edition=uk - Interval: 300000 Shutting down server… Stopping module helper: updatenotification Stopping module helper: calendar Stopping module helper: newsfeed Stopping module helper: MMM-MyCommute Stopping module helper: MMM-awesome-alexa =================================================================== Log output 1:
pi@raspberrypi:~/MagicMirror $ pm2 log MagicMirror [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option) /home/pi/.pm2/logs/MagicMirror-error-0.log last 15 lines: 0|MagicMir | 0|MagicMir | fatal: unable to access ‘https://github.com/dolanmiu/MMM-awesome-alexa.git/’: Could not resolve host: github.com 0|MagicMir | 0|MagicMir | fatal: unable to access ‘https://github.com/jclarke0000/MMM-MyCommute.git/’: Could not resolve host: github.com 0|MagicMir | 0|MagicMir | fatal: unable to access ‘https://github.com/KirAsh4/random_quotes/’: Could not resolve host: github.com 0|MagicMir | 0|MagicMir | fatal: unable to access ‘https://github.com/MichMich/MagicMirror.git/’: Could not resolve host: github.com 0|MagicMir | 0|MagicMir | fatal: unable to access ‘https://github.com/dolanmiu/MMM-awesome-alexa.git/’: Could not resolve host: github.com 0|MagicMir | 0|MagicMir | fatal: unable to access ‘https://github.com/jclarke0000/MMM-MyCommute.git/’: Could not resolve host: github.com 0|MagicMir | 0|MagicMir | fatal: unable to access ‘https://github.com/KirAsh4/random_quotes/’: Could not resolve host: github.com 0|MagicMir |
/home/pi/.pm2/logs/MagicMirror-out-0.log last 15 lines: 0|MagicMir | Connecting socket for: newsfeed 0|MagicMir | Starting module: newsfeed 0|MagicMir | Connecting socket for: MMM-MyCommute 0|MagicMir | ====================== Starting node_helper for module [MMM-MyCommute] 0|MagicMir | Connecting socket for: MMM-awesome-alexa 0|MagicMir | Sockets connected & modules started … 0|MagicMir | Launching application. 0|MagicMir | Create new calendar fetcher for url: https://calendar.google.com/- Interval: 300000 0|MagicMir | Create new news fetcher for url: http://feeds.bbci.co.uk/news/rss.xml?edition=uk - Interval: 300000 0|MagicMir | Shutting down server… 0|MagicMir | Stopping module helper: updatenotification 0|MagicMir | Stopping module helper: calendar 0|MagicMir | Stopping module helper: newsfeed 0|MagicMir | Stopping module helper: MMM-MyCommute 0|MagicMir | Stopping module helper: MMM-awesome-alexa
===================================================================
Log output 2:
pi@raspberrypi:~/MagicMirror $ pm2 log MagicMirror [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option) /home/pi/.pm2/logs/MagicMirror-error-0.log last 15 lines: 0|MagicMir | WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration. 0|MagicMir | WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration. 0|MagicMir | WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration. 0|MagicMir | WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration. 0|MagicMir | WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration. 0|MagicMir | (node:27787) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Error: getaddrinfo EAI_AGAIN api.amazon.com:443 0|MagicMir | (node:27787) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 0|MagicMir | fatal: unable to access ‘https://github.com/MichMich/MagicMirror.git/’: Could not resolve host: github.com 0|MagicMir | 0|MagicMir | fatal: unable to access ‘https://github.com/dolanmiu/MMM-awesome-alexa.git/’: Could not resolve host: github.com 0|MagicMir | 0|MagicMir | fatal: unable to access ‘https://github.com/jclarke0000/MMM-MyCommute.git/’: Could not resolve host: github.com 0|MagicMir | 0|MagicMir | fatal: unable to access ‘https://github.com/KirAsh4/random_quotes/’: Could not resolve host: github.com 0|MagicMir |
/home/pi/.pm2/logs/MagicMirror-out-0.log last 15 lines: 0|MagicMir | Connecting socket for: MMM-awesome-alexa 0|MagicMir | Sockets connected & modules started … 0|MagicMir | Launching application. 0|MagicMir | Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/andrei.v.danci%40gmail.com/private-b434c77e5b2246cf7ab50c3f34946419/basic.ics - Interval: 300000 0|MagicMir | Create new news fetcher for url: http://feeds.bbci.co.uk/news/rss.xml?edition=uk - Interval: 300000 0|MagicMir | Shutting down server… 0|MagicMir | Stopping module helper: updatenotification 0|MagicMir | Stopping module helper: calendar 0|MagicMir | Stopping module helper: newsfeed 0|MagicMir | Stopping module helper: MMM-MyCommute 0|MagicMir | Stopping module helper: MMM-awesome-alexa 0|MagicMir | 0|MagicMir | > magicmirror@2.2.2 start /home/pi/MagicMirror 0|MagicMir | > sh run-start.sh 0|MagicMir |
I would really appreciate your assistance in trying to get this resolved.
Many thanks and best regards,
Andy
Issue Analytics
- State:
- Created 6 years ago
- Comments:23 (2 by maintainers)
Top GitHub Comments
@henrikra yes, but that wraps
rec
And I just found something cool, it turns out you can change the command used:
https://github.com/gillesdemey/node-record-lpcm16/blob/master/index.js#L20
So you can set it to
arecord
for exampleThis module only works with the
rec
command currently.arecord
is not supportedThis entire library is basically a fancy wrapper around
rec
😂