<?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[Help with config and adding modules]]></title><description><![CDATA[<p dir="auto">after trying to add a face recognition my config is broken</p>
<p dir="auto">can someone help me out?</p>
<p dir="auto">p.s. i had to use the sample file, as i broke the original config before<br />
i copied it to overwrite config.js and reapplied my edits</p>
<p dir="auto">/* Magic Mirror Config Sample<br />
*</p>
<ul>
<li>By Michael Teeuw <a href="http://michaelteeuw.nl" target="_blank" rel="noopener noreferrer nofollow ugc">http://michaelteeuw.nl</a></li>
<li>MIT Licensed.<br />
*/</li>
</ul>
<p dir="auto">var config = {<br />
port: 8080,</p>
<pre><code>ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses.

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

modules: [
	{
		module: 'MMM-Facial-Recognition',
		config: {
			// 1=LBPH | 2=Fisher | 3=Eigen
			recognitionAlgorithm: 1,
			// Threshold for the confidence of a recognized face before it's considered a
			// positive match.  Confidence values below this threshold will be considered
			// a positive match because the lower the confidence value, or distance, the
			// more confident the algorithm is that the face was correctly detected.
			lbphThreshold: 50,
			fisherThreshold: 250,
			eigenThreshold: 3000,
			// force the use of a usb webcam on raspberry pi (on other platforms this is always true automatically)
			useUSBCam: false,
			// Path to your training xml
			trainingFile: 'modules/MMM-Facial-Recognition/training.xml',
			// recognition intervall in seconds (smaller number = faster but CPU intens!)
			interval: 2,
			// Logout delay after last recognition so that a user does not get instantly logged out if he turns away from the mirror for a few seconds
			logoutDelay: 15,
			// Array with usernames (copy and paste from training script)
			users: [],
			//Module set used for strangers and if no user is detected
			defaultClass: "default",
			//Set of modules which should be shown for every user
			everyoneClass: "everyone",
			// Boolean to toggle welcomeMessage
			welcomeMessage: true
		}
	}
		module: "alert",
	},
	{
		module: "updatenotification",
		position: "top_bar"
	},
	{
		module: "clock",
		position: "top_left"
	},
	{
		module: "calendar",
		header: "Feestdagen",
		position: "top_left",
		config: {
			calendars: [
				{
					symbol: "calendar-check-o ",
					url: "webcal://ical.mac.com/ical/Dutch32Holidays.ics"
				}
			]
		}
	},
	{
		module: "compliments",
		position: "lower_third"
	},
	{
		module: "currentweather",
		position: "top_right",
		config: {
			location: "Best",
			locationID: "2759040",  //ID from http://www.openweathermap.org/help/city_list.txt
			appid: "XXX"
		}
	},
	{
		module: "weatherforecast",
		position: "top_right",
		header: "Weather Forecast",
		config: {
			location: "Best",
			locationID: "2759040",  //ID from http://www.openweathermap.org/help/city_list.txt
			appid: "XXX"
		}
	},
	{
		module: "newsfeed",
		position: "bottom_bar",
		config: {
			feeds: [
				{
					title: "Eindhovens Dagblad",
					url: "http://www.ed.nl/best-e-o/rss.xml"
				}
			],
			showSourceTitle: true,
			showPublishDate: true
		}
	},
]
</code></pre>
<p dir="auto">};</p>
<p dir="auto">/*************** DO NOT EDIT THE LINE BELOW ***************/<br />
if (typeof module !== “undefined”) {module.exports = config;}</p>
]]></description><link>https://forum.magicmirror.builders/topic/2464/help-with-config-and-adding-modules</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 09:15:39 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2464.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 May 2017 12:07:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help with config and adding modules on Mon, 01 May 2017 12:45:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrfloppy88" aria-label="Profile: mrfloppy88">@<bdi>mrfloppy88</bdi></a> No, not at all.  I’m sure someone here does.  If you take it out and it works again I would leave it out and do some forum searching to see if others had the same issues :)</p>
]]></description><link>https://forum.magicmirror.builders/post/20892</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/20892</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Mon, 01 May 2017 12:45:52 GMT</pubDate></item><item><title><![CDATA[Reply to Help with config and adding modules on Mon, 01 May 2017 12:29:11 GMT]]></title><description><![CDATA[<p dir="auto">damn, after that edit it just shows black</p>
<p dir="auto">i tried the jshint, but i dont understand why it would be expecting some characters</p>
<p dir="auto">are you familliar with the face recognition module?</p>
<p dir="auto"><a href="https://pastebin.com/640sLwqB" target="_blank" rel="noopener noreferrer nofollow ugc">https://pastebin.com/640sLwqB</a></p>
]]></description><link>https://forum.magicmirror.builders/post/20890</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/20890</guid><dc:creator><![CDATA[mrfloppy88]]></dc:creator><pubDate>Mon, 01 May 2017 12:29:11 GMT</pubDate></item><item><title><![CDATA[Reply to Help with config and adding modules on Mon, 01 May 2017 12:20:23 GMT]]></title><description><![CDATA[<p dir="auto">thanks, yes i backup after every successfull edit ^^</p>
]]></description><link>https://forum.magicmirror.builders/post/20888</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/20888</guid><dc:creator><![CDATA[mrfloppy88]]></dc:creator><pubDate>Mon, 01 May 2017 12:20:23 GMT</pubDate></item><item><title><![CDATA[Reply to Help with config and adding modules on Mon, 01 May 2017 12:19:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrfloppy88" aria-label="Profile: mrfloppy88">@<bdi>mrfloppy88</bdi></a> That’s because I missed the starting bracket to the next module… I corrected it… try that :)</p>
<p dir="auto">In the future to avoid issues backup your working config.js to config.bak because you know that works then add your module :)</p>
<p dir="auto">Also put your config.js through this -&gt;  <a href="http://jshint.com/" target="_blank" rel="noopener noreferrer nofollow ugc">http://jshint.com/</a><br />
It will tell you where your issue is :)</p>
]]></description><link>https://forum.magicmirror.builders/post/20887</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/20887</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Mon, 01 May 2017 12:19:35 GMT</pubDate></item><item><title><![CDATA[Reply to Help with config and adding modules on Mon, 01 May 2017 12:18:02 GMT]]></title><description><![CDATA[<p dir="auto">im sorry… but that did not help</p>
<p dir="auto">could you show me the the lines as they should be?</p>
<p dir="auto"><a href="https://pastebin.com/b6hpEDzc" target="_blank" rel="noopener noreferrer nofollow ugc">https://pastebin.com/b6hpEDzc</a> this might be easier to read</p>
]]></description><link>https://forum.magicmirror.builders/post/20886</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/20886</guid><dc:creator><![CDATA[mrfloppy88]]></dc:creator><pubDate>Mon, 01 May 2017 12:18:02 GMT</pubDate></item><item><title><![CDATA[Reply to Help with config and adding modules on Mon, 01 May 2017 12:17:07 GMT]]></title><description><![CDATA[<p dir="auto">Missing a coma right after and just before alert module and the starting bracket for the next module… :)</p>
<pre><code>       {
	module: 'MMM-Facial-Recognition',
	config: {
		// 1=LBPH | 2=Fisher | 3=Eigen
		recognitionAlgorithm: 1,
		// Threshold for the confidence of a recognized face before it's considered a
		// positive match.  Confidence values below this threshold will be considered
		// a positive match because the lower the confidence value, or distance, the
		// more confident the algorithm is that the face was correctly detected.
		lbphThreshold: 50,
		fisherThreshold: 250,
		eigenThreshold: 3000,
		// force the use of a usb webcam on raspberry pi (on other platforms this is always true automatically)
		useUSBCam: false,
		// Path to your training xml
		trainingFile: 'modules/MMM-Facial-Recognition/training.xml',
		// recognition intervall in seconds (smaller number = faster but CPU intens!)
		interval: 2,
		// Logout delay after last recognition so that a user does not get instantly logged out if he turns away from the mirror for a few seconds
		logoutDelay: 15,
		// Array with usernames (copy and paste from training script)
		users: [],
		//Module set used for strangers and if no user is detected
		defaultClass: "default",
		//Set of modules which should be shown for every user
		everyoneClass: "everyone",
		// Boolean to toggle welcomeMessage
		welcomeMessage: true
	}
    },
    {
    module: "alert",
},
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/20885</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/20885</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Mon, 01 May 2017 12:17:07 GMT</pubDate></item></channel></rss>