Read the statement by Michael Teeuw here.
MM 2.31.0 Calendar update problems: Only udating when one of the browsers are refreshed (F5)
-
Hi Magic Mirror people,
I am a new user and I am trying to set up a family calendar kiosk using MM, and so far it is working great. I have the layout tweaked, and it is displaying all the most important information. Time, Weather, and appointments.I have deployed it server only on a proxmox hypervisor, and set it up so that it can be visible from any browser in the home. Very handy.
The only problem I have is that even with the fetch interval set, the calender only gets updated on all the devices, if I refresh (F5) any one of them. It does not automatically fetch the new and/or updated calendar items.
Everything else works perfectly. The weather is updated correctly, and the MMM_Calendar_ext3 plugin works as expected.
Here is my config.js (redacted of course)
let config = { address: "0.0.0.0", port: 8080, basePath: "/", ipWhitelist: [], useHttps: false, httpsPrivateKey: "", httpsCertificate: "", language: "en", locale: "en-DE", logLevel: ["INFO", "LOG", "WARN", "ERROR"], timeFormat: 24, units: "metric", serverOnly: true, modules: [ { module: "clock", position: "top_left", config: { timeFormat: 24, // or "12" for AM/PM displaySeconds: true, showDate: false, dateFormat: "dddd, MMMM Do" } }, { module: "weather", header: "Erlangen, DE ", position: "top_right", config: { weatherProvider: "openweathermap", type: "current", apiKey: "", lat: "49.5906368", lon: "10.9682838" //49.5906368,10.9682838 } }, { module: "weather", header: "Erlangen, DE ", position: "top_left", config: { weatherProvider: "openweathermap", type: "forecast", apiKey: "", lat: "49.5906368", lon: "10.9682838", //49.5906368,10.9682838 showPrecipitationAmount: true, colored: "true" } }, { module: "calendar", header: "Upcoming", position: "top_center", config: { fetchInterval: 30000, // interval 30s for testing refreshInterval: 30000, coloredText: false, coloredBorder: false, coloredSymbol: true, coloredBackground: false, calendars: [ { name: "Public Hollidays", symbol: "calendar-check", color: "orange", url: "https://calendar.google.com/calendar/ical/xxxx%40import.calendar.google.com/public/basic.ics" }, { name: "Family", symbol: "calendar-check", color: "violet", url: "" }, { name: "Q", symbol: "calendar-check", color: "cyan", url: "" }, { name: "J", symbol: "calendar-check", color: "red", url: "" }, { name: "I", symbol: "calendar-check", color: "green", url: "" } ] } }, { module: "MMM-CalendarExt3", position: "bottom_bar", title: "", config: { mode: "week", useMarquee: true, skipPassedEventToday: true, weekIndex: 0, weeksInView: 3, instanceId: "basicCalendar", locale: 'en-DE', maxEventLines: 4, firstDayOfWeek: 1, refreshInterval: 30000, calendarSet: ['Public Hollidays', 'Q', 'J', 'I', 'Family'], } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") { module.exports = config; }
-
@sdetweil Thanks for the info.
I have no idea why this worked, but after clearing the journals, the thing started working as expected. I changed the fetch frequency back to once every 10 minutes, and it seems happy for now.
Will do some more testing and will let you know
-
@qharley can you show the output of npm start
if using pm2 then
pm2 logs --lines=150
warning the full calendar url will be in the logs, please edit out
before postingno manual page refresh please
you might want to clear the logs and restart
pm2 flush
pm2 restart MagicMirror -
@qharley also, if you allow the default calendar to display, does it update? i see position is top center.
every 30 seconds is pretty rough, and the provider might reject that
-
because its in a proxmox container you will probable have to kill the
npm run server
task and start it manuallythe scripted lxc container does not set any saving of stdout or stderr
you will have to install sudo and add that user to the sudoers file to be able to do sudo kill
-
@sdetweil Thanks for the info.
I have no idea why this worked, but after clearing the journals, the thing started working as expected. I changed the fetch frequency back to once every 10 minutes, and it seems happy for now.
Will do some more testing and will let you know
-