<?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[config file errors?]]></title><description><![CDATA[<p dir="auto">/* Magic Mirror Config Sample<br />
*</p>
<ul>
<li>By Michael Teeuw <a href="https://michaelteeuw.nl" target="_blank" rel="noopener noreferrer nofollow ugc">https://michaelteeuw.nl</a></li>
<li>MIT Licensed.</li>
<li></li>
<li>For more information on how you can configure this file</li>
<li>See <a href="https://github.com/MichMich/MagicMirror#configuration" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror#configuration</a></li>
<li></li>
</ul>
<p dir="auto">*/</p>
<p dir="auto">var config = {<br />
address: “localhost”, 	// Address to listen on, can be:<br />
// - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface<br />
// - another specific IPv4/6 to listen on a specific interface<br />
// - “0.0.0.0”, “::” to listen on any interface<br />
// Default, when address config is left out or empty, is “localhost”<br />
port: 8080,<br />
basePath: “/”, 	// The URL path where MagicMirror is hosted. If you are using a Reverse proxy<br />
// you must set the sub path here. basePath must end with a /<br />
ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”], 	// Set [] to allow all IP addresses<br />
// or add a specific IPv4 of 192.168.1.5 :<br />
// [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.1.5”],<br />
// or IPv4 range of 192.168.3.0 --&gt; 192.168.3.15 use CIDR format :<br />
// [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.3.0/28”],</p>
<pre><code>useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true

language: "en",
logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
timeFormat: 24,
units: "metric",
// serverOnly:  true/false/"local" ,
// local for armv6l processors, default
//   starts serveronly and then starts chrome browser
// false, default for all NON-armv6l devices
// true, force serveronly mode, because you want to.. no UI on this device

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",
					url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"					}
			]
		}
	},
	{
		module: "compliments",
		position: "lower_third"
	},
	{
		module: "currentweather",
		position: "top_right",
		config: {
			location: "New York",
			locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
			appid: "c2647e77b86f9ed7922d3cb499204d0"
		}
	},
	{
		module: "weatherforecast",
		position: "top_right",
		header: "Weather Forecast",
		config: {
			location: "New York",
			locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
			appid: "YOUR_OPENWEATHER_API_KEY"
		}
	},

]
</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/15241/config-file-errors</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 21:08:37 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/15241.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Jul 2021 23:13:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to config file errors? on Thu, 08 Jul 2021 23:31:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/adamhrastich" aria-label="Profile: adamhrastich">@<bdi>adamhrastich</bdi></a> It’s alright. Once you get it working, you might want to look into MMM-Config as well. <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> does a hell of a good job automating a ton of this.</p>
]]></description><link>https://forum.magicmirror.builders/post/92657</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92657</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Thu, 08 Jul 2021 23:31:36 GMT</pubDate></item><item><title><![CDATA[Reply to config file errors? on Thu, 08 Jul 2021 23:30:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a>  oh I’m stupid… thanks so much I can not believe I didn’t see that</p>
]]></description><link>https://forum.magicmirror.builders/post/92656</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92656</guid><dc:creator><![CDATA[adamhrastich]]></dc:creator><pubDate>Thu, 08 Jul 2021 23:30:49 GMT</pubDate></item><item><title><![CDATA[Reply to config file errors? on Thu, 08 Jul 2021 23:29:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/adamhrastich" aria-label="Profile: adamhrastich">@<bdi>adamhrastich</bdi></a> in your config subdirectory. <code>~/MagicMirror/config/</code></p>
]]></description><link>https://forum.magicmirror.builders/post/92655</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92655</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Thu, 08 Jul 2021 23:29:20 GMT</pubDate></item><item><title><![CDATA[Reply to config file errors? on Thu, 08 Jul 2021 23:28:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a> said in <a href="/post/92651">config file errors?</a>:</p>
<blockquote></blockquote>
<p dir="auto">pi@raspberrypi:~/MagicMirror $ mv config.js.sample config.js<br />
mv: cannot stat ‘config.js.sample’: No such file or directory</p>
]]></description><link>https://forum.magicmirror.builders/post/92654</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92654</guid><dc:creator><![CDATA[adamhrastich]]></dc:creator><pubDate>Thu, 08 Jul 2021 23:28:29 GMT</pubDate></item><item><title><![CDATA[Reply to config file errors? on Thu, 08 Jul 2021 23:24:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/adamhrastich" aria-label="Profile: adamhrastich">@<bdi>adamhrastich</bdi></a> Well, there’s your problem. The config file should be <code>config.js</code> - if you’re trying to use the sample as a base, change to the correct by using <code>mv config.js.sample config.js </code></p>
]]></description><link>https://forum.magicmirror.builders/post/92651</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92651</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Thu, 08 Jul 2021 23:24:40 GMT</pubDate></item><item><title><![CDATA[Reply to config file errors? on Thu, 08 Jul 2021 23:22:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a>  I did and this is what came up.<br />
‘’'pi@raspberrypi:~/MagicMirror $ npm run config:check</p>
<blockquote>
<p dir="auto">magicmirror@2.16.0 config:check /home/pi/MagicMirror<br />
node js/check_config.js</p>
</blockquote>
<p dir="auto">[08.07.2021 18:14.40.549] [ERROR] File not found:  /home/pi/MagicMirror/config/config.js<br />
/home/pi/MagicMirror/js/check_config.js:38<br />
throw new Error(“No config file present!”);<br />
^</p>
<p dir="auto">Error: No config file present!<br />
at checkConfigFile (/home/pi/MagicMirror/js/check_config.js:38:9)<br />
at Object. (/home/pi/MagicMirror/js/check_config.js:73:1)<br />
at Module._compile (internal/modules/cjs/loader.js:778:30)<br />
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)<br />
at Module.load (internal/modules/cjs/loader.js:653:32)<br />
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)<br />
at Function.Module._load (internal/modules/cjs/loader.js:585:3)<br />
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)<br />
at startup (internal/bootstrap/node.js:283:19)<br />
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)<br />
npm ERR! code ELIFECYCLE<br />
npm ERR! errno 1<br />
npm ERR! magicmirror@2.16.0 config:check: <code>node js/check_config.js</code><br />
npm ERR! Exit status 1<br />
npm ERR!<br />
npm ERR! Failed at the magicmirror@2.16.0 config:check script.<br />
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.</p>
<p dir="auto">npm ERR! A complete log of this run can be found in:<br />
npm ERR!     /home/pi/.npm/_logs/2021-07-08T23_14_40_681Z-debug.log<br />
‘’’</p>
]]></description><link>https://forum.magicmirror.builders/post/92649</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92649</guid><dc:creator><![CDATA[adamhrastich]]></dc:creator><pubDate>Thu, 08 Jul 2021 23:22:17 GMT</pubDate></item><item><title><![CDATA[Reply to config file errors? on Thu, 08 Jul 2021 23:20:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/adamhrastich" aria-label="Profile: adamhrastich">@<bdi>adamhrastich</bdi></a> Like this:</p>
<pre><code>pi@officemirror:~ $ cd MagicMirror/
pi@officemirror:~/MagicMirror $ npm run config:check

&gt; magicmirror@2.16.0 config:check /home/pi/MagicMirror
&gt; node js/check_config.js

[08.07.2021 16:19.03.333] [INFO]  Checking file...  /home/pi/MagicMirror/config/config.js
[08.07.2021 16:19.03.575] [INFO]  Your configuration file doesn't contain syntax errors :)

</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/92648</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92648</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Thu, 08 Jul 2021 23:20:24 GMT</pubDate></item><item><title><![CDATA[Reply to config file errors? on Thu, 08 Jul 2021 23:18:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a> I ran that code and it says the file is not found</p>
]]></description><link>https://forum.magicmirror.builders/post/92646</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92646</guid><dc:creator><![CDATA[adamhrastich]]></dc:creator><pubDate>Thu, 08 Jul 2021 23:18:04 GMT</pubDate></item><item><title><![CDATA[Reply to config file errors? on Thu, 08 Jul 2021 23:16:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/adamhrastich" aria-label="Profile: adamhrastich">@<bdi>adamhrastich</bdi></a> the way you posted it, the forum corrupted it.</p>
<p dir="auto">Please place ``` around the code next time.</p>
<p dir="auto">That being said, go to the magicmirror directory, and type:</p>
<pre><code>npm run config:check
</code></pre>
<p dir="auto">It’ll help you solve the errors.</p>
]]></description><link>https://forum.magicmirror.builders/post/92644</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92644</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Thu, 08 Jul 2021 23:16:10 GMT</pubDate></item><item><title><![CDATA[Reply to config file errors? on Thu, 08 Jul 2021 23:15:23 GMT]]></title><description><![CDATA[<p dir="auto">it says when I run npm run config:check says it’s missing</p>
]]></description><link>https://forum.magicmirror.builders/post/92643</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92643</guid><dc:creator><![CDATA[adamhrastich]]></dc:creator><pubDate>Thu, 08 Jul 2021 23:15:23 GMT</pubDate></item></channel></rss>