@cpcode
I have no idea about that module, so I cannot promise the cowork with that kind of module. I wish you luck.
Read the statement by Michael Teeuw here.
Posts
-
RE: CalendarExt3Journal fit with other modules
-
RE: MMM-CalendarExt3
@Ragged4310
Instead ofeventTransformer
, we’ll useeventPayload
because, this conversion should be applied to whole events, not a single event.Insert this property into your config section of CX3 in
config/config.js
/* `MMM-CalendarExt3` config section in config/config.js */ eventPayload: (payload) => { const fulldays = payload.filter(ev => ev.fullDayEvent === true) const singleEvents = payload.filter(ev => ev.fullDayEvent === false).sort((a, b) => a.startDate - b.startDate || a.endDate - b.endDate) const EventsArranged = singleEvents.reduce((acc, ev) => { const dateObj = new Date(+ev.startDate) const key = `${ev.title}-${new Date(dateObj).toLocaleDateString('en-CA')}` if (!acc.has(key)) { acc.set(key, [ev]) } else { acc.get(key).push(ev) } return acc }, new Map()) const collapsed = Array.from(EventsArranged.entries()).map(([ key, value ]) => { const newEvent = { ...value[ 0 ] } if (value.length > 1) { newEvent.title = newEvent.title + ` <sub class="collapsed">${value.length}</sub>` newEvent.endDate = Math.max(...value.map(ev => ev.endDate)) newEvent.startDate = Math.min(...value.map(ev => ev.startDate)) } return newEvent }) return [ ...fulldays, ...collapsed ] },
And to beautify, add some CSS code into
css/custom.css
/* css/custom.css */ .CX3 .title sub::after, #CX3_POPOVER .title sub::after { content: "]"; } .CX3 .title sub::before, #CX3_POPOVER .title sub::before { content: "["; }
It will work like;
BEFORE
AFTER
- This code will not affect the fullday events.
- Not considered every aspect, like inter-day events or untested errors.
-
RE: CalendarExt3Journal fit with other modules
@cpcode
Sorry, I still cannot reproduce it even with your config.It could collapse the modules of other regions, but in the same region, it works.
What is your screen resolution? And the environment?
-
RE: CalendarExt3Journal fit with other modules
@cpcode
Well, Could you show me the capture? Because, there is nothing issued on my test.
Maybe some CSS interference with other modules, but I’m not sure of your things.
To make things simple,
- Remove all other modules except
helloworld
andCX3J
from config. Try what happens. - If something is wrong, show me the config.js and custom.css (eouia0819@gmail.com)
- Remove all other modules except
-
RE: MMM-CalendarExt3 add non-event content to weekday cell
@redfishbluefish
Could you show me the sketches or drawing? I’m not sure what you want exactly. -
RE: Developer Wanted To Modify Default Newsfeed Module
@JohnGalt
Nothing special. However, some feeds might have non-standard image enclosure, so in that case, image will not be shown.
That module was order-made, so not all the possible cases are considered. If you have some specific newsfeed, tell me the url. -
RE: MMM-CalendarExt3
You can simply append this code to your
css/custom.css
.CX3 .legend.useSymbol .symbol { display: none; }
-
RE: Developer Wanted To Modify Default Newsfeed Module
@chelofarias
I think you may have some typo error;{ title: “Radio Pacu”, // <-- Wrong quotation marks url: “https://radiopacu.com.ar/feed/”, <-- Here also wrong. },
“
and”
is not valid character for the quotation marks that could be used in JS code.
It should be"
.anyway, for me it works.