<?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[Default Calendar Custom Events]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I am looking to create a custom event for the default calendar and I can’t get the example in the guide to work.</p>
<p dir="auto"><a href="https://docs.magicmirror.builders/modules/calendar.html#configuration-options" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.magicmirror.builders/modules/calendar.html#configuration-options</a></p>
<p dir="auto">Here is my code …</p>
<pre><code>{
			module: "calendar",
			header: "Celebrations",
			position: "top_left",
			config: {
				calendars: [
					{
						fetchInterval: 7 * 24 * 60 * 60 * 1000,
						symbol: "calendar-check",
						maximumEntries: "8",
						customEvents: [{keyword: 'Birthday', symbol: 'birthday-cake', color: 'Gold', transform: { search: '^([^\']*) \'(\\d{4})$', replace: '$1 ($2.)', yearmatchgroup: 2}}],
						url: "https://calendar.google.comxxxxxxxxxxxxxxxxxxxxxxxxxbasic.ics"
					}
				]
			}
		},	
</code></pre>
<p dir="auto">No matter what I try I can’t get the symbols to change to the cake icon or have the birth year transformed to the persons age.</p>
<p dir="auto">All my calendar events are titled “DoogyRev Birthday '1982” a per the example. Has any one got this to work? any suggestions welcome.</p>
<p dir="auto">Thanks</p>
<p dir="auto">DoogyRev</p>
]]></description><link>https://forum.magicmirror.builders/topic/19093/default-calendar-custom-events</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 16:23:17 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19093.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Oct 2024 19:43:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Default Calendar Custom Events on Thu, 31 Oct 2024 00:31:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doogy_rev" aria-label="Profile: doogy_rev">@<bdi>doogy_rev</bdi></a> url is part of the event {} object</p>
<p dir="auto">{ url:… same as in calendar def, symbol:…, color:… keyword:, …}</p>
<p dir="auto">the url is needed cause you could have 10 calendars defined. which calendar should this customEvent  thing apply to, as there is only one customEvents list for this module instance</p>
]]></description><link>https://forum.magicmirror.builders/post/120940</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120940</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 31 Oct 2024 00:31:05 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar Custom Events on Thu, 31 Oct 2024 04:08:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doogy_rev" aria-label="Profile: doogy_rev">@<bdi>doogy_rev</bdi></a> and transform is supported<br />
from the doc</p>
<p dir="auto"><img src="/assets/uploads/files/1730347688662-img_0424.png" alt="IMG_0424.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/120944</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120944</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 31 Oct 2024 04:08:10 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar Custom Events on Thu, 31 Oct 2024 02:12:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doogy_rev" aria-label="Profile: doogy_rev">@<bdi>doogy_rev</bdi></a> cool</p>
]]></description><link>https://forum.magicmirror.builders/post/120942</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120942</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 31 Oct 2024 02:12:49 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar Custom Events on Thu, 31 Oct 2024 00:46:37 GMT]]></title><description><![CDATA[<p dir="auto">Got it, Thank you! <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
]]></description><link>https://forum.magicmirror.builders/post/120941</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120941</guid><dc:creator><![CDATA[doogy_rev]]></dc:creator><pubDate>Thu, 31 Oct 2024 00:46:37 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar Custom Events on Thu, 31 Oct 2024 00:31:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doogy_rev" aria-label="Profile: doogy_rev">@<bdi>doogy_rev</bdi></a> url is part of the event {} object</p>
<p dir="auto">{ url:… same as in calendar def, symbol:…, color:… keyword:, …}</p>
<p dir="auto">the url is needed cause you could have 10 calendars defined. which calendar should this customEvent  thing apply to, as there is only one customEvents list for this module instance</p>
]]></description><link>https://forum.magicmirror.builders/post/120940</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120940</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 31 Oct 2024 00:31:05 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar Custom Events on Wed, 30 Oct 2024 23:16:07 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>  Where am I supposed to put the calendar URL in again? not sure I am understanding.</p>
]]></description><link>https://forum.magicmirror.builders/post/120939</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120939</guid><dc:creator><![CDATA[doogy_rev]]></dc:creator><pubDate>Wed, 30 Oct 2024 23:16:07 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar Custom Events on Wed, 30 Oct 2024 23:06:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doogy_rev" aria-label="Profile: doogy_rev">@<bdi>doogy_rev</bdi></a> i don’t know about transom, i thought that was only for ext3.</p>
<p dir="auto">and you didn’t put in the url</p>
]]></description><link>https://forum.magicmirror.builders/post/120938</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120938</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 30 Oct 2024 23:06:33 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar Custom Events on Wed, 30 Oct 2024 22:25:49 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> This is useful, thanks. Based on that I now have this…</p>
<pre><code>		{
			module: "calendar",
			header: "Celebrations",
			position: "top_left",
			config: {
				colored: true,
				customEvents: [
					{keyword: 'Birthday', symbol: 'birthday-cake', color: 'Gold'},
					{transform: { search: '^([^\']*) \'(\\d{4})$', replace: '$1 ($2.)', yearmatchgroup: 2}}
				],
				calendars: [
					{
						fetchInterval: 7 * 24 * 60 * 60 * 1000,
						symbol: "calendar-check",
						maximumEntries: "8",
						url: "https://calendar.google.com/xxxxxxxxxxxxxxxxxxxxxxxxx/basic.ics"
					}
				]		
			}
		},
</code></pre>
<p dir="auto">I can get the colours working if I comment out the transform. as soon as I enable that calendar does not load. Can you see any errors in the transform string?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/120937</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120937</guid><dc:creator><![CDATA[doogy_rev]]></dc:creator><pubDate>Wed, 30 Oct 2024 22:25:49 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar Custom Events on Wed, 30 Oct 2024 21:33:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doogy_rev" aria-label="Profile: doogy_rev">@<bdi>doogy_rev</bdi></a> i posted this in discord the other day</p>
<p dir="auto">in calendar you can have multiple url sources of events that will be merged together in one output.</p>
<p dir="auto">now<br />
customEvents is a list []<br />
each entry<br />
has a url: property to match it to the url config in the calendars list[]<br />
then properties for the individual items for that url<br />
keyword<br />
symbol<br />
color</p>
<p dir="auto">keyword is the text in the event summary to match to specific events<br />
so each entry is (with the array/list marker)</p>
<pre><code class="language-js">customEvents:
[
  {  url, keyword,  symbol, color },
  {another},
  {another}
]
</code></pre>
<p dir="auto">example layout</p>
<pre><code>{
   module:'calendar',
   position:'...',
   config:{
         customEvents:[
                   {},
                   {}
          ],
          calendars:[
              {},
               {}
          }
      }
}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/120934</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120934</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 30 Oct 2024 21:33:17 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar Custom Events on Wed, 30 Oct 2024 21:27:48 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> When I put it outside the Calendar:[] I can’t get it to load.</p>
<p dir="auto">Do you have a example how it should look, I have searched other posts relating to custom events but can’t suss it.</p>
<p dir="auto">Apologies I am a noob at this :-)</p>
]]></description><link>https://forum.magicmirror.builders/post/120932</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120932</guid><dc:creator><![CDATA[doogy_rev]]></dc:creator><pubDate>Wed, 30 Oct 2024 21:27:48 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar Custom Events on Wed, 30 Oct 2024 20:10:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doogy_rev" aria-label="Profile: doogy_rev">@<bdi>doogy_rev</bdi></a> customEvents list is OUTSIDE  the calendars:[] list</p>
<p dir="auto">that is why you have to supply the url to match which calendar events to affect</p>
]]></description><link>https://forum.magicmirror.builders/post/120922</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120922</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 30 Oct 2024 20:10:13 GMT</pubDate></item></channel></rss>