Read the statement by Michael Teeuw here.
MMM-CalendarExt2
-
Hi! I’m trying to modify css. I created css/custom.css in MagicMirror/modules/MMM-CalendarExt2/ and tried doing modifications but none of them seem to do anything. Permissions for dir and file are 777.
Is there something I’m not understanding here?for example I tried this in custom.css but it doesn’t work. This only works in MMM-CalendarExt.css file.
.CX2 .weekSlot.seq_0 .cellSlot .slotSubTitle { position:relative; top:-30px; left:40%; }
Also, how can I get month calendar to only show 4 weeks instead of 5?
-
@jani-karna
You don’t need to create your owncss/custom.css
under module directory. That file locates under your MagicMirror directory.css/custom.css
is a global common file to be used by all the modules. -
Oh, I see. Some modules seem to have their own directory, like MMM-CalendarExt for example. But I’ll use MagicMirror directory instead and try with that.
How about the other question? How can I get month calendar to show 4 weeks instead of 5?
-
@jani-karna
MMM-CalendarExt
was so an early and old module, so it has an improper structure. I’ll deprecate the css in some days.For your Second Question.
month
view could have 4~6 weeks in a table by the days. If you want to fix 4 weeks, useweek
view insteadmonth
-
I’m not sure I understood. Is month view possible to set to show 4 weeks? I also changed to week mode but it only shows 3 weeks instead of 4.
-
@jani-karna
You can set how many weeks to be shown withslotCount
inweek
view. -
@Sean
Thank you, that did the job.Sorry to bother you with one more question: I have 1 scene and 1 view and 3 calendars. All of the calendars are in same week view. I’m trying to have all the 3 calendars to be visible at the same time in week view without rotating between them. I thought this is default with just one scene and one view.
-
I have 1 scene and 1 view and 3 calendars. All of the calendars are in same week view. I’m trying to have all the 3 calendars to be visible at the same time in week view without rotating between them. I thought this is default with just one scene and one view.
??? You mean your calendars are not shown in one week view? As you said, that is the default unless you set separate views.
If all of your events are not shown in a view, it might bemaxItems
issue. It is limited as max 100 events by default for the performance. In that case, you can set bigger value tomaxItems
of view. -
@Sean
That is exactly what I’m saying. I don’t think I have that many events. Just in case I tried maxItems: 500, but that didn’t change anything.My config looks like this:
module: 'MMM-CalendarExt2', config: { scenes: [ { name: "DEFAULT", views: [], }, ], views: [ { name: "Kaikki", mode: "week", slotCount: 4, maxItems: 500, fromNow: 0, slotTitleFormat: "D.", slotAltTitleFormat: "D. MMM", position: "bottom_bar", className: "monthClass", hideOverflow: "false", slotMaxHeight: "150px", calendars: [], timeFormat: "HH.mm", dateFormat: "DD.MM",
As I said earlier, it keeps rotating between 3 different calendars and they never show in one view at the same time.
-
@jani-karna
Are those a full configuration of MMM-CalendarExt2 ? Share with me including your real ical url. (eouia0819@gmail.com)