<?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 - format today events with time]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I would like to format the calendar events of today and tomorrow relatively with time. All other events should be formatted in the form “ddd, D.MMM, HH:mm”.<br />
In the new version there is a new config option showTimeToday with which I should be able to do this. But I don’t get along with it and need help.<br />
The events should be displayed like this for example:</p>
<pre><code>appointment-1                 Heute, 18:00
appointment-2                Morgen, 14:00
appointment-3            Mo, 30.Okt, 09:00
</code></pre>
<p dir="auto">my config is</p>
<pre><code>{
		module: "calendar",
		header: "Nächste Termine ",
		position: "top_left",
		config: {
			fetchInterval: 600000, // 10 Minuten
			calendars: [
				{
					/* Kalender Paula */
					symbol: "female",
					url: "....ics"
				},
				{
					/* Kalender Sepp */
					symbol: "male",
					url: "....ics"
				},
			],
			maxTitleLength: 21,
			wrapEvents: false,
			dateFormat: "ddd, D.MMM, HH:mm",
			fullDayEventDateFormat: "ddd, D.MMM",
			timeFormat: "absolute",
			getRelative: 12,
			urgency: 0,
			showEnd: false,
			maximumEntries: 6,
			fade: false,
			hidePrivate: false,
			nextDaysRelative: true,
			sliceMultiDayEvents: false,
			showTimeToday: true,
		}
	},
</code></pre>
<p dir="auto">Many thanks for any help.</p>
<p dir="auto">Many greetings<br />
Sepp</p>
]]></description><link>https://forum.magicmirror.builders/topic/17307/calendar-module-format-today-events-with-time</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 23:31:54 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/17307.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Oct 2022 16:11:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to calendar module - format today events with time on Wed, 26 Oct 2022 07:53: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> Thanks a lot for your help! I’ll try it in this way</p>
]]></description><link>https://forum.magicmirror.builders/post/105514</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105514</guid><dc:creator><![CDATA[spitzlbergerj]]></dc:creator><pubDate>Wed, 26 Oct 2022 07:53:07 GMT</pubDate></item><item><title><![CDATA[Reply to calendar module - format today events with time on Tue, 25 Oct 2022 16:50:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/spitzlbergerj" aria-label="Profile: spitzlbergerj">@<bdi>spitzlbergerj</bdi></a> no way without significant code changes… sorry</p>
<p dir="auto">you can ‘most’ of the way there with</p>
<pre><code>        timeFormat: "relative",
        getRelative: 1,
        showTimeToday: false,
</code></pre>
<p dir="auto">1st is full day<br />
2nd is upcoming in 3 hours</p>
<p dir="auto"><img src="/assets/uploads/files/1666716580453-screenshot-at-2022-10-25-11-48-27.png" alt="Screenshot at 2022-10-25 11-48-27.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/105498</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105498</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 25 Oct 2022 16:50:06 GMT</pubDate></item><item><title><![CDATA[Reply to calendar module - format today events with time on Mon, 24 Oct 2022 12:23:22 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>  Thanks again for your answer. But that unfortunately still does not do the whole job</p>
<p dir="auto">config:</p>
<pre><code>maxTitleLength: 21,
wrapEvents: false,
dateFormat: "ddd, D.MMM, HH:mm",
fullDayEventDateFormat: "ddd, D.MMM",
timeFormat: "relative",
getRelative: 12,
urgency: 1,
showEnd: false,
maximumEntries: 6,
fade: false,
hidePrivate: false,
nextDaysRelative: true,
sliceMultiDayEvents: false,
showTimeToday: false,
</code></pre>
<p dir="auto">result:<br />
<img src="/assets/uploads/files/1666613317338-screenshot-2022-10-24-140832.png" alt="Screenshot 2022-10-24 140832.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I actually just want the display like with timeformat: “absolute”. Only that with the current day simply “Today” is indicated and the same perhaps also with “Tomorrow”.</p>
<p dir="auto">desired result:<br />
<img src="/assets/uploads/files/1666614174697-screenshot-2022-10-24-141714.png" alt="Screenshot 2022-10-24 141714.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Unfortunately I am too little experienced in coding the MagicMirror programs. Otherwise I would suggest a change for this, if the behavior is not achievable with the current settings.</p>
<p dir="auto">Could you, dear <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a>, do that? Thanks a lot</p>
<p dir="auto">Josef</p>
]]></description><link>https://forum.magicmirror.builders/post/105441</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105441</guid><dc:creator><![CDATA[spitzlbergerj]]></dc:creator><pubDate>Mon, 24 Oct 2022 12:23:22 GMT</pubDate></item><item><title><![CDATA[Reply to calendar module - format today events with time on Mon, 24 Oct 2022 11:15:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/spitzlbergerj" aria-label="Profile: spitzlbergerj">@<bdi>spitzlbergerj</bdi></a> according to the code</p>
<p dir="auto">showTimeToday must be false, and dateFornat must be ‘relative’, not absolute</p>
<p dir="auto"><img src="/assets/uploads/files/1666610049515-screenshot_20221024-061305_chrome-resized.jpg" alt="Screenshot_20221024-061305_Chrome.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/105439</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105439</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 24 Oct 2022 11:15:49 GMT</pubDate></item><item><title><![CDATA[Reply to calendar module - format today events with time on Mon, 24 Oct 2022 06:45:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/spitzlbergerj" aria-label="Profile: spitzlbergerj">@<bdi>spitzlbergerj</bdi></a> , das nervt mich auch schon länger. Vielleicht gibt es ja eine Lösung. - …this has been bothering me for a long time. Maybe there is a solution.</p>
]]></description><link>https://forum.magicmirror.builders/post/105433</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105433</guid><dc:creator><![CDATA[KamiSchami]]></dc:creator><pubDate>Mon, 24 Oct 2022 06:45:34 GMT</pubDate></item><item><title><![CDATA[Reply to calendar module - format today events with time on Sun, 23 Oct 2022 11:49:21 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> Thank you for the quick reply.<br />
IfI  set</p>
<pre><code>urgency: 1
</code></pre>
<p dir="auto">then an appointment for today is displayed like this</p>
<pre><code>Test appointment                            in 4 hours
</code></pre>
<p dir="auto">but I would like to have the display</p>
<pre><code>Test appointment                              today, 17:00
</code></pre>
<p dir="auto">how can I achieve this?<br />
thanks<br />
Josef</p>
]]></description><link>https://forum.magicmirror.builders/post/105424</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105424</guid><dc:creator><![CDATA[spitzlbergerj]]></dc:creator><pubDate>Sun, 23 Oct 2022 11:49:21 GMT</pubDate></item><item><title><![CDATA[Reply to calendar module - format today events with time on Sat, 22 Oct 2022 20:17:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/spitzlbergerj" aria-label="Profile: spitzlbergerj">@<bdi>spitzlbergerj</bdi></a>  generally in absolute mode, urgency (days NOT HOURS)  is used to create a window of time to still show relative timed events</p>
<p dir="auto">but you have it set to 0</p>
<pre><code>                        timeFormat: "absolute",
			getRelative: 12,
			urgency: 0,
</code></pre>
<p dir="auto">showTimeToday does the reverse…</p>
<p dir="auto">in relative mode forces today’s events to NOT  be  relative. only for today, no other time window</p>
<p dir="auto">get relative is used in relative mode for AN  hour based time window</p>
]]></description><link>https://forum.magicmirror.builders/post/105414</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/105414</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 22 Oct 2022 20:17:34 GMT</pubDate></item></channel></rss>