<?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[Possible Error in My Code?]]></title><description><![CDATA[<p dir="auto">Help a noob please.  I am trying to configure the clock module.  Says there are syntax errors in my code when I add “config” and add parameters.  It runs fine without the config added.  What am I doing wrong?  Thanks from a noob.</p>
<p dir="auto">Code:</p>
<pre><code class="language-/*"> *
 * By Michael Teeuw http://michaelteeuw.nl
 * MIT Licensed.
 *
 * For more information how you can configurate this file
 * See https://github.com/MichMich/MagicMirror#configuration
 *
 */

var config = {
        address: "localhost", // Address to listen on, can be:
                              // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                              // - another specific IPv4/6 to listen on a specific interface
                              // - "", "0.0.0.0", "::" to listen on any interface
                              // Default, when address config is left out, is "localhost"
        port: 8080,
        ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
                                                               // or add a specific IPv4 of 192.168.1.5 :
                                                               // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                                                               // or IPv4 range of 192.168.3.0 --&gt; 192.168.3.15 use CIDR format :
                                                               // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],

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

        modules: [
                {
                        module: "alert",
                },
                {
                        module: "updatenotification",
                        position: "top_bar"
                },
                {
                        module: "clock",
                        position: "top_left"
                        config: {
                                timeFormat: "12",
                                displaySeconds: "false",
                                showPeriod: "true",
                                timezone: "America/New_York"
                        }
                },
        ]

};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/5300/possible-error-in-my-code</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 02:54:40 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/5300.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Oct 2017 23:48:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 23:55:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wiltify" aria-label="Profile: Wiltify">@<bdi>Wiltify</bdi></a> said in <a href="/post/29751">Possible Error in My Code?</a>:</p>
<blockquote>
<p dir="auto">Mykle, thanks for pushing me to learn :) Already a huge fan of this community.</p>
</blockquote>
<p dir="auto">Ahh, you’re welcome, mate.</p>
]]></description><link>https://forum.magicmirror.builders/post/29787</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29787</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Wed, 18 Oct 2017 23:55:25 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 13:13:49 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> @Sean  Ha, I got so sucked up into adding modules I forgot to reply.  Thanks Sean for pointing that out, I ran a command, which I can’t remember but it ended with "Config:check: and looks for errors, and it pointed out out the brackets so I changed those as well as something else.  Mykle, thanks for pushing me to learn :) Already a huge fan of this community.</p>
]]></description><link>https://forum.magicmirror.builders/post/29751</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29751</guid><dc:creator><![CDATA[Wiltify]]></dc:creator><pubDate>Wed, 18 Oct 2017 13:13:49 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 11:14:37 GMT]]></title><description><![CDATA[<p dir="auto">@Sean</p>
<p dir="auto">Haha Sean, I was testing <a class="plugin-mentions-user plugin-mentions-a" href="/user/wiltify" aria-label="Profile: Wiltify">@<bdi>Wiltify</bdi></a> to see if he could notice the difference between his post and the entry from the README. I didn’t even notice the <code>[]</code>. Good catch!</p>
]]></description><link>https://forum.magicmirror.builders/post/29748</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29748</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Wed, 18 Oct 2017 11:14:37 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 06:42:46 GMT]]></title><description><![CDATA[<p dir="auto"><code>config: []</code> ???<br />
Usually config field is not array. So I think <code>{}</code> is right.</p>
]]></description><link>https://forum.magicmirror.builders/post/29737</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29737</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 18 Oct 2017 06:42:46 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 02:04:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wiltify" aria-label="Profile: Wiltify">@<bdi>Wiltify</bdi></a></p>
<p dir="auto">I’m not familiar with this module. Try it as shown in the README. Try it without the brackets shown. Try it with quotes and without.</p>
<p dir="auto">There are also some differences between your entry and this entry from the module site, as you call it. Can you see them? Correct them and try again. :-)</p>
<pre><code>{
	module: 'MMM-fitbit',
	position: 'top_center',
	config: [
		credentials: {
			client_id: ,
			client_secret: ,
		},
		resources: [
			'steps',
			'floors',
			'caloriesOut',
			'distance',
			'activeMinutes',
			'sleep',
			'heart'
		],
		update_interval: 60
	]
},
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/29736</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29736</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Wed, 18 Oct 2017 02:04:53 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 01:57:36 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> Yes, but the <a href="https://github.com/SVendittelli/MMM-fitbit" target="_blank" rel="noopener noreferrer nofollow ugc">module site</a> has them inside of brackets instead of quatations, does that vary between developers formatting?</p>
]]></description><link>https://forum.magicmirror.builders/post/29735</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29735</guid><dc:creator><![CDATA[Wiltify]]></dc:creator><pubDate>Wed, 18 Oct 2017 01:57:36 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 01:55:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wiltify" aria-label="Profile: Wiltify">@<bdi>Wiltify</bdi></a></p>
<p dir="auto">I assume you removed the client id and client secret for this post?</p>
]]></description><link>https://forum.magicmirror.builders/post/29734</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29734</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Wed, 18 Oct 2017 01:55:47 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 01:52:38 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 have that, must not have copied when I brought it into here, whoops…</p>
]]></description><link>https://forum.magicmirror.builders/post/29733</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29733</guid><dc:creator><![CDATA[Wiltify]]></dc:creator><pubDate>Wed, 18 Oct 2017 01:52:38 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 01:51:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wiltify" aria-label="Profile: Wiltify">@<bdi>Wiltify</bdi></a></p>
<p dir="auto">Completely missing for the bottom</p>
<pre><code>/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/29732</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29732</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Wed, 18 Oct 2017 01:51:38 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 01:46:45 GMT]]></title><description><![CDATA[<p dir="auto">I don’t know if I downloaded the fitbit module correct, something maybe wrong in my code first?</p>
<pre><code class="language-/*"> *
 * By Michael Teeuw http://michaelteeuw.nl
 * MIT Licensed.
 *
 * For more information how you can configurate this file
 * See https://github.com/MichMich/MagicMirror#configuration
 *
 */

var config = {
        address: "localhost", // Address to listen on, can be:
                              // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                              // - another specific IPv4/6 to listen on a specific interface
                              // - "", "0.0.0.0", "::" to listen on any interface
                              // Default, when address config is left out, is "localhost"
        port: 8080,
        ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
                                                               // or add a specific IPv4 of 192.168.1.5 :
                                                               // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                                                               // or IPv4 range of 192.168.3.0 --&gt; 192.168.3.15 use CIDR format :
                                                               // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],

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

        modules: [
                {
                        module: "alert",
                },
                {
                        module: "updatenotification",
                        position: "top_bar"
                },
                {
                        module: "clock",
                        position: "top_left",
                        config: {
                                timeFormat: "12",
                                displaySeconds: "false",
                                showPeriod: "true",
                                timezone: "America/New_York"
                        }
                },
                {
                        module: "currentweather",
                        position: "top_left",
                        config: {
                                locationID: "4839416",  //ID from http://www.openweathermap.org/help/city_list.txt
                                appid: "a8fcb80620f43f70c4e6141e5e0f09dc",
                                units: "imperial",
                                roundTemp: "true",
                                degreeLabel: "true",
                                showHumidity: "true"
                        }
                },
                {
                        module: "weatherforecast",
                        position: "top_left",
                        config: {
                                locationID: "4839416",
                                appid:"a8fcb80620f43f70c4e6141e5e0f09dc",
                                units: "imperial",
                                roundTemp: "true",
                                showRainAmount: "true"
                        }
                },
                {
                        module: 'MMM-fitbit',
                        position: 'top_center',
                        config: [
                                credentials: {
                                        client_id: ,
                                        client_secret: ,
                        },
                                resources: [
                                        'steps',
                                        'floors',
                                        'caloriesOut',
                                        'distance',
                                        'activeMinutes',
                                        'sleep',
                                        'heart'
                                ],
                                update_interval: 60
                                ]
                 }
]

};</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/29731</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29731</guid><dc:creator><![CDATA[Wiltify]]></dc:creator><pubDate>Wed, 18 Oct 2017 01:46:45 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 01:05:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wiltify" aria-label="Profile: Wiltify">@<bdi>Wiltify</bdi></a> said in <a href="/post/29728">Possible Error in My Code?</a>:</p>
<blockquote>
<p dir="auto">Jeez, I didn’t even see this, sorry…  Thank you!!</p>
</blockquote>
<p dir="auto">Cowboysdude is a freakin Guru!</p>
]]></description><link>https://forum.magicmirror.builders/post/29730</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29730</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Wed, 18 Oct 2017 01:05:40 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 01:00:47 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> Jeez, I didn’t even see this, sorry…  Thank you!!</p>
]]></description><link>https://forum.magicmirror.builders/post/29728</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29728</guid><dc:creator><![CDATA[Wiltify]]></dc:creator><pubDate>Wed, 18 Oct 2017 01:00:47 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 00:20:20 GMT]]></title><description><![CDATA[<p dir="auto">You’re welcome…</p>
]]></description><link>https://forum.magicmirror.builders/post/29727</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29727</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Wed, 18 Oct 2017 00:20:20 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 00:18:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wiltify" aria-label="Profile: Wiltify">@<bdi>Wiltify</bdi></a> said in <a href="/post/29725">Possible Error in My Code?</a>:</p>
<blockquote>
<p dir="auto">Thank you, humbling moment of the day.</p>
</blockquote>
<p dir="auto">No worries, mate. We’ve all been there.</p>
]]></description><link>https://forum.magicmirror.builders/post/29726</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29726</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Wed, 18 Oct 2017 00:18:58 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 00:18:16 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></p>
<p dir="auto">Thank you, humbling moment of the day.</p>
]]></description><link>https://forum.magicmirror.builders/post/29725</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29725</guid><dc:creator><![CDATA[Wiltify]]></dc:creator><pubDate>Wed, 18 Oct 2017 00:18:16 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 00:14:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wiltify" aria-label="Profile: Wiltify">@<bdi>Wiltify</bdi></a> said in <a href="/post/29721">Possible Error in My Code?</a>:</p>
<blockquote>
<p dir="auto">position: “top_left”</p>
</blockquote>
<p dir="auto">Needs a comma <code>position: "top_left",</code></p>
]]></description><link>https://forum.magicmirror.builders/post/29724</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29724</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Wed, 18 Oct 2017 00:14:51 GMT</pubDate></item><item><title><![CDATA[Reply to Possible Error in My Code? on Wed, 18 Oct 2017 00:14:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wiltify" aria-label="Profile: Wiltify">@<bdi>Wiltify</bdi></a> said in <a href="/post/29721">Possible Error in My Code?</a>:</p>
<blockquote>
<p dir="auto">module: “clock”,<br />
position: “top_left”</p>
</blockquote>
<p dir="auto">Yes after this line in your config you didn’t add the coma</p>
<pre><code>          position: 'top_left',
</code></pre>
<p dir="auto">;)</p>
]]></description><link>https://forum.magicmirror.builders/post/29723</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/29723</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Wed, 18 Oct 2017 00:14:17 GMT</pubDate></item></channel></rss>