<?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-Face-Reco-DNN]]></title><description><![CDATA[<p dir="auto">When i use classes like below</p>
<pre><code>classes: 'name'
</code></pre>
<p dir="auto">i get an error for the next line in the config.js<br />
If I write it with a comma like this:</p>
<pre><code>Classes: 'name',
</code></pre>
<p dir="auto">Then it and the whole <code>module: "MMM-Face-Reco-DNN"</code>will get ignored, and all my modules will be shown, even if nobody is in front of the camera.<br />
Here is a log:</p>
<pre><code>0|MagicMirror  | Loading config ...
0|MagicMirror  | WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:65
0|MagicMirror  | 			classes: 'name'
0|MagicMirror  | 			^^^^^^^
0|MagicMirror  | SyntaxError: Unexpected identifier
0|MagicMirror  |     at new Script (vm.js:74:7)
0|MagicMirror  |     at createScript (vm.js:246:10)
0|MagicMirror  |     at Object.runInThisContext (vm.js:298:10)
0|MagicMirror  |     at Module._compile (internal/modules/cjs/loader.js:678:28)
0|MagicMirror  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
0|MagicMirror  |     at Module.load (internal/modules/cjs/loader.js:620:32)
0|MagicMirror  |     at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
0|MagicMirror  |     at Function.Module._load (internal/modules/cjs/loader.js:551:3)
0|MagicMirror  |     at Module.require (internal/modules/cjs/loader.js:658:17)
0|MagicMirror  |     at require (internal/modules/cjs/helpers.js:20:18)
0|MagicMirror  | Loading module helpers ...

</code></pre>
<p dir="auto">Here is line 65 in my config file:</p>
<pre><code>		{
			module: "currentweather",
			position: "top_right",
			config: {
				location: "hidden",
				locationID: "hidden",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
				appid: "hidden"
			}
			classes: 'name'
		},
</code></pre>
<p dir="auto">If I move classes up below position like this:</p>
<pre><code>{
			module: "currentweather",
			position: "top_right",
			classes: 'name'
			config: {
				location: "hidden",
				locationID: "hidden",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
				appid: "hidden"
			}
</code></pre>
<p dir="auto">Then the result will be like this:</p>
<pre><code>0|MagicMirror  | WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:60
0|MagicMirror  | 			config: {
0|MagicMirror  | 			^^^^^^
0|MagicMirror  | SyntaxError: Unexpected identifier
0|MagicMirror  |     at new Script (vm.js:74:7)
0|MagicMirror  |     at createScript (vm.js:246:10)
0|MagicMirror  |     at Object.runInThisContext (vm.js:298:10)
0|MagicMirror  |     at Module._compile (internal/modules/cjs/loader.js:678:28)
0|MagicMirror  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
0|MagicMirror  |     at Module.load (internal/modules/cjs/loader.js:620:32)
0|MagicMirror  |     at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
0|MagicMirror  |     at Function.Module._load (internal/modules/cjs/loader.js:551:3)
0|MagicMirror  |     at Module.require (internal/modules/cjs/loader.js:658:17)
0|MagicMirror  |     at require (internal/modules/cjs/helpers.js:20:18)
</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/11416/mmm-face-reco-dnn</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 03:28:54 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/11416.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Oct 2019 11:40:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-Face-Reco-DNN on Sun, 27 Oct 2019 20:07:05 GMT]]></title><description><![CDATA[<p dir="auto">It works like a charm now. Thank you very much.</p>
]]></description><link>https://forum.magicmirror.builders/post/63425</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63425</guid><dc:creator><![CDATA[Blauenfeldt]]></dc:creator><pubDate>Sun, 27 Oct 2019 20:07:05 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Face-Reco-DNN on Tue, 22 Oct 2019 13:19:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Thank you. I will try that.</p>
]]></description><link>https://forum.magicmirror.builders/post/63114</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63114</guid><dc:creator><![CDATA[Blauenfeldt]]></dc:creator><pubDate>Tue, 22 Oct 2019 13:19:00 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Face-Reco-DNN on Tue, 22 Oct 2019 12:37:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/blauenfeldt" aria-label="Profile: Blauenfeldt">@<bdi>Blauenfeldt</bdi></a> thanks</p>
<p dir="auto">in this case</p>
<pre><code>		{
			module: "currentweather",
			position: "top_right",
			config: {
				location: "hidden",
				locationID: "hidden",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
				appid: "hidden"
			}    // &lt; ------  comma needed here
			classes: 'name'
		},
</code></pre>
<p dir="auto">in this case</p>
<pre><code>{
			module: "currentweather",
			position: "top_right",
			classes: 'name'   // &lt; --- comma needed here
			config: {
				location: "hidden",
				locationID: "hidden",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
				appid: "hidden"
			}
}
</code></pre>
<p dir="auto">so, if u see an error like</p>
<pre><code> WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:60
0|MagicMirror  | 			config: {
</code></pre>
<p dir="auto">general rule, look at the line BEFORE  the line referenced and add a trailing comma<br />
in this case, line 59 (add a comma)</p>
<p dir="auto">also, do</p>
<pre><code>cd ~/MagicMirror
npm run config:check
</code></pre>
<p dir="auto">fix errors from top down<br />
repeat til no errors</p>
]]></description><link>https://forum.magicmirror.builders/post/63113</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63113</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 22 Oct 2019 12:37:08 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Face-Reco-DNN on Tue, 22 Oct 2019 12:32:59 GMT]]></title><description><![CDATA[<p dir="auto">I’ve updated it. yes, the line before classes ends with a comma.</p>
]]></description><link>https://forum.magicmirror.builders/post/63112</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63112</guid><dc:creator><![CDATA[Blauenfeldt]]></dc:creator><pubDate>Tue, 22 Oct 2019 12:32:59 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Face-Reco-DNN on Tue, 22 Oct 2019 12:08:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/blauenfeldt" aria-label="Profile: Blauenfeldt">@<bdi>Blauenfeldt</bdi></a> can u show your whole module definition<br />
is there a comma on the end of the line before classes:</p>
]]></description><link>https://forum.magicmirror.builders/post/63111</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63111</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 22 Oct 2019 12:08:20 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Face-Reco-DNN on Tue, 22 Oct 2019 12:06:40 GMT]]></title><description><![CDATA[<p dir="auto">My bad. That is what i have done. I will edit my problem so it is more detailed.</p>
]]></description><link>https://forum.magicmirror.builders/post/63110</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63110</guid><dc:creator><![CDATA[Blauenfeldt]]></dc:creator><pubDate>Tue, 22 Oct 2019 12:06:40 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Face-Reco-DNN on Tue, 22 Oct 2019 11:58:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/blauenfeldt" aria-label="Profile: Blauenfeldt">@<bdi>Blauenfeldt</bdi></a> said in <a href="/post/63105">MMM-Face-Reco-DNN</a>:</p>
<blockquote>
<p dir="auto">classes ‘name’,</p>
</blockquote>
<p dir="auto">yes, it should be<br />
classes: ‘name’,</p>
<p dir="auto">u missed the colon (:) between name and value</p>
]]></description><link>https://forum.magicmirror.builders/post/63109</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63109</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 22 Oct 2019 11:58:09 GMT</pubDate></item></channel></rss>