<?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[A module that changes the text color of a Calender when the next event happens in a certain amount of time.]]></title><description><![CDATA[<p dir="auto">A module that changes the text color of a Calender when the next event happens in a certain amount of time.</p>
<p dir="auto">before i made this i asked if it is even possible people said yes but now i would like to see it happen.<br />
the only issue for me is the fact that i am really bad at programming i wouldn’t even know where to start.</p>
<p dir="auto">but the purpose of this would be that if there is 5 minutes left till a event the text would turn red. or something like that.</p>
<p dir="auto">could somebody help me with making it or by makking it i would appreciate it really much.</p>
<p dir="auto">Kind regards,<br />
~M</p>
]]></description><link>https://forum.magicmirror.builders/topic/11205/a-module-that-changes-the-text-color-of-a-calender-when-the-next-event-happens-in-a-certain-amount-of-time</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 17:32:40 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/11205.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Sep 2019 06:49:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to A module that changes the text color of a Calender when the next event happens in a certain amount of time. on Tue, 24 Sep 2019 13:32:31 GMT]]></title><description><![CDATA[<p dir="auto">@sean i sent it</p>
]]></description><link>https://forum.magicmirror.builders/post/61611</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61611</guid><dc:creator><![CDATA[MerlijnAlmer]]></dc:creator><pubDate>Tue, 24 Sep 2019 13:32:31 GMT</pubDate></item><item><title><![CDATA[Reply to A module that changes the text color of a Calender when the next event happens in a certain amount of time. on Tue, 24 Sep 2019 13:27:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/merlijnalmer" aria-label="Profile: MerlijnAlmer">@<bdi>MerlijnAlmer</bdi></a><br />
show me your configuration. <a href="mailto:eouia0819@gmail.com" target="_blank" rel="noopener noreferrer nofollow ugc">eouia0819@gmail.com</a></p>
]]></description><link>https://forum.magicmirror.builders/post/61609</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61609</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 24 Sep 2019 13:27:42 GMT</pubDate></item><item><title><![CDATA[Reply to A module that changes the text color of a Calender when the next event happens in a certain amount of time. on Tue, 24 Sep 2019 13:26:57 GMT]]></title><description><![CDATA[<p dir="auto">@Sean i might seem to be a absolute knob head for you but when i put the codes in my .js file it breaks the file.<br />
or is the code supposed to go in to the .css file?</p>
]]></description><link>https://forum.magicmirror.builders/post/61607</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61607</guid><dc:creator><![CDATA[MerlijnAlmer]]></dc:creator><pubDate>Tue, 24 Sep 2019 13:26:57 GMT</pubDate></item><item><title><![CDATA[Reply to A module that changes the text color of a Calender when the next event happens in a certain amount of time. on Mon, 23 Sep 2019 10:54:24 GMT]]></title><description><![CDATA[<p dir="auto">okay i was just in the process of taking the screen apart to use calendarExt2 thank you for your quick and usefull help.</p>
<p dir="auto">~M</p>
]]></description><link>https://forum.magicmirror.builders/post/61570</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61570</guid><dc:creator><![CDATA[MerlijnAlmer]]></dc:creator><pubDate>Mon, 23 Sep 2019 10:54:24 GMT</pubDate></item><item><title><![CDATA[Reply to A module that changes the text color of a Calender when the next event happens in a certain amount of time. on Mon, 23 Sep 2019 10:53:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/merlijnalmer" aria-label="Profile: MerlijnAlmer">@<bdi>MerlijnAlmer</bdi></a><br />
If you are using MMM-CalendarExt2, you can <code>transform</code> title of an event by replacing with description field of event.<br />
<img src="/assets/uploads/files/1569235896331-6b16e36a-ae34-45b5-b861-0d15007aebfa-image.png" alt="0_1569235896047_6b16e36a-ae34-45b5-b861-0d15007aebfa-image.png" class=" img-fluid img-markdown" /></p>
<pre><code class="language-js">views: [
  ...
  {
    name: "VIEW3",
    mode: "upcoming",
    position:"top_center",
    transform:(event) =&gt; {
      event.title = event.description
      if (event.startDate &lt; ((Date.now()/1000 + 60*15))) {
        event.className = "urgent"
        event.icon = "flat-color-icons:alarm-clock"
      }
      return event
    }
  },
  ...
]
</code></pre>
<p dir="auto">:D</p>
]]></description><link>https://forum.magicmirror.builders/post/61569</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61569</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 23 Sep 2019 10:53:04 GMT</pubDate></item><item><title><![CDATA[Reply to A module that changes the text color of a Calender when the next event happens in a certain amount of time. on Mon, 23 Sep 2019 10:48:18 GMT]]></title><description><![CDATA[<p dir="auto">yes just showing the discrition of a event.</p>
<p dir="auto">they make an event for that day and in the description part they fill in what they need the room for.<br />
so instead of seeing thier names on the screen they would like to see the description.<br />
location is not needed seen as the screens are at the room.</p>
<p dir="auto">thanks for all your help BTW.</p>
<p dir="auto">~M</p>
]]></description><link>https://forum.magicmirror.builders/post/61568</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61568</guid><dc:creator><![CDATA[MerlijnAlmer]]></dc:creator><pubDate>Mon, 23 Sep 2019 10:48:18 GMT</pubDate></item><item><title><![CDATA[Reply to A module that changes the text color of a Calender when the next event happens in a certain amount of time. on Mon, 23 Sep 2019 10:45:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/merlijnalmer" aria-label="Profile: MerlijnAlmer">@<bdi>MerlijnAlmer</bdi></a><br />
Do you mean showing Description or Location of event?<br />
<img src="/assets/uploads/files/1569235516292-4febf88f-bfbb-4913-bf8b-149dd78ae0c7-image.png" alt="0_1569235515752_4febf88f-bfbb-4913-bf8b-149dd78ae0c7-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/61567</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61567</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 23 Sep 2019 10:45:22 GMT</pubDate></item><item><title><![CDATA[Reply to A module that changes the text color of a Calender when the next event happens in a certain amount of time. on Mon, 23 Sep 2019 10:07:59 GMT]]></title><description><![CDATA[<p dir="auto">@Sean you wouldn’t happen to know a way to have the description of a event be displayed instead of the organizer?</p>
<p dir="auto">I am using the magic mirror framework for a roommanagement system for the company i work for and they use a Office calendar to manage the room but now it shows who reserved the room and not the reason why.</p>
]]></description><link>https://forum.magicmirror.builders/post/61565</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61565</guid><dc:creator><![CDATA[MerlijnAlmer]]></dc:creator><pubDate>Mon, 23 Sep 2019 10:07:59 GMT</pubDate></item><item><title><![CDATA[Reply to A module that changes the text color of a Calender when the next event happens in a certain amount of time. on Mon, 23 Sep 2019 10:04:41 GMT]]></title><description><![CDATA[<p dir="auto">yes thank you @Sean thats exactly what i mean.</p>
<p dir="auto">~M</p>
]]></description><link>https://forum.magicmirror.builders/post/61564</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61564</guid><dc:creator><![CDATA[MerlijnAlmer]]></dc:creator><pubDate>Mon, 23 Sep 2019 10:04:41 GMT</pubDate></item><item><title><![CDATA[Reply to A module that changes the text color of a Calender when the next event happens in a certain amount of time. on Mon, 23 Sep 2019 08:30:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/merlijnalmer" aria-label="Profile: MerlijnAlmer">@<bdi>MerlijnAlmer</bdi></a></p>
<p dir="auto">Like this?<br />
<img src="/assets/uploads/files/1569227265517-94237994-4388-41fd-9bf7-18aea7d35bcb-image.png" alt="0_1569227265077_94237994-4388-41fd-9bf7-18aea7d35bcb-image.png" class=" img-fluid img-markdown" /><br />
<code>MMM-CalendarExt2</code> has <code>transform</code> feature so a user can change attributes of events by conditions. Above example shows the transforming of icon and class of events.</p>
<pre><code class="language-js">...
          {
            name: "VIEW3",
            mode: "upcoming",
            position:"top_center",
            transform:(event) =&gt; {
              if (event.startDate &lt; ((Date.now()/1000 + 60*60*4))) {
                event.className = "urgent"
                event.icon = "flat-color-icons:alarm-clock"
                event.title = "[URGENT] " + event.title
              }
              return event
            }
          },
...
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/61559</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61559</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 23 Sep 2019 08:30:41 GMT</pubDate></item></channel></rss>