Read the statement by Michael Teeuw here.
MMM-CalendarExt
-
@Sean First of all, great work! This module was exactly what I was looking for.
I´ve been tinkering with it for about a day now and I got a few small issues.
- Unfortunately I can´t get this (https://calendar.google.com/calendar/ical/de.austrian%23holiday%40group.v.calendar.google.com/public/basic.ics) calendar to show, any suggestions?
- As you can see on the screenshot below, there is quite some space left for calendar to use. Any tips on how can designate all this void area for the calendar?

- I can´t seem to enable the event time (eg. 17:00-19:00 next to the event title), what might be the problem here?
Thanks a lot for the help!
-
@Phil_T said in MMM-CalendarExt:
Unfortunately I can´t get this (https://calendar.google.com/calendar/ical/de.austrian%23holiday%40group.v.calendar.google.com/public/basic.ics) calendar to show, any suggestions?
Has it “Erster Advent” on 3 December? I can see that event.
As you can see on the screenshot below, there is quite some space left for calendar to use. Any tips on how can designate all this void area for the calendar?
Did you mean whole calendar area? or each event?
for whole calendar area; Add this code to your css/custom.css.CALEXT div.tableStyle { width:100%; }I can´t seem to enable the event time (eg. 17:00-19:00 next to the event title), what might be the problem here?
Well, I assumed in month view and weeks view people might not need exact time, (Mirror is too small to display many things), So I disabled it by default.
Add this to yourcss/custom.cssdiv.CALEXT div.tableStyle div.eventContainer div.eventTime { display:block; } -
Thanks a lot for the quick response!
There should also be “Mariä Empfängnis” on the 8th of December, which isnt showing (maybe a problem with ä, ö and ü?).
Sorry for my confusing explanation. I meant for the calendar to cover the whole screen apart from a bar at the top for time and weather.
Thanks, the time is showing.
edit: furthermore, how can I stop the module from cutting off the bottom part?

-
@Phil_T
For position, you can set your view position in config.config: { system: { show: ["weeks"], locale: 'en', }, views: { weeks: { position: "bottom_bar", // Set this as your wish. counts: 4, }, ... -
edit: furthermore, how can I stop the module from cutting off the bottom part?
Hmmm… On my mirror,
Mariä Empfängnisis shown well.
I suspect your configuration containslimitoroverflowoptions.See here. https://github.com/eouia/MMM-CalendarExt/wiki/Manipulation-of-looks#viewlimit--viewoverflow
You could get idea how to optimize size in that page.
Anyway,
4 weeksandmonthview are frankly a bit large for mirror (I think.). -
Wonderful, everyting works now. Thanks a lot!
-
MMM-CalendarExt not updating calendar events.**
I have configured two calendar views: “daily” and “upcoming”. I have set the redrawInterval to minimum: 60000 ms. I have two calendars: Private Google Calendar and local ics calendar file. When I update one or another of my calendars, my calendars don’t update at all. Updates happen only when I restart MMM from the beginning. For testing purposes I have also the “default” calendar in my configuration and it updates normally. For testing purposes I have added command 'self.sendSocketNotification(‘RESET_CALENDARS’) to the MMM-CalendarExt.js code inside the redrawTimer function. This dirty patch resets the calendars every 60 seconds, but I don’t think this is the right way to solve my problem. Please help. -
@helmi
Well, I tested and found nothing problem.
So, I suspect there might be some errors in front-electron views. Front-view error(from any module) could cause interfering other modules working. You can test bynpm start dev. -
@Sean I have been using the ‘npm start dev’ and it shows no errors. From the console log I can see that the timer triggers as expected. From the Calendar.js log (terminal view) I can see that the calendars fetching happens only when I start MMM from the beginning.
-
@Sean FYI: I have removed all other modules, only MMM-CalendarExt existing. I have also removed local calendar file, only Google Calendar URL existing. I have done shutdown and restart (both Rpi and MMM) several times. Problem still exists. For me looks like problem is where the calendars fetching should trigger. They happen only once when I start MMM from the beginning.
-
@helmi
Hmmmm… weird.Anyway, Calendar fetching interval([calendar].interval) is different with front-view redrawing(system.redrawInterval). There is some possibility of you’ve been confusing.
-
@Sean Ok - So does that mean that the redrawInterval parameter (my setting 60000) has nothing to do with Calendar fetching interval? If so, could you please give me some testing procedure in order to test those parts of the code where the fetching interval is working (or for me: not working)? I have some coding experience, but js is not my best knowledge.
-
system.redrawIntervalis used for refreshing calendar view. It is set to30 minutesby default. It doesn’t affect calendar fetching. With already fetched data, module redraws views per this interval value.system: { show: ['upcoming', 'daily'], redrawInterval: 30*60*1000, //minimum 60000 },[calendar].intervalis used for reading iCal file and fetching. If you set this value toone hour, the calendar will be re-parsed per one hour. But, if there is no changed event or new event, the module doesn’t load newly-parsed-but-same data and use previous data already loaded.The process is like this;
node_helper.jsreads calendars perintervaltime.- it fetches calendars and compares them with previously fetched data.
- If nothing changed, nothing happens.
- If something changed, newly fetched data will be sent to the module.
- Module loads fetched events data on the memory.
- Every
redrawIntervaltime, module redraw views with loaded events data.
-
@Sean Thank you for the clarifying information. Apparently I was expecting the calendars fetching to happen by system.redrawInterval, which was set at one minute (60000 ms). Now I waited for 30 minutes and fetching happened and events were updated as I expected. No problem so far!
Seems to me that the [calendar].interval (fetching) is set to 30 minutes by default.
Now only one question remains: How can I change the [calendar].interval to for example 5 minutes? This is the interval in “default” calendar, and I have some events needing to be updated more often than 30 minutes. -
@Sean Solved! No need to answer my last question. Sorry I didn’t read the documentation carefully enough. It is a very clever solution to have refresh interval setting for each calendar individually!
Thank you very much for nice conversation and happy Christmas greetings from snowy Finland! -
Hi,
I realized, that every time the Calendars will be fetched, pm2 creates a log entry in it’s log file.
Well, sometime the log file will be very big, so my question is if it is necessary or advisable to delete the log file and if there is a way to do that automatically.:)
-
@cruunnerr
I would try https://github.com/keymetrics/pm2-logrotate/blob/master/README.md for this. Looks like you can set a limit, and pm2 creates a new log file after the limit is reached. You can also activate compression for older log files and define how many old log files you would like to keep.
But I did not try -
@yawns
Yeah, i saw this already. Unfortunately my english isn’t good enough to understand this :/I just create a bash script with following content:
pm2 flush
The script will be executed by a cronjob every sunday at 4am.Maybe not the cleanest solution…
I will take a look again at the log rotate method. :) thanks dude
-
@cruunnerr
Understood. If you don’t figure it out I will try when I am back home next weekend -
Hey guys,
I am trying to show the same calendar on “weeks” and on “upcoming” but with different “maxEntries”. Is that possible?
tried it like this:
{ //Muellkalendar url: "webcal://p53-calendars.icloud.com/published/2/.....", styleName: "style2", maxEntries: 20, symbol: "delete-empty@md", views: ["weeks"], interval: 86400000, // 24 Stunden }, { //Muellkalendar-Upcoming url: "webcal://p53-calendars.icloud.com/published/2/.....", styleName: "style2", maxEntries: 2, symbol: "delete-empty@md", views: ["upcoming"], interval: 86400000, // 24 Stunden },But then i get the “create a config” message
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login