<?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 Undeclared &#x27;module&#x27;]]></title><description><![CDATA[<p dir="auto">I’m not new to programming, but I am certainly new to scripting languages.  I’m trying to get the PI to recognize even the sample config file.  I’ve linted it and fixed a few syntactical errors, but the linter is stuck on the last line.  I’ve included a screenshot of the error messages.  Simply because I don’t know JavaScript can anyone explain these errors and how “module” is undefined?</p>
<p dir="auto"><a href="/assets/uploads/files/1491591048215-lint-output-4_7_2017.png">0_1491591046185_Lint Output 4_7_2017.PNG</a></p>
<pre><code>/* Magic Mirror Config Sample
 *
 * By Michael Teeuw http://michaelteeuw.nl
 * MIT Licensed.
 */

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

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

    module: [
        {
            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: "compliments",
            position: "lower_third"
        },
        {
            module: "currentweather",
            position: "top_right",
            config: {
                location: "New York",
                locationID: "",  //ID from http://www.openweathermap.org/help/city_list.txt
                appid: "YOUR_OPENWEATHER_API_KEY"
            }
        },
        {
            module: "weatherforecast",
            position: "top_right",
            header: "Weather Forecast",
            config: {
                location: "New York",
                locationID: "5128581",  //ID from http://www.openweathermap.org/help/city_list.txt
                appid: "YOUR_OPENWEATHER_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/topic/2254/config-file-undeclared-module</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 05:25:00 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2254.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Apr 2017 18:51:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Config File Undeclared &#x27;module&#x27; on Fri, 07 Apr 2017 21:34:12 GMT]]></title><description><![CDATA[<p dir="auto">The warning can be ignored. If you check the file as a standalone, module is undefined. If this file is loaded within the framework the content is parsed and processed and module is valid</p>
]]></description><link>https://forum.magicmirror.builders/post/19223</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/19223</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Fri, 07 Apr 2017 21:34:12 GMT</pubDate></item><item><title><![CDATA[Reply to Config File Undeclared &#x27;module&#x27; on Fri, 07 Apr 2017 18:54:13 GMT]]></title><description><![CDATA[<p dir="auto">Proper image.</p>
<p dir="auto"><img src="/assets/uploads/files/1491591196207-lint-output-4_7_2017.png" alt="0_1491591194907_Lint Output 4_7_2017.PNG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/19212</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/19212</guid><dc:creator><![CDATA[laruatta]]></dc:creator><pubDate>Fri, 07 Apr 2017 18:54:13 GMT</pubDate></item></channel></rss>