<?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 code not working?]]></title><description><![CDATA[<p dir="auto">Hi guys… I’ve entered the code exactly as instructed, into the config.js and when I refresh MM, it wont load…</p>
<p dir="auto">This is for the MMM-Smartthings module… and I put in the ‘Token’ between the commas as indicated.</p>
<p dir="auto">I admit im no expert here, but why so many brackets at the end?<br />
I even tried just using the normal open and close brackets, like my other modules, but still no joy.</p>
<p dir="auto">Any pointers please?</p>
<p dir="auto">Using the module<br />
To use this module, add the following configuration block to the modules array in the config/config.js file:</p>
<pre><code>var config = {
    modules: [
        {
              module: "MMM-Smartthings",
              position: "top_left",
              header: "Smartthings",
              config: {
                personalAccessToken: 'your_smarthings_api_key',
                capabilities: [
                    'contactSensor',
                    'lock'
                ],
                title: "Doors &amp; Locks",
                excludedDeviceNames: [
                    'Sense-', // Contains this text
                    'Virtual Lock Test' // Or is a specific device label
                ]
              }
        }
    ]
}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/13079/config-code-not-working</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 12:30:33 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/13079.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Jun 2020 12:16:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Config code not working? on Mon, 15 Jun 2020 15:02:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johnnyboy" aria-label="Profile: johnnyboy">@<bdi>johnnyboy</bdi></a> <a href="https://forum.magicmirror.builders/topic/6808/css-101-getting-started-with-css-and-understanding-how-css-works?_=1592231548825">https://forum.magicmirror.builders/topic/6808/css-101-getting-started-with-css-and-understanding-how-css-works?_=1592231548825</a></p>
]]></description><link>https://forum.magicmirror.builders/post/77124</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/77124</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 15 Jun 2020 15:02:04 GMT</pubDate></item><item><title><![CDATA[Reply to Config code not working? on Mon, 15 Jun 2020 14:59:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
For sure I was’nt knocking him… I just followed what it said - to enter that block into Config…<br />
I’m very much a novice in this, so I just enter what I see, or be told to by members, who know far more than I… but I did say at opening post that I was unsure if there should be so many brackets at the end…</p>
<p dir="auto">But yeah, it works brilliantly… although I have quite a lot of Smartthings items… so the list goes all down the entire side of the screen, covering Compliments - Lower 3rd, and news feed - bottom bar. … so will need to make another post to find out how to reduce the font size using CSS.</p>
<p dir="auto">Thanks again Sam… you have helped restore my interest in MM again, with your help on several of my posts.</p>
]]></description><link>https://forum.magicmirror.builders/post/77123</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/77123</guid><dc:creator><![CDATA[johnnyboy]]></dc:creator><pubDate>Mon, 15 Jun 2020 14:59:18 GMT</pubDate></item><item><title><![CDATA[Reply to Config code not working? on Mon, 15 Jun 2020 14:31:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johnnyboy" aria-label="Profile: johnnyboy">@<bdi>johnnyboy</bdi></a> said in <a href="/post/77121">Config code not working?</a>:</p>
<blockquote>
<p dir="auto">but who am I to contradict the developer of that module?</p>
</blockquote>
<p dir="auto">well, you have to read what he said, you copied too much…  LOOK like this (his is correct), not BE EXACTLY  this (as he only had one module)</p>
<p dir="auto">read the modules for beginners<br />
<a href="https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners?_=1592186111969">https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners?_=1592186111969</a></p>
]]></description><link>https://forum.magicmirror.builders/post/77122</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/77122</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 15 Jun 2020 14:31:30 GMT</pubDate></item><item><title><![CDATA[Reply to Config code not working? on Mon, 15 Jun 2020 14:29:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">That did it… I just knew there were too many brackets, but who am I to contradict the developer of that module?<br />
Thanks so much for pointing me in the right direction.</p>
<pre><code>{
              module: 'MMM-Smartthings',
              position: 'top_left',
              header: 'Smartthings',
              config: {
                personalAccessToken: 'MY TOKEN GOES IN HERE',
                capabilities: [
                    'contactSensor',
                    'lock'
                ],
                title: "Doors &amp; Locks",
                excludedDeviceNames: [
                    'Sense-', // Contains this text
                    'Virtual Lock Test' // Or is a specific device label
                ]
              }
        },

{
module: 'calendar',
</code></pre>
<p dir="auto">How the instructions said to do it!</p>
<pre><code>       'contactSensor',
                    'lock'
                ],
                title: "Doors &amp; Locks",
                excludedDeviceNames: [
                    'Sense-', // Contains this text
                    'Virtual Lock Test' // Or is a specific device label
                ]
              }
        }
    ]
},
{
module: 'calendar',
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/77121</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/77121</guid><dc:creator><![CDATA[johnnyboy]]></dc:creator><pubDate>Mon, 15 Jun 2020 14:29:27 GMT</pubDate></item><item><title><![CDATA[Reply to Config code not working? on Mon, 15 Jun 2020 13:37:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johnnyboy" aria-label="Profile: johnnyboy">@<bdi>johnnyboy</bdi></a> said in <a href="/post/77116">Config code not working?</a>:</p>
<pre><code>&gt;                     'Virtual Lock Test' // Or is a specific device label
&gt;                 ]
&gt;               }
&gt;         }   &lt; -----
&gt;     ] &lt; -----
</code></pre>
<p dir="auto">well, ya got a few extra things in there</p>
<p dir="auto">every { needs a } and every [ needs a ]<br />
extras not allowed</p>
]]></description><link>https://forum.magicmirror.builders/post/77118</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/77118</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 15 Jun 2020 13:37:50 GMT</pubDate></item><item><title><![CDATA[Reply to Config code not working? on Mon, 15 Jun 2020 13:03:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">This is how it looks on screen</p>
<pre><code>/* Magic Mirror Config Sample
 *
 * By Michael Teeuw http://michaelteeuw.nl
 * MIT Licensed.
 *
 * For more information on how you can configure 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 or empty, 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"],

	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",
	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',
config: {
// The config property is optional.
// See 'Configuration options' for more information. 
                  }
},
{
module: 'clock',
position: 'top_center'
},
  {
              module: 'MMM-Smartthings',
              position: 'top_left',
              header: 'Smartthings',
              config: {
                personalAccessToken: '*****-*****-*****-*****',
                capabilities: [
                    'contactSensor',
                    'lock'
                ],
                title: "Doors &amp; Locks",
                excludedDeviceNames: [
                    'Sense-', // Contains this text
                    'Virtual Lock Test' // Or is a specific device label
                ]
              }
        }
    ]
},
{
module: 'calendar',
</code></pre>
<p dir="auto">^^^^ Above I tried with single quotes, having already tried double quotes as was indicated to</p>
<pre><code>module: "MMM-Smartthings",
              position: "top_left",
              header: "Smartthings",
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/77116</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/77116</guid><dc:creator><![CDATA[johnnyboy]]></dc:creator><pubDate>Mon, 15 Jun 2020 13:03:15 GMT</pubDate></item><item><title><![CDATA[Reply to Config code not working? on Mon, 15 Jun 2020 12:33:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johnnyboy" aria-label="Profile: johnnyboy">@<bdi>johnnyboy</bdi></a> ok, that looks pretty!..</p>
<p dir="auto">one little check…</p>
<pre><code>To use this module, add the following configuration block to the modules array in the config/config.js file:
</code></pre>
<p dir="auto">when u added, did the module block BEFORE have a trailing , (more coming),<br />
if not YOU need to add it</p>
<p dir="auto">if where you added yours, there is stuff AFTER, does THIS module block have a trailing comma (more coming), if not YOU need to add one</p>
<p dir="auto">run the config checker</p>
<pre><code>cd ~/MagicMirror
npm run config:check
</code></pre>
<p dir="auto">when u see ‘unexpected token’, that means the line before is probably missing its comma,  (more coming)</p>
]]></description><link>https://forum.magicmirror.builders/post/77112</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/77112</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 15 Jun 2020 12:33:04 GMT</pubDate></item></channel></rss>