<?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 &#x2F;&#x2F; Multiple caldendar instances overwritting each other..(maximumNumberOfDays)]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">I don’t exactly what I’m doing wrong or if the issue comes from the module itself.</p>
<p dir="auto">My issue :</p>
<p dir="auto">I’m running 3 instances of the default calendar.<br />
In some case, the 3 calendars instances are pointing to the same calendars URL, nevertheless, I want the 3 instances to have a different “maximumNumberOfDays” config.</p>
<p dir="auto">The “maximumNumberOfDays” of instance 1 is overwritten by the 2 second instance settings, and so on…Making my wish to have different setups impossible as all the 3 instances are using same “maximumNumberOfDays”.</p>
<p dir="auto">You will find my code hereunder, help would be highly appreciated!!</p>
<pre><code>		{
			disabled: false,
			module: "calendar",
			header: "Aujourd'hui",
			position: "top_left",
			config: {
				timeFormat: "absolute",
				maximumNumberOfDays: 1,
				excludedEvents: [],
				calendars: [
					{       
						// Anniversaires
						symbol: "birthday-cake",
						url: "https://1.ics",
						maximumNumberOfDays: 1
					},
					{
						// Calendrier Fabrice
						symbol: "calendar-check",
						url: "https://2.ics",
						maximumNumberOfDays: 1
					},
					{
						// Calendrier Audrey
						symbol: "calendar-check-o",
						url: "https://3.ics",
						maximumNumberOfDays: 1
					},
					{
						// Calendrier Férié
						symbol: "flag",
						url: "https://4.ics",
						maximumNumberOfDays: 1
					},
					{
						// Vacances Scolaires
						symbol: "sun",
						url: "http://www.5.ics",
						maximumNumberOfDays: 1
					},
					{
						// Repas
						symbol: "utensils",
						url: "https://6.ics",
						maximumNumberOfDays: 1
					}
				],
			}
		},
		{
			disabled: true,
			module: "calendar",
			header: "Demain",
			position: "top_left",
			config: {
				timeFormat: "absolute",
				maximumNumberOfDays: 2,
				excludedEvents: [],
				calendars: [
					{
						// Anniversaires
						symbol: "birthday-cake",
						url: "https://1.ics",
						maximumNumberOfDays: 2
					},
					{
						// Calendrier Fabrice
						symbol: "calendar-check",
						url: "https://2",
						maximumNumberOfDays: 2
					},
					{
						// Calendrier Audrey
						symbol: "calendar-check-o",
						url: "https://3.ics",
						maximumNumberOfDays: 2
					},
					{
						// Calendrier Férié
						symbol: "flag",
						url: "https://4.ics",
						maximumNumberOfDays: 2
					},
					{
						// Vacances Scolaires
						symbol: "sun",
						url: "http://5.ics",
						maximumNumberOfDays: 2
					},
					{
						// Repas
						symbol: "utensils",
						url: "https://6.ics",
						maximumNumberOfDays: 2	
					}
				],
			}
		},
		{
			disabled: false,
			module: "calendar",
			header: "Evénements à venir",
			position: "top_left",
			config: {
				timeFormat: "absolute",
				maximumNumberOfDays: 62,
				excludedEvents: ["Poney"],
				calendars: [
					{
						// Anniversaires
						symbol: "birthday-cake",
						url: "https://1.ics",
						//maximumNumberOfDays: 62
					},
					{
						// Calendrier Fabrice
						symbol: "calendar-check",
						url: "https://2.ics",
						//maximumNumberOfDays: 62
					},
					{
						// Calendrier Audrey
						symbol: "calendar-check-o",
						url: "https://3.ics",
						//maximumNumberOfDays: 62
					},
					{
						// Calendrier Férié
						symbol: "flag",
						url: "https://4.ics",
						//maximumNumberOfDays: 62
					},
					{
						// Vacances Scolaires
						symbol: "sun",
						url: "http://5.ics",
						//maximumNumberOfDays: 62
					}
				],
			}
		},
</code></pre>
<p dir="auto">NOTE : it seems that the issue was already pointed out on Github, and MichMich even stating that this could be easy to solve, but I clearly have no clue how…<br />
<a href="https://github.com/MichMich/MagicMirror/issues/1109" target="_blank" rel="noopener noreferrer nofollow ugc">GitHub Issue #1109</a></p>
<p dir="auto">Anyway, really hope someone could support my need…</p>
<p dir="auto">Thanks in advance</p>
]]></description><link>https://forum.magicmirror.builders/topic/9584/default-calendar-multiple-caldendar-instances-overwritting-each-other-maximumnumberofdays</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 02:30:11 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/9584.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Jan 2019 19:46:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Default Calendar &#x2F;&#x2F; Multiple caldendar instances overwritting each other..(maximumNumberOfDays) on Sun, 11 Oct 2020 11:48:17 GMT]]></title><description><![CDATA[<p dir="auto">Some additional Information:</p>
<p dir="auto">In calendarfetcher.js and nodehelper.js is the following line:</p>
<pre><code>const Log = require("../../../js/logger.js");
</code></pre>
<p dir="auto">If you copy the “calendar” folder down to “modules” this reference will be broken.<br />
So you have to change to:</p>
<pre><code>const Log = require("../../js/logger.js");
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/83184</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/83184</guid><dc:creator><![CDATA[hiesscher]]></dc:creator><pubDate>Sun, 11 Oct 2020 11:48:17 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar &#x2F;&#x2F; Multiple caldendar instances overwritting each other..(maximumNumberOfDays) on Sun, 03 Feb 2019 13:53:16 GMT]]></title><description><![CDATA[<p dir="auto">yes indeed.</p>
]]></description><link>https://forum.magicmirror.builders/post/51434</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/51434</guid><dc:creator><![CDATA[bolish]]></dc:creator><pubDate>Sun, 03 Feb 2019 13:53:16 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar &#x2F;&#x2F; Multiple caldendar instances overwritting each other..(maximumNumberOfDays) on Sun, 03 Feb 2019 13:51:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bolish" aria-label="Profile: bolish">@<bdi>bolish</bdi></a> so, are you running BOTH calender modules, default and your ‘new’ one?</p>
]]></description><link>https://forum.magicmirror.builders/post/51433</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/51433</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 03 Feb 2019 13:51:43 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar &#x2F;&#x2F; Multiple caldendar instances overwritting each other..(maximumNumberOfDays) on Sun, 03 Feb 2019 13:50:59 GMT]]></title><description><![CDATA[<p dir="auto">no… just copy paste, renaming.</p>
]]></description><link>https://forum.magicmirror.builders/post/51432</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/51432</guid><dc:creator><![CDATA[bolish]]></dc:creator><pubDate>Sun, 03 Feb 2019 13:50:59 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar &#x2F;&#x2F; Multiple caldendar instances overwritting each other..(maximumNumberOfDays) on Sun, 03 Feb 2019 13:50:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bolish" aria-label="Profile: bolish">@<bdi>bolish</bdi></a> did u change something from the original?</p>
]]></description><link>https://forum.magicmirror.builders/post/51431</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/51431</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 03 Feb 2019 13:50:16 GMT</pubDate></item><item><title><![CDATA[Reply to Default Calendar &#x2F;&#x2F; Multiple caldendar instances overwritting each other..(maximumNumberOfDays) on Sun, 03 Feb 2019 13:48:42 GMT]]></title><description><![CDATA[<p dir="auto">well… I believe it’s far from being perfect…but at least it seems to do the job…</p>
<p dir="auto">I created a “new” module which does exactly same / has the same code as the one I want to use, but has a different name (folder named “MMM-Calendar2” -&gt; file named “MMM-Calendar2.js” -&gt; within the line Module.register(‘MMM_Calendar2’)).<br />
Not in the default module folder but into the 3rd party module folder…</p>
]]></description><link>https://forum.magicmirror.builders/post/51430</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/51430</guid><dc:creator><![CDATA[bolish]]></dc:creator><pubDate>Sun, 03 Feb 2019 13:48:42 GMT</pubDate></item></channel></rss>