<?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[Calendar module fetchInterval]]></title><description><![CDATA[<p dir="auto">Is the <code>fetchInterval</code> property of the standard calendar module really restricted to <code>Possible values: 1000 - 86400000</code> like specified in the documentation? If so, two questions:</p>
<ol>
<li>Where do I find the code restricting it? I couldn’t find it while reading through the code.</li>
<li>Why is it restricted? Is there any reason to limit the update interval at all? (especially, why giving an upper bound? The lower bound is somewhat reasonable…)</li>
</ol>
<p dir="auto">Thx.</p>
]]></description><link>https://forum.magicmirror.builders/topic/2398/calendar-module-fetchinterval</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 12:16:20 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2398.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Apr 2017 15:50:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Calendar module fetchInterval on Sat, 06 May 2017 13:37:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anhalter42" aria-label="Profile: Anhalter42">@<bdi>Anhalter42</bdi></a> I spend some time going through the calendar module code, i can read it fairly well, for the syntax i dont understand there is always google. After review, I see why there are no separate fetchInterval’s for each calendar. Each calendar’s events are added to an array, then sorted together also the dom (html table) is created from scratch on each interval. Without a tremendous restructuring of code, setting up separate interval timers, persisting the ical events array, etc. the value to adding this is limited.</p>
<p dir="auto">Your comments help me immensely, thank you. I reviewed the template module, i’l start playing with that and do a Hello World module exercise when i return home at the end of the month.</p>
]]></description><link>https://forum.magicmirror.builders/post/21223</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21223</guid><dc:creator><![CDATA[cohron]]></dc:creator><pubDate>Sat, 06 May 2017 13:37:10 GMT</pubDate></item><item><title><![CDATA[Reply to Calendar module fetchInterval on Thu, 04 May 2017 13:51:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cohron" aria-label="Profile: cohron">@<bdi>cohron</bdi></a> Just in case this helps you:<br />
If you want to change something / contribute to an existing project you have to fork it, change what you want to change and create a Pull-Request (which then gets reviewed and accepted/rejected).<br />
For developing your own module you just need to create a new project, i think. In case you didn’t see it, there is a handy <a href="https://github.com/roramirez/MagicMirror-Module-Template" target="_blank" rel="noopener noreferrer nofollow ugc">template</a> module you could use as base.</p>
]]></description><link>https://forum.magicmirror.builders/post/21137</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21137</guid><dc:creator><![CDATA[Anhalter42]]></dc:creator><pubDate>Thu, 04 May 2017 13:51:53 GMT</pubDate></item><item><title><![CDATA[Reply to Calendar module fetchInterval on Thu, 04 May 2017 13:42:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anhalter42" aria-label="Profile: Anhalter42">@<bdi>Anhalter42</bdi></a> Definately, and excellent point about not changing the existing option name. I’m hoping to implement a (swimming) pool module in the next couple of months. I haven’t coded (VB) in over a decade so i am reading up about Github (great concept btw). Not sure if i need to branch or pull request or what just yet. I think i can handle learning JS and use the existing modules to reference. This will be a great exercise for me before i jump into full coding.</p>
]]></description><link>https://forum.magicmirror.builders/post/21135</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21135</guid><dc:creator><![CDATA[cohron]]></dc:creator><pubDate>Thu, 04 May 2017 13:42:04 GMT</pubDate></item><item><title><![CDATA[Reply to Calendar module fetchInterval on Wed, 03 May 2017 20:59:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/strawberry-3.141" aria-label="Profile: strawberry-3.141">@<bdi>strawberry-3.141</bdi></a> Aha! Yeah, I misunderstood. “less than a day” = “less frequently than at least once per day”, as opposed to my interpretation. My interpretation was “a frequency interval of less than one day”.</p>
<p dir="auto">Interesting question: Does the calculation that writes out the “xx days” string only occur on the fetch? For example, if I have an event in four days and I don’t perform a fetch for a week, will it correctly change the text to read “day after tomorrow” at the appropriate time?</p>
<p dir="auto">If I were only showing holidays on my calendar then such a thing might make sense. How often do holidays change, right?</p>
]]></description><link>https://forum.magicmirror.builders/post/21097</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21097</guid><dc:creator><![CDATA[bhepler]]></dc:creator><pubDate>Wed, 03 May 2017 20:59:38 GMT</pubDate></item><item><title><![CDATA[Reply to Calendar module fetchInterval on Wed, 03 May 2017 17:26:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bhepler" aria-label="Profile: bhepler">@<bdi>bhepler</bdi></a> I’m the same oppinion as you are, probably didn’t explain it well. I can’t see a point why you would care to fetch less frequent than a day.</p>
]]></description><link>https://forum.magicmirror.builders/post/21092</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21092</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Wed, 03 May 2017 17:26:46 GMT</pubDate></item><item><title><![CDATA[Reply to Calendar module fetchInterval on Wed, 03 May 2017 16:48:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/strawberry-3.141" aria-label="Profile: strawberry-3.141">@<bdi>strawberry-3.141</bdi></a> - I can. If you have a personal calendar (Google, Outlook, Apple, etc.) that you update frequently, you probably want to refresh it hourly or so. My wife and I use our Google calendars extensively to keep each other up to date on everything from doctor’s appointments, working late, running errands at the store/cleaners/bank. Basically anything that might throw our expected schedules off. It keeps us from starting unnecessary search parties (my wife has a serious health condition - if she doesn’t show up on time, there is a non-trivial chance she’s unconscious somewhere)</p>
<p dir="auto">When I get the home mirror set up, we’ll probably shift to a shared calendar that we can both add events.</p>
]]></description><link>https://forum.magicmirror.builders/post/21089</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21089</guid><dc:creator><![CDATA[bhepler]]></dc:creator><pubDate>Wed, 03 May 2017 16:48:28 GMT</pubDate></item><item><title><![CDATA[Reply to Calendar module fetchInterval on Wed, 03 May 2017 15:15:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cohron" aria-label="Profile: cohron">@<bdi>cohron</bdi></a> Well… yes. Are you interested in implementing this? If you don’t rename the existing option <code>fetchInterval</code> (instead call the new options <code>overwriteFetchInterval</code> or something), it should be compatible with existing config files and therefore likely to be accepted.</p>
]]></description><link>https://forum.magicmirror.builders/post/21085</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21085</guid><dc:creator><![CDATA[Anhalter42]]></dc:creator><pubDate>Wed, 03 May 2017 15:15:18 GMT</pubDate></item><item><title><![CDATA[Reply to Calendar module fetchInterval on Wed, 03 May 2017 13:28:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anhalter42" aria-label="Profile: Anhalter42">@<bdi>Anhalter42</bdi></a> so should the fetchInterval be moved to the calendar array since some calendars only need to be updated once (holidays) and others more often. just a thought have a defaultFetchInterval at the module level and fetchInterval for calendar level?</p>
]]></description><link>https://forum.magicmirror.builders/post/21082</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21082</guid><dc:creator><![CDATA[cohron]]></dc:creator><pubDate>Wed, 03 May 2017 13:28:23 GMT</pubDate></item><item><title><![CDATA[Reply to Calendar module fetchInterval on Wed, 03 May 2017 12:40:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/strawberry-3.141" aria-label="Profile: strawberry-3.141">@<bdi>strawberry-3.141</bdi></a>  Thx. Mh usually you are correct, but for example holidays as given in the example config of this module don’t change ever. There is no point in updating this hourly (unnecessary traffic for self and server). Instead, for something like this it would be sufficient to update yearly or even “never” (it updates at start and I guess you usually restart the mirror once a year).</p>
]]></description><link>https://forum.magicmirror.builders/post/21080</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21080</guid><dc:creator><![CDATA[Anhalter42]]></dc:creator><pubDate>Wed, 03 May 2017 12:40:42 GMT</pubDate></item><item><title><![CDATA[Reply to Calendar module fetchInterval on Wed, 03 May 2017 08:46:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anhalter42" aria-label="Profile: Anhalter42">@<bdi>Anhalter42</bdi></a> Maybe there was one someday and the code was changed over time and the readme wasn’t adjusted accordingly or it is as a direction for users that aren’t familiar with those numbers so they don’t put something weird in it. Either way I can’t see a reason to sync a calendar less then a day?</p>
]]></description><link>https://forum.magicmirror.builders/post/21050</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21050</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Wed, 03 May 2017 08:46:17 GMT</pubDate></item><item><title><![CDATA[Reply to Calendar module fetchInterval on Tue, 02 May 2017 00:31:26 GMT]]></title><description><![CDATA[<p dir="auto">I’m still interested in this. Does anyone know?</p>
<p dir="auto">As far as I can tell, no explicit restriction to the <code>fetchInterval</code> is implemented in this module. Assuming my observation is correct, this would imply that the actual max. value for <code>fetchInterval</code> is <code>2147483647</code> (~ 24.8 days) according to stackoverflow <a href="http://stackoverflow.com/questions/3468607/why-does-settimeout-break-for-large-millisecond-delay-values" target="_blank" rel="noopener noreferrer nofollow ugc">Why does setTimeout() “break” for large millisecond delay values?</a>.</p>
]]></description><link>https://forum.magicmirror.builders/post/20937</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/20937</guid><dc:creator><![CDATA[Anhalter42]]></dc:creator><pubDate>Tue, 02 May 2017 00:31:26 GMT</pubDate></item></channel></rss>