<?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[MMM Compliments]]></title><description><![CDATA[<p dir="auto">Hello everybody,<br />
my MagicMirror is running very well and now I wanted to adjust the compliments a bit.<br />
I made compliments for different times of the day, but the times I have chosen are ignored. Where do I have to copy this that it works “right”? :-)</p>
<pre><code>             {
                        module: "compliments",
                        position: "lower_third",
                        config: {
                                   updateInterval: "90000",
                                   morningStartTime: "3",
                                   morningEndTime: "12",
                                   afternoonStartTime: "16",
                                   afternoonEndTime: "20",
                                   eveningStartTime: "20",
                                   eveningEndTime: "23",
                                   compliments: {
                                   anytime: [
                                   "Hey there sexy!",
                                   "Beauty!",
                                   "20.09.2019 what a Day!",
                                   "On a scale from 1 to 10, you're an 15!",
                                   "You`re like sunshine on a rainy day",
                                   "You`re wonderful",
                                   "You, me -home!",
                                   "8000 Watt -immer großes Blatt!",
                                   "I could just hang here all day!",
                                   "Let me high five you \nIN THE FACE!",
                                   "Lorem ipsum"
                                   ],
                                   morning: [
                                   "Good morning, handsome!",
                                   "Enjoy your day!",
                                   "How was your sleep?",
                                "Start your day!",
                                   "Gude!",
                                   "Start your day with a \nsmile!",
                                   "Jetzt erstmal Kaffee!"  
                                   ],
                                   afternoon: [
                                   "Hello, beauty!",
                                   "You look sexy!",
                                   "Looking good today!",
                                   "Hard day at work, wasn`t it?",
                                   "Gude!",
                                   "Sit down for a sec",
                                   "Durchatmen Krone richten \n weiter machen!",
                                   "For every kiss you give me \nI will give you three!" 
                                   ],
                                   evening: [
                                   "Wow, you look hot!",
                                   "You look nice!",
                                   "Hi, sexy!",
                                   "Let the evening \nbe-GIN",
                                   "Gude!",
                                   "Time for some \nBunga Bunga!",
                                   "Night Owl!" 
                                   ]
                             }
                       }
                },
</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/11451/mmm-compliments</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 16:57:47 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/11451.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Oct 2019 10:58:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM Compliments on Sat, 26 Oct 2019 11:54:34 GMT]]></title><description><![CDATA[<p dir="auto">Looking at the code you only have morning start and end, and afternoon start and end.</p>
<p dir="auto">so eveningStartTime &amp; eveningEndTime does nothing.</p>
<p dir="auto">So basically the time between <code>afternoonEndTime</code> and <code>morningStartTime</code> is considered evening.<br />
Anything put in <code>anytime</code>-compliments will be shown regardless of time.</p>
<p dir="auto">So if you really want to test it then remove the compliments from anytime and just run 2 morning, 2 afternoon and 2 evening compliments (alter the times you see it change)</p>
<pre><code>
             {
                        module: "compliments",
                        position: "lower_third",
                        config: {
                                   updateInterval: 90000,
                                   morningStartTime: 14,
                                   morningEndTime: 15,
                                   afternoonStartTime: 15,
                                   afternoonEndTime: 16,
                                   compliments: {
                                   anytime: [
                                   "anytime",
                                   ],
                                   morning: [
                                   "morning1",
                                   "morning2",
                                   ],
                                   afternoon: [
                                   "afternoon1",
                                   "afternoon2",
                                   ],
                                   evening: [
                                   "evening1",
                                   "evening2",
                                   ]
                             }
                       }
                },
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/63342</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63342</guid><dc:creator><![CDATA[broberg]]></dc:creator><pubDate>Sat, 26 Oct 2019 11:54:34 GMT</pubDate></item><item><title><![CDATA[Reply to MMM Compliments on Sat, 26 Oct 2019 11:48:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kollen" aria-label="Profile: Kollen">@<bdi>Kollen</bdi></a> the code says</p>
<p dir="auto">if current hour is between morning start/end, then use from morning list<br />
else if current hour is between afternoon start/end then use afternoon list,<br />
else use evening list if present</p>
<p dir="auto">the default times are</p>
<pre><code>                morningStartTime: 3,
		morningEndTime: 12,
		afternoonStartTime: 12,
		afternoonEndTime: 17
</code></pre>
<pre><code>	if (hour &gt;= this.config.morningStartTime &amp;&amp; hour &lt; this.config.morningEndTime &amp;&amp; this.config.compliments.hasOwnProperty("morning")) {
			compliments = this.config.compliments.morning.slice(0);
		} else if (hour &gt;= this.config.afternoonStartTime &amp;&amp; hour &lt; this.config.afternoonEndTime &amp;&amp; this.config.compliments.hasOwnProperty("afternoon")) {
			compliments = this.config.compliments.afternoon.slice(0);
		} else if(this.config.compliments.hasOwnProperty("evening")) {
			compliments = this.config.compliments.evening.slice(0);
		}
</code></pre>
<p dir="auto">it then adds the current weathertype<br />
it then adds the anytime list<br />
then takes a random selection of all those</p>
<p dir="auto">what time was it when u tested?</p>
]]></description><link>https://forum.magicmirror.builders/post/63341</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63341</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 26 Oct 2019 11:48:42 GMT</pubDate></item><item><title><![CDATA[Reply to MMM Compliments on Sat, 26 Oct 2019 11:16:55 GMT]]></title><description><![CDATA[<p dir="auto">hmm i just changed it from " " to ,  after the numbers, after a reboot i got a message for afternoon, so it showed no changes.<br />
Do I have to change anything?</p>
]]></description><link>https://forum.magicmirror.builders/post/63339</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63339</guid><dc:creator><![CDATA[Kollen]]></dc:creator><pubDate>Sat, 26 Oct 2019 11:16:55 GMT</pubDate></item><item><title><![CDATA[Reply to MMM Compliments on Sat, 26 Oct 2019 11:10:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/broberg" aria-label="Profile: broberg">@<bdi>broberg</bdi></a> OMG I will try ASAP that it was so easy I would not have thought! Thank you for the quick help!</p>
]]></description><link>https://forum.magicmirror.builders/post/63338</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63338</guid><dc:creator><![CDATA[Kollen]]></dc:creator><pubDate>Sat, 26 Oct 2019 11:10:55 GMT</pubDate></item><item><title><![CDATA[Reply to MMM Compliments on Sat, 26 Oct 2019 11:06:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kollen" aria-label="Profile: Kollen">@<bdi>Kollen</bdi></a></p>
<p dir="auto">You don’t use the <code>"</code> marks around the numbers.</p>
<p dir="auto">so :</p>
<pre><code>updateInterval: 90000,
morningStartTime: 3,
morningEndTime: 12,
afternoonStartTime: 16,
afternoonEndTime: 20,
eveningStartTime: 20,
eveningEndTime: 23,
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/63337</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63337</guid><dc:creator><![CDATA[broberg]]></dc:creator><pubDate>Sat, 26 Oct 2019 11:06:27 GMT</pubDate></item></channel></rss>