question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module not responding

See original GitHub issue

Hello, 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:closed
  • Created 6 years ago
  • Comments:23 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dolanmiucommented, Feb 3, 2018

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

1reaction
dolanmiucommented, Feb 3, 2018

This module only works with the rec command currently. arecord is not supported

This entire library is basically a fancy wrapper around rec 😂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Importing module not working - python - Stack Overflow
For python change the location of the import file and then import. It worked for me. Location can be: C:\python 3.8\Lib.
Read more >
CSCux50554 - Module not responding on EOBC ... - Cisco Bug
Symptom: Modules report getting reloaded due to miss in EOBC or EPC heartbeats. There are numerous reasons for this to happen.
Read more >
ControlLogix I/O Not Responding - Bryce Automation
The reasons for ControlLogix I/O Not Responding include loss of power or communication on a remote chassis, a bad module, or a misconfigured ......
Read more >
ModuleNotFoundError: no module named Python Error [Fixed]
How to fix the ModuleNotFoundError in Python · 1. Make sure imported modules are installed · 2. Make sure modules are spelled correctly...
Read more >
Bluetooth module not responding - Arduino Forum
I am trying to connect a bluetooth module to my phone to send commands. It is possible to pair the module (we enter...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found