<?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[Trouble with config file, Error Create Config File]]></title><description><![CDATA[<p dir="auto">So when I boot up the mirror I get the unable to validate config error, and gives me a need to create config screen when booted.  How do I fix?</p>
<pre><code>/* Magic Mirror Config Sample
 *
 * By Michael Teeuw http://michaelteeuw.nl
 * MIT Licensed.
 */

var config = {
        port: 8080,
        ipWhitelist: ["::ffff:192.168.1/24", "127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses.

        language: "en",
        timeFormat: "12",
        units: "imperial",

        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://p55-calendars.icloud.com/published/2/TDWYwJjbv2BpxxxxxxxxxxvpNrb4SlxsvZM-xxxxxxx\"
                                        }
                                ]
                        }
                },
                {
                        module: "compliments",
                        position: "lower_third"
                },
                {
                        module: "currentweather",
                        position: "top_right",
                        config: {
                                location: "",
                                locationID: "4460243",  //ID from http://www.openweathermap.org/help/city_list.txt
                                appid: "1b3ccd1809XXXXXXXXb5830e444aa1"
                        }
                },
                {
                        module: "weatherforecast",
                        position: "top_right",
                        header: "Weather Forecast",
                        config: {
                                location: "",
                                locationID: "4460243",  //ID from http://www.openweathermap.org/help/city_list.txt
                                appid: "1b3ccd1809XXXXXXXXb5830e444aa1"
                        }
                },
                {
                        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>
]]></description><link>https://forum.magicmirror.builders/topic/2516/trouble-with-config-file-error-create-config-file</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 22:57:13 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2516.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 May 2017 21:38:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trouble with config file, Error Create Config File on Mon, 08 May 2017 15:31:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/twosix" aria-label="Profile: twosix">@<bdi>twosix</bdi></a> in all your examples you’re escaping the closing quote</p>
<pre><code>{
  symbol: "calendar-check-o ",
  url: "webcal://p55-calendars.icloud.com/published/2/TDWYwJjbv2BpM3HLxxxxxxxxxxxxxxxxxvZM-3TNpXNgZXsi192SI7M6pxxxxxxxxxxxxxxxxxxxxxxxXZCkcApre7Kg\"
}
</code></pre>
<p dir="auto">you can see there that the next line is green which indicates that the string isn’t closed there probably. This happen because of the <code>\</code> right in front of the quote character.</p>
<p dir="auto">If the backslash doesn’t belong to your string remove it, if you need the backslash you have to escape the backslash by adding a second. like this:</p>
<pre><code>{
  symbol: "calendar-check-o ",
  url: "webcal://p55-calendars.icloud.com/published/2/TDWYwJjbv2BpM3HLxxxxxxxxxxxxxxxxxvZM-3TNpXNgZXsi192SI7M6pxxxxxxxxxxxxxxxxxxxxxxxXZCkcApre7Kg\\"
}
</code></pre>
<p dir="auto">here you can see that the closing curly brace is no longer highlighted in green because the string is closed properly.</p>
]]></description><link>https://forum.magicmirror.builders/post/21308</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21308</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Mon, 08 May 2017 15:31:26 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with config file, Error Create Config File on Mon, 08 May 2017 14:30:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mykle1" aria-label="Profile: Mykle1">@<bdi>Mykle1</bdi></a> Okay I did that, and figured out the problem is my calendar…is there anyway I can fix that?</p>
]]></description><link>https://forum.magicmirror.builders/post/21307</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21307</guid><dc:creator><![CDATA[twosix]]></dc:creator><pubDate>Mon, 08 May 2017 14:30:22 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with config file, Error Create Config File on Mon, 08 May 2017 01:24:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/twosix" aria-label="Profile: twosix">@<bdi>twosix</bdi></a> said in <a href="/post/21291">Trouble with config file, Error Create Config File</a>:</p>
<blockquote>
<p dir="auto">it worked fine, but then after I put my stuff in<br />
Please correct syntax errors.</p>
</blockquote>
<p dir="auto">If the default config works then this should be telling you that you are not making config entries correctly. Start again from the default config, making sure it runs, then add one module at a time, making sure it still works after each entry, then backing up your config each time you successfully add a module. I don’t know what else to offer you. I fixed your first config and tested it.</p>
]]></description><link>https://forum.magicmirror.builders/post/21294</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21294</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Mon, 08 May 2017 01:24:56 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with config file, Error Create Config File on Mon, 08 May 2017 01:17:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bhepler" aria-label="Profile: bhepler">@<bdi>bhepler</bdi></a> Thank you! I did this and it reset my config file, and that booted up fine, but when I put my information in, and started it:<br />
cd MagicMirror<br />
npm start</p>
<p dir="auto">I got the "WARNING? Could not validate config file. Please correct syntax errors. Starting with default configuration.”</p>
<p dir="auto">Then load it said “Please create config file.”</p>
]]></description><link>https://forum.magicmirror.builders/post/21293</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21293</guid><dc:creator><![CDATA[twosix]]></dc:creator><pubDate>Mon, 08 May 2017 01:17:21 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with config file, Error Create Config File on Mon, 08 May 2017 01:14:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a> Thank you, I ran that through my code and there appears to be no problems…I just can’t figure out what the problem is…I boot the mirror up normally by going:</p>
<p dir="auto">cd Magic Mirror<br />
npm start</p>
<p dir="auto">and then I get the “WARNING? Could not validate config file. Please correct syntax errors. Starting with default configuration.”</p>
<p dir="auto">and then when it loads the “Please create config file.”</p>
]]></description><link>https://forum.magicmirror.builders/post/21292</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21292</guid><dc:creator><![CDATA[twosix]]></dc:creator><pubDate>Mon, 08 May 2017 01:14:33 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with config file, Error Create Config File on Mon, 08 May 2017 01:08:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mykle1" aria-label="Profile: Mykle1">@<bdi>Mykle1</bdi></a> I did the same, I fired up the sample config and it worked fine, but then after I put my stuff in, it gave me the “WARNING? Could not validate config file.  Please correct syntax errors.  Starting with default configuration.”</p>
<p dir="auto">And then when I loads up it says, “Please create config file.”</p>
]]></description><link>https://forum.magicmirror.builders/post/21291</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21291</guid><dc:creator><![CDATA[twosix]]></dc:creator><pubDate>Mon, 08 May 2017 01:08:35 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with config file, Error Create Config File on Mon, 08 May 2017 15:25:57 GMT]]></title><description><![CDATA[<p dir="auto">Yes you must do a cp to have a config.js to start with BUT before you make changes ALWAYS have a backup that works… ALWAYS.</p>
<p dir="auto">IF you’re not sure and you’re having config.js problems run it through here …</p>
<p dir="auto"><a href="http://esprima.org/demo/validate.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://esprima.org/demo/validate.html</a></p>
<p dir="auto">It will tell you where your errors are… I mean it’s nice of people to fix things but if you’re working on this at 2AM and nobody is here… you’re not getting your mirror to work until the next day ;)</p>
]]></description><link>https://forum.magicmirror.builders/post/21290</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21290</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Mon, 08 May 2017 15:25:57 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with config file, Error Create Config File on Mon, 08 May 2017 00:28:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/twosix" aria-label="Profile: twosix">@<bdi>twosix</bdi></a> said in <a href="/post/21274">Trouble with config file, Error Create Config File</a>:</p>
<blockquote>
<p dir="auto">I get the unable to validate config error, and <strong>gives me a need to create config screen</strong> when booted.  How do I fix?</p>
</blockquote>
<p dir="auto">The “need to create config” error message usually means that you have not copied the example configuration file to the production file. You’ll want to copy the <code>config.js.sample</code> file to it’s final destination of <code>config.js</code>. You can use this command (assuming you haven’t changed the paths and you’re using a standard Raspberry Pi):<br />
<code>cp /home/pi/MagicMirror/config/config.js.example /home/pi/MagicMirror/config/config.js</code></p>
]]></description><link>https://forum.magicmirror.builders/post/21289</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21289</guid><dc:creator><![CDATA[bhepler]]></dc:creator><pubDate>Mon, 08 May 2017 00:28:32 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with config file, Error Create Config File on Mon, 08 May 2017 00:09:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/twosix" aria-label="Profile: twosix">@<bdi>twosix</bdi></a> said in <a href="/post/21286">Trouble with config file, Error Create Config File</a>:</p>
<blockquote>
<p dir="auto">Thank you, but that didn’t work</p>
</blockquote>
<p dir="auto">Uhh, I used that config and it fired up just fine</p>
]]></description><link>https://forum.magicmirror.builders/post/21287</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21287</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Mon, 08 May 2017 00:09:43 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with config file, Error Create Config File on Mon, 08 May 2017 15:25:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mykle1" aria-label="Profile: Mykle1">@<bdi>Mykle1</bdi></a> Thank you, but that didn’t work…I looked back at my code and realized that the full calendar link got cut off, and it did have a quote on the end of it…so I am still not sure what is happening, thanks though!</p>
<pre><code>language: "en",
    timeFormat: "12",
    units: "imperial",

    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://p55-calendars.icloud.com/published/2/TDWYwJjbv2BpM3HLxxxxxxxxxxxxxxxxxvZM-3TNpXNgZXsi192SI7M6pxxxxxxxxxxxxxxxxxxxxxxxXZCkcApre7Kg\"
                                    }
                            ]
                    }
            },
            {
                    module: "compliments",
                    position: "lower_third"
            },
            {
                    module: "currentweather",
                    position: "top_right",
                    config: {
                            location: "",
                            locationID: "4460243",  //ID from http://www.openweathermap.org/help/city_list.txt
                            appid: "1b3ccd18090bb8048b4bb5830e444aa1"
                    }
            },
            {
                    module: "weatherforecast",
                    position: "top_right",
                    header: "Weather Forecast",
                    config: {
                            location: "",
                            locationID: "4460243",  //ID from http://www.openweathermap.org/help/city_list.txt
                            appid: "1b3ccd18090bb8048b4bb5830e444aa1"
                    }
            },
            {
                    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
                    }
            },
    ]
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/21286</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21286</guid><dc:creator><![CDATA[twosix]]></dc:creator><pubDate>Mon, 08 May 2017 15:25:25 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with config file, Error Create Config File on Sun, 07 May 2017 22:14:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/twosix" aria-label="Profile: twosix">@<bdi>twosix</bdi></a> said in <a href="/post/21274">Trouble with config file, Error Create Config File</a>:</p>
<blockquote>
<p dir="auto">How do I fix?</p>
</blockquote>
<p dir="auto">Here! I did it for you. You had some crazy quote characters and a missing quote at the end of your calendar url. Just put your API back in for weather.</p>
<pre><code>var config = {
port: 8080,
ipWhitelist: ["::ffff:192.168.1/24", "127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses.

    language: "en",
    timeFormat: "12",
    units: "imperial",

    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://p55-calendars.icloud.com/published/2/TDWYwJjbv2BpM3HLonfCqBBO$"
                                    }
                            ]
                    }
            },
            {
                    module: "compliments",
                    position: "lower_third"
            },
            {
                    module: "currentweather",
                    position: "top_right",
                    config: {
                            location: "",
                            locationID: "4460243",  //ID from http://www.openweathermap.org/help/city_list.txt
                            appid: "YOUR API KEY"
                    }
            },
            {
                    module: "weatherforecast",
                    position: "top_right",
                    header: "Weather Forecast",
                    config: {
                            location: "",
                            locationID: "4460243",  //ID from http://www.openweathermap.org/help/city_list.txt
                            appid: "YOUR API KEY"
                    }
            },
            {
                    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>
]]></description><link>https://forum.magicmirror.builders/post/21278</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21278</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Sun, 07 May 2017 22:14:41 GMT</pubDate></item></channel></rss>