<?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[Compliments module external file]]></title><description><![CDATA[<p dir="auto">Hello, I wanted to use a file for the compliments module, but it doesn’t take it</p>
<p dir="auto">Here is the part in config.json</p>
<pre><code>{
module: 'compliments',
position: 'middle_center',
   config: { 
     remoteFile: '/home/pi/MagicMirror/modules/MMM-Compliments/compliments.json'
   }
},
</code></pre>
<p dir="auto">Someone have an idea ?<br />
Thanks</p>
]]></description><link>https://forum.magicmirror.builders/topic/14963/compliments-module-external-file</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 22:15:07 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/14963.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Apr 2021 20:24:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compliments module external file on Tue, 20 Apr 2021 17:38:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cheapdad" aria-label="Profile: cheapdad">@<bdi>cheapdad</bdi></a> read the links in my signature below</p>
]]></description><link>https://forum.magicmirror.builders/post/90908</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90908</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 20 Apr 2021 17:38:59 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Tue, 20 Apr 2021 14:33:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cheapdad" aria-label="Profile: cheapdad">@<bdi>cheapdad</bdi></a> right…</p>
<p dir="auto">if you DON’T add things to config.js then the DEFAULTS apply<br />
(whatever is in the module)</p>
]]></description><link>https://forum.magicmirror.builders/post/90902</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90902</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 20 Apr 2021 14:33:04 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Tue, 20 Apr 2021 14:28:55 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> I’m not logged into my pi ATM so I can’t post code, but that’s not what’s in my config.js.  My config.js has only two lines for “compliments” - that it exists and position.</p>
<p dir="auto">This is not my actual file, but it looks essentially like this:</p>
<pre><code>{
		module: "compliments",
		position: "lower_third",	
		}
</code></pre>
<p dir="auto">In having this conversation, it looks like I have to add the config header and lines to do what I want and then edit that.</p>
]]></description><link>https://forum.magicmirror.builders/post/90901</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90901</guid><dc:creator><![CDATA[CheapDad]]></dc:creator><pubDate>Tue, 20 Apr 2021 14:28:55 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Tue, 20 Apr 2021 14:16:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cheapdad" aria-label="Profile: cheapdad">@<bdi>cheapdad</bdi></a> i don’t understand</p>
<p dir="auto">in config.js</p>
<pre><code>{ 
 module:"compliments",
position:".....",
config: { 

		compliments: {
			anytime: ["Hey there sexy!"],
			morning: ["Good morning, handsome!", "Enjoy your day!", "How was your sleep?"],
			afternoon: ["Hello, beauty!", "You look sexy!", "Looking good today!"],
			evening: ["Wow, you look hot!", "You look nice!", "Hi, sexy!"],
			"....-01-01": ["Happy new year!"]
		},
}
}
</code></pre>
<p dir="auto">edit away</p>
<p dir="auto">never touch the source file…</p>
<p dir="auto">this is the MM model,<br />
what ever is in a modules defaults:{} section<br />
can be overridden in config.js<br />
usually that is all in the module <a href="http://README.md" target="_blank" rel="noopener noreferrer nofollow ugc">README.md</a>  file as part of the instructions</p>
]]></description><link>https://forum.magicmirror.builders/post/90899</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90899</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 20 Apr 2021 14:16:18 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Tue, 20 Apr 2021 14:08:51 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> Thanks, that’s very helpful.  I imagine I can simply edit that compliments.js file, since I can always download another one if I want to return to default.</p>
<p dir="auto">Alternatively, I could copy/paste a second set of those lines, edit them, and “no comment” the defaults.  (I think that’s the correct term.)  However, that would add/leave in unnecessary lines of code, which strikes me as inefficient.</p>
]]></description><link>https://forum.magicmirror.builders/post/90898</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90898</guid><dc:creator><![CDATA[CheapDad]]></dc:creator><pubDate>Tue, 20 Apr 2021 14:08:51 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Tue, 20 Apr 2021 13:52:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cheapdad" aria-label="Profile: cheapdad">@<bdi>cheapdad</bdi></a></p>
<p dir="auto">in the core compliments.js file  is the default setting</p>
<pre><code>defaults: {
		compliments: {
			anytime: ["Hey there sexy!"],
			morning: ["Good morning, handsome!", "Enjoy your day!", "How was your sleep?"],
			afternoon: ["Hello, beauty!", "You look sexy!", "Looking good today!"],
			evening: ["Wow, you look hot!", "You look nice!", "Hi, sexy!"],
			"....-01-01": ["Happy new year!"]
		},
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/90896</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90896</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 20 Apr 2021 13:52:13 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Tue, 20 Apr 2021 13:51:02 GMT]]></title><description><![CDATA[<p dir="auto">Understood, but the entry in my config.js for just the line that says “compliments.”  There’s no indication in config.js where that pulls from.  The add-on compliments modules have extra lines with a website address, etc., but I don’t see where the core module is getting what it puts on the screen.</p>
]]></description><link>https://forum.magicmirror.builders/post/90895</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90895</guid><dc:creator><![CDATA[CheapDad]]></dc:creator><pubDate>Tue, 20 Apr 2021 13:51:02 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Tue, 20 Apr 2021 13:48:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cheapdad" aria-label="Profile: cheapdad">@<bdi>cheapdad</bdi></a> you should not edit THAT content</p>
<p dir="auto">you can copy into your own file and edit from there, OR add it to the config.js</p>
<p dir="auto">general rule… unless there is bug u are fixing short term, or a feature u are adding,<br />
do NOT edit the module content (any file) in the defaults folder…</p>
<p dir="auto">and overall should never edit the installed module files at all…</p>
<p dir="auto">config.js is designed to allow to override the settings defined by the modules</p>
]]></description><link>https://forum.magicmirror.builders/post/90893</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90893</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 20 Apr 2021 13:48:02 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Tue, 20 Apr 2021 13:44:50 GMT]]></title><description><![CDATA[<p dir="auto">May I ask a follow on question?  Is the source of the core compliments editable?  Meaning, not the source code, but the source of the sayings that appear on the screen.  I like the existing compliments but would like to customize what actually appears on the screen.</p>
]]></description><link>https://forum.magicmirror.builders/post/90891</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90891</guid><dc:creator><![CDATA[CheapDad]]></dc:creator><pubDate>Tue, 20 Apr 2021 13:44:50 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Mon, 19 Apr 2021 22:41: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> Thank you</p>
]]></description><link>https://forum.magicmirror.builders/post/90878</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90878</guid><dc:creator><![CDATA[HanaO00]]></dc:creator><pubDate>Mon, 19 Apr 2021 22:41:15 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Mon, 19 Apr 2021 22:35:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hanao00" aria-label="Profile: hanao00">@<bdi>hanao00</bdi></a> said in <a href="/post/90876">Compliments module external file</a>:</p>
<blockquote>
<p dir="auto">He needs the extension of the file</p>
</blockquote>
<p dir="auto">yes, exact name</p>
<p dir="auto">and for this module, the extension MUST be .json</p>
]]></description><link>https://forum.magicmirror.builders/post/90877</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90877</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 19 Apr 2021 22:35:29 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Mon, 19 Apr 2021 22:33:59 GMT]]></title><description><![CDATA[<p dir="auto">Oh perfect, thanks ! He needs the extension of the file</p>
]]></description><link>https://forum.magicmirror.builders/post/90876</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90876</guid><dc:creator><![CDATA[HanaO00]]></dc:creator><pubDate>Mon, 19 Apr 2021 22:33:59 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Mon, 19 Apr 2021 22:27:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hanao00" aria-label="Profile: hanao00">@<bdi>hanao00</bdi></a></p>
<p dir="auto">if the file upload fails, the defaults are used…</p>
<p dir="auto">open the developers window, ctrl-shift-i on the pi keyboard,<br />
select the console tab, and scroll up, or enter some unique part of the module name in the filter field<br />
to slim down messages to the  module</p>
<p dir="auto">make sure the name is exact…</p>
]]></description><link>https://forum.magicmirror.builders/post/90875</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90875</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 19 Apr 2021 22:27:49 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Mon, 19 Apr 2021 22:19:25 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> Thank you I hadn’t paid attention, I corrected the case but it still uses the default compliments</p>
]]></description><link>https://forum.magicmirror.builders/post/90874</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90874</guid><dc:creator><![CDATA[HanaO00]]></dc:creator><pubDate>Mon, 19 Apr 2021 22:19:25 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Mon, 19 Apr 2021 21:59:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hanao00" aria-label="Profile: hanao00">@<bdi>hanao00</bdi></a> every letter matters</p>
<p dir="auto">its</p>
<pre><code>remoteFile
</code></pre>
<p dir="auto">not</p>
<pre><code>remotefile
</code></pre>
<p dir="auto">on linux things are case sensitive<br />
javascript is case sensitive on all platforms…</p>
]]></description><link>https://forum.magicmirror.builders/post/90873</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90873</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 19 Apr 2021 21:59:49 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Mon, 19 Apr 2021 20:46:28 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> Thanks for your reply, MMM-Compliments was a folder that i make for customs compliments, but now the path for compliments is :</p>
<pre><code>/home/pi/MagicMirror/modules/default/compliments/
</code></pre>
<p dir="auto">A screen of my config for compliments, but doesn’t work</p>
<p dir="auto"><img src="/assets/uploads/files/1618865184661-screenshot-2021-04-19_22-43-53.png" alt="Screenshot-2021-04-19_22-43-53.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/90872</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90872</guid><dc:creator><![CDATA[HanaO00]]></dc:creator><pubDate>Mon, 19 Apr 2021 20:46:28 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module external file on Mon, 19 Apr 2021 20:28:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hanao00" aria-label="Profile: hanao00">@<bdi>hanao00</bdi></a> it either has to be IN the compliments folder  and you use JUST the name, OR its <a href="http://someserver" target="_blank" rel="noopener noreferrer nofollow ugc">http://someserver</a>…/path_tofile</p>
<p dir="auto">so, in your case, just use the filename</p>
<p dir="auto">also, the path is wrong<br />
you coded</p>
<pre><code>{
module: 'compliments',
</code></pre>
<p dir="auto">but then coded this for the path  (no mmm and capital letters matter on PI )</p>
<pre><code>modules/MMM-Compliments
</code></pre>
<p dir="auto">the module folder name is compliments<br />
this is where the file should be…</p>
<pre><code>modules/default/compliments
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/90871</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90871</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 19 Apr 2021 20:28:19 GMT</pubDate></item></channel></rss>