<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MMM-Hotword causing Mirror to blackout]]></title><description><![CDATA[<p dir="auto">Hi there, I’ve looked all over the forum for an answer to my problem. The MagicMirror works fine with the MMM-AssisstantMk2, I then added the Hotword module into the config file and the program starts… but just a black screen. This is what’s displayed on the terminal. Does anyone see what I’m doing wrong?</p>
<pre><code>pi@raspberrypi:~/MagicMirror $ npm start

&gt; magicmirror@2.5.0 start /home/pi/MagicMirror
&gt; sh run-start.sh

Starting MagicMirror: v2.5.0
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
WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'node-record-lpcm16'
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
App threw an error during load
Error: Cannot find module 'node-record-lpcm16'
    at Module._resolveFilename (module.js:543:15)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:473:25)
    at Module.require (module.js:586:17)
    at require (internal/module.js:11:18)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_helper.js:8:16)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_helper.js:409:3)
    at Module._compile (module.js:642:30)
    at Object.Module._extensions..js (module.js:653:10)
    at Module.load (module.js:561:32)
Whoops! There was an uncaught exception...
{ Error: Cannot find module 'node-record-lpcm16'
    at Module._resolveFilename (module.js:543:15)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:473:25)
    at Module.require (module.js:586:17)
    at require (internal/module.js:11:18)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_helper.js:8:16)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_helper.js:409:3)
    at Module._compile (module.js:642:30)
    at Object.Module._extensions..js (module.js:653:10)
    at Module.load (module.js:561:32) code: 'MODULE_NOT_FOUND' }
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
Launching application.

</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/9302/mmm-hotword-causing-mirror-to-blackout</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 10:47:42 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/9302.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Dec 2018 03:04:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-Hotword causing Mirror to blackout on Sun, 23 Dec 2018 21:14:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/budddesilva" aria-label="Profile: budddesilva">@<bdi>budddesilva</bdi></a><br />
That is another issue. snowboy is related with MMM-Hotword, and that error says you didn’t or failed proper installation of that module. Read the instructions of installation.</p>
]]></description><link>https://forum.magicmirror.builders/post/48486</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48486</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 23 Dec 2018 21:14:28 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Hotword causing Mirror to blackout on Sun, 23 Dec 2018 21:12:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi @Sean<br />
Thank you for your input. I ran through all the commands you gave without any problems. Had to change the “essentials” to “essential”.<br />
But, now I get the previous error I had received.</p>
<p dir="auto">WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘snowboy’.</p>
]]></description><link>https://forum.magicmirror.builders/post/48485</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48485</guid><dc:creator><![CDATA[budddesilva]]></dc:creator><pubDate>Sun, 23 Dec 2018 21:12:15 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Hotword causing Mirror to blackout on Sun, 23 Dec 2018 20:32:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/budddesilva" aria-label="Profile: budddesilva">@<bdi>budddesilva</bdi></a></p>
<pre><code>sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essentials
sudo apt-get install gcc-5
</code></pre>
<p dir="auto">do this first.</p>
<p dir="auto">Then,</p>
<pre><code>sudo apt-get install libasound2-dev sox libsox-fmt-all
</code></pre>
<p dir="auto">Then,</p>
<pre><code>cd ~/MagicMirror/modules/MMM-AssistantMk2
npm install --save-dev electron-rebuild
./node_modules/.bin/electron-rebuild
</code></pre>
<p dir="auto">I wish you have a luck. Happy holidays.</p>
]]></description><link>https://forum.magicmirror.builders/post/48484</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48484</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 23 Dec 2018 20:32:55 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Hotword causing Mirror to blackout on Sun, 23 Dec 2018 20:07:00 GMT]]></title><description><![CDATA[<p dir="auto">Ok. These are the steps I took.</p>
<ol>
<li>Removed the MMM-AssistantMk2/node_modules folder.</li>
<li>npm install in the MMM-AssistantMk2 folder<br />
cd ~/MagicMirror/modules/MMM-AssistantMk2<br />
npm install --save-dev electron-rebuild<br />
npm install nan</li>
<li>Received the following error</li>
</ol>
<pre><code>WARNING! Could not load config file. Starting with default configuration. Error found: Error: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: electron-v2.0-linux-arm-glibc
Found: [node-v67-linux-arm-glibc]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node'
</code></pre>
<ol start="4">
<li>Ran the npm rebuild command in the MMM-AssistantMk2 folder</li>
<li>Still the same error as before.</li>
<li>Ran the npm rebuild command in the MMM-AssistantMk2 &gt; node_modules folder</li>
<li>Still the same error as before.</li>
</ol>
<p dir="auto">What do you think <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> ?</p>
]]></description><link>https://forum.magicmirror.builders/post/48483</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48483</guid><dc:creator><![CDATA[budddesilva]]></dc:creator><pubDate>Sun, 23 Dec 2018 20:07:00 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Hotword causing Mirror to blackout on Sun, 23 Dec 2018 20:04:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/budddesilva" aria-label="Profile: budddesilva">@<bdi>budddesilva</bdi></a> said in <a href="/post/48478">MMM-Hotword causing Mirror to blackout</a>:</p>
<blockquote>
<p dir="auto">Error: Cannot find module ‘snowboy’</p>
</blockquote>
<p dir="auto">This says you didn’t (or failed) <code>npm install</code> of modules. <code>snowboy</code> is included in <code>MMM-Hotword</code> and you havn’t installed it completely. Was there any suspicious error when you install <code>MMM-Hotword</code>?</p>
]]></description><link>https://forum.magicmirror.builders/post/48482</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48482</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 23 Dec 2018 20:04:28 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Hotword causing Mirror to blackout on Sun, 23 Dec 2018 19:52:38 GMT]]></title><description><![CDATA[<p dir="auto">Yes, but I don’t think u need that last command.  The package.json in the module folder is used for installing the dependencies at the right level.   U might  have to delete the MMM-AssistantMk2/node_modules folder to get it done cleanly</p>
]]></description><link>https://forum.magicmirror.builders/post/48481</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48481</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 23 Dec 2018 19:52:38 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Hotword causing Mirror to blackout on Sun, 23 Dec 2018 19:48:05 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the reply <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> . So, do you mean like… ?</p>
<p dir="auto">cd ~/MagicMirror/modules/MMM-AssistantMk2<br />
npm install --save-dev electron-rebuild<br />
npm install nan<br />
./node_modules/.bin/electron-rebuild</p>
]]></description><link>https://forum.magicmirror.builders/post/48480</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48480</guid><dc:creator><![CDATA[budddesilva]]></dc:creator><pubDate>Sun, 23 Dec 2018 19:48:05 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Hotword causing Mirror to blackout on Sun, 23 Dec 2018 19:45:35 GMT]]></title><description><![CDATA[<p dir="auto">You should be doing npm install in the MMM-AssistantMk2 folder</p>
]]></description><link>https://forum.magicmirror.builders/post/48479</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48479</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 23 Dec 2018 19:45:35 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Hotword causing Mirror to blackout on Sun, 23 Dec 2018 19:40:45 GMT]]></title><description><![CDATA[<p dir="auto">@sean<br />
Thank you for your reply. I did a fresh install of Raspbian Stretch, did all the updates and installed all the dependencies one by one. However, every time I add the default configuration for MMM-Hotword into the main config.js file… I get the black screen. I can safely say MMM-Hotword is the culprit because the mirror works fine without it in the config.js file. Do you have an idea of what’s causing this?</p>
<p dir="auto"><strong>This is what I have in my config.js file</strong></p>
<pre><code>/* Magic Mirror Config Sample
 *
 * By Michael Teeuw http://michaelteeuw.nl
 * MIT Licensed.
 *
 * For more information how you can configurate this file
 * See https://github.com/MichMich/MagicMirror#configuration
 *
 */

var config = {
	address: "localhost", // Address to listen on, can be:
	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
	                      // - another specific IPv4/6 to listen on a specific interface
	                      // - "", "0.0.0.0", "::" to listen on any interface
	                      // Default, when address config is left out, is "localhost"
	port: 8080,
	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
	                                                       // or add a specific IPv4 of 192.168.1.5 :
	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
	                                                       // or IPv4 range of 192.168.3.0 --&gt; 192.168.3.15 use CIDR format :
	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],

	language: "en",
	timeFormat: 24,
	units: "metric",

	modules: [
		{
			module: "alert",
		},
		{
			module: "updatenotification",
			position: "top_bar"
		},
		{
			module: "clock",
			position: "top_left"
		},
		{
			module: "calendar",
			header: "US Holidays",
			position: "top_left",
			config: {
				calendars: [
					{
						symbol: "calendar-check-o ",
						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
					}
				]
			}
		},
		{
  			module: "MMM-AssistantMk2",
  			position: "top_right",
  			config: {
    			       	   record: {
				   recordProgram: "arecord",
				   device: "plughw:1",
					},

				notifications: {
				   ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
				   ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
						},
  			}
		},
{
  module: "MMM-Hotword",
  config: {}
},
		{
			module: "compliments",
			position: "lower_third"
		},
		{
			module: "currentweather",
			position: "top_right",
			config: {
				location: "Auckland",
				locationID: "2193734",  //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
				appid: "3469461386627eaa3c97129ab3bc70ba"
			}
		},
		{
			module: "newsfeed",
			position: "bottom_bar",
			config: {
				feeds: [
					{
						title: "New York Times",
						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
					}
				],
				showSourceTitle: true,
				showPublishDate: true
			}
		},
	]

};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
</code></pre>
<p dir="auto">The error I get when running the mirror with the Hotword module says it cannot find the snowboy module…  I didn’t have any problems when I installed snowboy. I rebuilt this without any problems using the code below.</p>
<p dir="auto">cd ~/MagicMirror/modules/MMM-Hotword/node_modules/snowboy<br />
npm install --save-dev electron-rebuild<br />
npm install nan<br />
./node_modules/.bin/electron-rebuild</p>
<p dir="auto"><strong>ERROR WHEN RUNNING MIRROR WITH HOTWORD MODULE</strong></p>
<pre><code>pi@raspberrypi:~/MagicMirror $ npm start

&gt; magicmirror@2.5.0 start /home/pi/MagicMirror
&gt; sh run-start.sh

Starting MagicMirror: v2.5.0
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
Initializing new module helper ...
Module helper loaded: MMM-AssistantMk2
WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'snowboy'
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
Initializing new module helper ...
Module helper loaded: MMM-AssistantMk2
App threw an error during load
Error: Cannot find module 'snowboy'
    at Module._resolveFilename (module.js:543:15)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:473:25)
    at Module.require (module.js:586:17)
    at require (internal/module.js:11:18)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:10:18)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:115:3)
    at Module._compile (module.js:642:30)
    at Object.Module._extensions..js (module.js:653:10)
    at Module.load (module.js:561:32)
Whoops! There was an uncaught exception...
{ Error: Cannot find module 'snowboy'
    at Module._resolveFilename (module.js:543:15)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:473:25)
    at Module.require (module.js:586:17)
    at require (internal/module.js:11:18)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:10:18)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:115:3)
    at Module._compile (module.js:642:30)
    at Object.Module._extensions..js (module.js:653:10)
    at Module.load (module.js:561:32) code: 'MODULE_NOT_FOUND' }
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
Launching application.
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/48478</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48478</guid><dc:creator><![CDATA[budddesilva]]></dc:creator><pubDate>Sun, 23 Dec 2018 19:40:45 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Hotword causing Mirror to blackout on Sun, 23 Dec 2018 16:46:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/budddesilva" aria-label="Profile: budddesilva">@<bdi>budddesilva</bdi></a><br />
It seems not installed properly. Some dependencies(like lpcm) are missed. Complete installation as documented carefully again.</p>
]]></description><link>https://forum.magicmirror.builders/post/48471</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48471</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 23 Dec 2018 16:46:59 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Hotword causing Mirror to blackout on Sun, 23 Dec 2018 03:08:34 GMT]]></title><description><![CDATA[<p dir="auto">Hold on, I’m wrong here. I don’t think it’s the Hotword module causing the blackout. I just removed that part from the main config file and still get the same issue. I will try and look back in the forum related to MMM-AssistantMk2.</p>
]]></description><link>https://forum.magicmirror.builders/post/48448</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48448</guid><dc:creator><![CDATA[budddesilva]]></dc:creator><pubDate>Sun, 23 Dec 2018 03:08:34 GMT</pubDate></item></channel></rss>