Read the statement by Michael Teeuw here.
Builtin calendar module: dateformat, timeformat
-
Hey folks,
I’m on the last mile setting up my MM as smart display for the kitchen. May layout is almost finished, but I have a minor configuration problem with the calendar:
In the config-excerpt below there are 3 CalDAV-Calendars (URL truncated for privacy) that are working and displayed correctly.
configuration options are identical to the sample config, except symbol and color and of course the URL.
But when I tried to change the format for the SECOND calendar, nothing changes.
What I wanted:
The second calendar should show absolute dates (Mo. 01.01.) and start and end time in 24h format.What I get:
Entries are displayed with relative dates (tomorrow at) and only start times in 24h-Format, just like the other two calendars where I kept the default format.I’ve tried to follow the documentation and I’m a little bit disappointed that I didn’t even manage to produce an error, but that MM just ignores my effort ;)
Do you know where I took the wrong turn?
Thanx, Markus
config: { maximumEntries: "20", coloredSymbol: "true", calendars: [ { fetchInterval: 7 * 24 * 60 * 60 * 1000, symbol: "calendar", color: "#0000ff", url: "https://posteo.de/calendars/ics/6yjd...> }, { fetchInterval: 7 * 24 * 60 * 60 * 1000, dateFormat: "ddd HH:mm", timeFormat: "absolute", showEnd: true, symbol: "calendar", color: "#ff0000", url: "https://posteo.de/calendars/ics/muj1cn...> }, { fetchInterval: 7 * 24 * 60 * 60 * 1000, symbol: "calendar", color: "#ffff00", url: "https://posteo.de/calendars/ics/6cehmh4...> }
-
@DomRep unfortunately the dateFormat/timeFormat/showEnd options apply to ALL calendars, so they would have to be above the calendars:[] list
in the doc,
-
the first section of parameters are for ALL calendars…
-
the second section is for individual calendars…
you can create another module: calendar for that one in the same position
but the entries will not be merged with the others.I would suggest opening an issue on the github repo asking for an enhancement here.
and post your config… (as u have here) -
-
@sdetweil said in Builtin calendar module: dateformat, timeformat:
@DomRep unfortunately the dateFormat/timeFormat/showEnd options apply to ALL calendars, so they would have to be above the calendars:[] list
in the doc,
-
the first section of parameters are for ALL calendars…
-
the second section is for individual calendars…
So there’s my misunderstanding: It’s a global setting :)
Actually, having to set these config values for all calendars alike is fine for me…
I just started to test the effect for “calendar two” because I wanted to compare the effect against the others two.
In my original post I emphasized this (the SECOND calendar) just to make following my pursuit easier for forum readers.
Thank you @sdetweil for the clarification :)
-