MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. redfishbluefish
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 25
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-Carousel and modules that are currently generating an empty div

      @sdetweil that definitely works for the <div> created by the module for when it generates content but not for the surrounding <div> that I’m pretty sure are the standard one generated by any module:

      <div id="module_9_MMM-CanadianPublicWeatherAlerts" class="module MMM-CanadianPublicWeatherAlerts hidden" style="transition: opacity; opacity: 0; position: fixed;">
        <header class="module-header" style="display: none;">undefined</header>
          <div class="module-content">
            <div>
              <div></div> <--- This gets display:none applied to it.
            </div>
          </div>
        </div>
      </div>
      

      To make MMM-Carousel happy I think I need the top level <div> to not be generated but I’m realizing that implies I would need to modify MMM-CanadianPublicWeatherAlerts to dynamically unregister and register as a module and I don’t see how that can be done.

      What might be easier is if I can figure out how to dynamically update the MMM-Carousel settings read from my config.js:

      module: 'MMM-Carousel',
      position: 'bottom_bar',
      config: {
       transitionInterval: 10000,
       ignoreModules: [],
       mode: 'positional',
       top_right: {enabled: true, ignoreModules: ['currentweather']},
       top_center: {enabled: true, ignoreModules: ['updatenotification']}
      }
      

      I would need to add/remove MMM-CanadianPublicWeatherAlerts from the ignoreModules list for top_center depending on if it wants to generate content or not. No output - add to the ignoredModules list and MMM-Carousel ignores it for the rotation. Output - remove from the ignoredModules list and now it gets rotated with the rest.

      posted in Troubleshooting
      R
      redfishbluefish
    • MMM-Carousel and modules that are currently generating an empty div

      Hi!

      I have a nicely working setup with MMM-Carousel and recently discovered MMM-CanadianPublicWeatherAlerts. This modules was rather handy in the last few days when there have been weather alerts.

      Now the part I’d like to “fix”. MMM-CanadianPublicWeatherAlerts generates an empty <div> when there are no weather alerts. Unfortunately, this causes MMM-Carousel to still include the empty module output as it cycles through the set of modules in that area (top_center in my case). I know this is likely a limitation of MMM-Carousel.

      What is the “correct” way to prevent MMM-CanadianPublicWeatherAlerts from generating the empty <div>?

      I had thought I could just muck with getDom() in the module to return nothing, but that doesn’t seem to work. Other thought was to see if there’s a way to dynamically move the generated <div> to some where other than top_center but that’s currently beyond my understanding.

      Thoughts?

      posted in Troubleshooting
      R
      redfishbluefish
    • RE: MMM-PIR Busy Issue

      @siujd2001 you hadn’t mentioned anything about screen.

      I recently switched to using start:wayland also and found that in MMM-Pir, the ddcutil mode worked best. Screen control in general seems to vary on RPi depending on the monitor you have.

      posted in Troubleshooting
      R
      redfishbluefish
    • RE: MMM-PIR Busy Issue

      @siujd2001 in your config you have:

      Pir: {
        mode: 1,
        gpio: 21
      //   gpio: 4 // <–connected to 4
      }
      

      Did you try with mode: 0 ?

      Mode 1 uses an external python script and since that’s an external executable, there’s always a chance that the script has locked up the GPIO so when you start MMM-Pir again, it tries to start a new version of the script.

      posted in Troubleshooting
      R
      redfishbluefish
    • Is there a way to have a module's getStyles() called after another module?

      I’m starting to mess around a bit with a custom module and I’d like it to be able to override some styles from an existing 3rd party module.

      I know the following options work:

      • use custom.css
      • put my module after the existing module in config.js

      But if I ever wanted to release this module, I’d want it to be able to override the existing css content no matter what order it is put in the user’s config.js.

      I was tracing through loader.js and found that bootstrapModule loads the styles for a module but there doesn’t appear to be anyway to delay/reorder this. Then I followed through into main.js and I see that there’s a notification for ALL_MODULES_STARTED but this seems like it’s “too late” to modify the css order.

      posted in Development
      R
      redfishbluefish
    • RE: 2.30.0 and MMM-CalendarExt3 missing calendars

      @sdetweil thanks for the fix! I really appreciate your effort.

      Just in case it’s useful for someone else who runs into the same problem, with the fix applied and my calendar configuration that worked in 2.29.0, I see:

      [Debug] [Calendar] self update (calendar.js, line 950)
      [Debug] pushing 18 events to total with room for 10 (calendar.js, line 695)
      [Debug] events for calendar=10 (calendar.js, line 697)
      [Debug] pushing 246 events to total with room for 10 (calendar.js, line 695)
      [Debug] events for calendar=20 (calendar.js, line 697)
      [Info] sorting events count=20 (calendar.js, line 699)
      [Info] slicing events total maxcount=10 (calendar.js, line 739)
      

      And when I set a new maximumEntries per calendar I get:

      [Debug] pushing 34 events to total with room for 50 (calendar.js, line 695)
      [Debug] events for calendar=34 (calendar.js, line 697)
      [Debug] pushing 295 events to total with room for 500 (calendar.js, line 695)
      [Debug] events for calendar=329 (calendar.js, line 697)
      [Info] sorting events count=329 (calendar.js, line 699)
      

      This does result in a different behaviour for users of other calendar modules as of 2.30.0 so might be handy if the authors could update their recommendations in their documentation?

      posted in Troubleshooting
      R
      redfishbluefish
    • RE: 2.30.0 and MMM-CalendarExt3 missing calendars

      @sdetweil thank you for supporting the calendar module!

      For my specific use case, I don’t display the default calendar module, it’s just used to fetch and broadcast events for CalendarExt3. With this in mind, the idea of a sliding window centered on a date (today in most cases) makes the most sense to me.

      Is there a reason why the default for maximumEntries is 10? I had assumed performance but it looks like this is actually what’s used to control the number of events displayed.

      posted in Troubleshooting
      R
      redfishbluefish
    • RE: 2.30.0 and MMM-CalendarExt3 missing calendars

      @sdetweil I saw your note in the other thread about setting maximumEntries per calendar. I guess it means with this change there’s more thought required to determine the “right” values for each of the calendars you want to add.

      Example: As of today, Jan 2, this configuration for the calendar will show the “New Year’s Day” event on CalendarExt3:

      config: {
      	broadcastPastEvents: true,
      	calendars: [
      	{
      		url: "https://ics.calendarlabs.com/39/f7480acf/Canada_Holidays.ics",
      		name: "can_holiday",
      		maximumEntries: 16,
      	},
      },
      

      The following configuration will not show the “New Year’s Day” event:

      config: {
      	broadcastPastEvents: true,
      	calendars: [
      	{
      		url: "https://ics.calendarlabs.com/39/f7480acf/Canada_Holidays.ics",
      		name: "can_holiday",
      		maximumEntries: 15,
      	},
      },
      

      If I set maximumNumberOfDays: 180 then it actually changes the start date of the event array sliding window and the “New Year’s Day” event will show if maximumEntries: 15.

      Which makes me realize that the combination of:

      broadcastPastEvents: true,
      maximumNumberOfDays: 365, // default value
      

      will actually return 2 years worth of events (assuming you don’t exceed the maximumEntries setting).

      posted in Troubleshooting
      R
      redfishbluefish
    • RE: 2.30.0 and MMM-CalendarExt3 missing calendars

      @sdetweil I can confirm that setting maximumEntries:100 allows events to show on CalendarExt3 for the specific “Holiday” calendar in my test config.js.

      However, there’s something else that is coming into play. If I switch to a very busy calendar (300+ events) I actually get nothing showing up in CalendarExt3 but I can see that the events are in the calendar module. I used @MMRIZE eventPayload hook to dump to console and the events I’m getting start in Jan 2024.

      Note: I switched to maximumEntries:20 for this test.

      [Info] sorting events count=20 (calendar.js, line 699)
      [Log] Array (20) (config.js, line 308)
      0 {title: "Paradigm ", startDate: "1704891600000", endDate: "1704898800000", fullDayEvent: false, recurringEvent: true, …}
      1 {title: "Paradigm ", startDate: "1706101200000", endDate: "1706108400000", fullDayEvent: false, recurringEvent: true, …}
      2 {title: "Paradigm ", startDate: "1707310800000", endDate: "1707318000000", fullDayEvent: false, recurringEvent: true, …}
      3 {title: "Paradigm ", startDate: "1708520400000", endDate: "1708527600000", fullDayEvent: false, recurringEvent: true, …}
      4 {title: "Tour", startDate: "1709391600000", endDate: "1709394300000", fullDayEvent: false, recurringEvent: false, …}
      5 {title: "Paradigm ", startDate: "1709730000000", endDate: "1709737200000", fullDayEvent: false, recurringEvent: true, …}
      6 {title: "Paradigm ", startDate: "1710936000000", endDate: "1710943200000", fullDayEvent: false, recurringEvent: true, …}
      7 {title: "Paradigm ", startDate: "1712145600000", endDate: "1712152800000", fullDayEvent: false, recurringEvent: true, …}
      8 {title: "Paradigm ", startDate: "1713355200000", endDate: "1713362400000", fullDayEvent: false, recurringEvent: true, …}
      9 {title: "Paradigm ", startDate: "1714564800000", endDate: "1714572000000", fullDayEvent: false, recurringEvent: true, …}
      10 {title: "Paradigm ", startDate: "1715774400000", endDate: "1715781600000", fullDayEvent: false, recurringEvent: true, …}
      11 {title: "Paradigm ", startDate: "1716984000000", endDate: "1716991200000", fullDayEvent: false, recurringEvent: true, …}
      12 {title: "Paradigm ", startDate: "1718193600000", endDate: "1718200800000", fullDayEvent: false, recurringEvent: true, …}
      13 {title: "Paradigm ", startDate: "1719403200000", endDate: "1719410400000", fullDayEvent: false, recurringEvent: true, …}
      14 {title: "Paradigm ", startDate: "1720612800000", endDate: "1720620000000", fullDayEvent: false, recurringEvent: true, …}
      15 {title: "Amie and Jeff’s Anniversary ", startDate: "1721116800000", endDate: "1721203200000", fullDayEvent: true, recurringEvent: true, …}
      16 {title: "Paradigm ", startDate: "1721822400000", endDate: "1721829600000", fullDayEvent: false, recurringEvent: true, …}
      17 {title: "Paradigm ", startDate: "1723032000000", endDate: "1723039200000", fullDayEvent: false, recurringEvent: true, …}
      18 {title: "Paradigm ", startDate: "1724241600000", endDate: "1724248800000", fullDayEvent: false, recurringEvent: true, …}
      19 {title: "Paradigm ", startDate: "1725451200000", endDate: "1725458400000", fullDayEvent: false, recurringEvent: true, …}
      

      I then set broadcastPastEvents:false and I still get events from Jan 2024.

      posted in Troubleshooting
      R
      redfishbluefish
    • RE: 2.30.0 and MMM-CalendarExt3 missing calendars

      @MMRIZE I’m running a server-only instance in docker for testing now with this config.js:

      let config = {
      	address: "0.0.0.0",
      	port: 8080,
      	basePath: "/",
      	ipWhitelist: [],
      	useHttps: false,
      	httpsPrivateKey: "",
      	httpsCertificate: "",
      	language: "en",
      	locale: "en-US",
      	logLevel: ["INFO", "LOG", "WARN", "ERROR"],
      	timeFormat: 24,
      	units: "metric",
      
      	modules: [
      		{
      			module: "clock",
      			position: "top_left",
      			config: {
      				timeFormat: 12,
      			},
      		},
      		{
      			module: "calendar",
      			position: "top_right",
      			config: {
      				broadcastPastEvents: true, // <= IMPORTANT to see past events
      				defaultSymbol: "square",
      				calendars: [
      					{
      						url: "https://ics.calendarlabs.com/39/f7480acf/Canada_Holidays.ics",
      						name: "can_holiday", // <= RECOMMENDED to assign name
      						color: "crimson", // <= RECOMMENDED to assign color
      					},
      				],
      			},
      		},
      		{
      			module: "MMM-CalendarExt3",
      			position: "bottom_bar",
      			title: "",
      			config: {
      				mode: "week",
      				weeksInView: 4,
      				weekIndex: 0,
      				useWeather: false,
      				displayEndTime: false,
      				instanceId: "basicCalendar",
      				maxEventLines: 6,
      				fontSize: '24px',
      				eventHeight: '26px',
      				refreshInterval: 1000 * 60 * 5,
      				useMarquee: false,
      				calendarSet: ['can_holiday'],
        			}
      		},
      	]
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") { module.exports = config; }
      

      Screenshot 2025-01-01 at 9.11.03 PM.png

      Today (Jan 1) should have a full day event on CalendarExt3 for New Year’s Day (as seen in top right calendar output).

      Front end logs:

      [Info] Initializing MagicMirror². (main.js, line 582)
      [Log] Loading core translation file: translations/en.json (translator.js, line 116)
      [Log] Loading core translation fallback file: translations/en.json (translator.js, line 132)
      [Log] Load script: modules/default/clock/clock.js (loader.js, line 178)
      [Log] Module registered: clock (module.js, line 489)
      [Info] Bootstrapping module: clock (loader.js, line 151)
      [Log] Load script: vendor/node_modules/moment/min/moment-with-locales.js (loader.js, line 178)
      [Log] Load script: vendor/node_modules/moment-timezone/builds/moment-timezone-with-data.js (loader.js, line 178)
      [Log] Load script: vendor/node_modules/suncalc/suncalc.js (loader.js, line 178)
      [Log] Scripts loaded for: clock (loader.js, line 155)
      [Log] Load stylesheet: modules/default/clock/clock_styles.css (loader.js, line 194)
      [Log] Styles loaded for: clock (loader.js, line 158)
      [Log] Translations loaded for: clock (loader.js, line 161)
      [Log] Load script: modules/default/calendar/calendar.js (loader.js, line 178)
      [Log] Check MagicMirror² version for module 'calendar' - Minimum version:  2.1.0 - Current version: 2.30.0 (module.js, line 481)
      [Log] Version is ok! (module.js, line 483)
      [Log] Module registered: calendar (module.js, line 489)
      [Info] Bootstrapping module: calendar (loader.js, line 151)
      [Log] Load script: modules/default/calendar/calendarutils.js (loader.js, line 178)
      [Log] File already loaded: moment.js (loader.js, line 254)
      [Log] Scripts loaded for: calendar (loader.js, line 155)
      [Log] Load stylesheet: modules/default/calendar/calendar.css (loader.js, line 194)
      [Log] Load stylesheet: vendor/css/font-awesome.css (loader.js, line 194)
      [Log] Styles loaded for: calendar (loader.js, line 158)
      [Log] Translations loaded for: calendar (loader.js, line 161)
      [Log] Load script: modules/MMM-CalendarExt3/MMM-CalendarExt3.js (loader.js, line 178)
      [Log] Module registered: MMM-CalendarExt3 (module.js, line 489)
      [Info] Bootstrapping module: MMM-CalendarExt3 (loader.js, line 151)
      [Log] Scripts loaded for: MMM-CalendarExt3 (loader.js, line 155)
      [Log] Load stylesheet: modules/MMM-CalendarExt3/MMM-CalendarExt3.css (loader.js, line 194)
      [Log] Styles loaded for: MMM-CalendarExt3 (loader.js, line 158)
      [Log] Translations loaded for: MMM-CalendarExt3 (loader.js, line 161)
      [Log] Load stylesheet: css/custom.css (loader.js, line 194)
      [Info] Starting module: clock (clock.js, line 43)
      [Info] Starting module: calendar (calendar.js, line 96)
      [Info] All modules started! (main.js, line 601)
      [Info] sorting events count=0 (calendar.js, line 699)
      [Info] slicing events total maxcount=10 (calendar.js, line 739)
      [Warning] [CX3] Module is not prepared yet, wait a while. (MMM-CalendarExt3.js, line 390)
      [Info] sorting events count=10 (calendar.js, line 699)
      [Info] sorting events count=10 (calendar.js, line 699)
      [Info] slicing events total maxcount=10 (calendar.js, line 739)
      [Info] event fullday (calendar.js, line 506, x10)
      [Info] sorting events count=10 (calendar.js, line 699)
      [Info] sorting events count=10 (calendar.js, line 699)
      [Info] slicing events total maxcount=10 (calendar.js, line 739)
      [Info] event fullday (calendar.js, line 506, x10)
      

      And for completeness, backend logs:

      [2025-01-01 21:05:03.871] [LOG]   Starting MagicMirror: v2.30.0 
      [2025-01-01 21:05:03.886] [LOG]   Loading config ... 
      [2025-01-01 21:05:03.889] [LOG]   config template file not exists, no envsubst 
      [2025-01-01 21:05:04.171] [INFO]  Checking config file /opt/magic_mirror/config/config.js ... 
      [2025-01-01 21:05:04.216] [INFO]  Your configuration file doesn't contain syntax errors :) 
      [2025-01-01 21:05:04.217] [INFO]  Checking modules structure configuration ... 
      [2025-01-01 21:05:04.312] [INFO]  Your modules structure configuration doesn't contain errors :) 
      [2025-01-01 21:05:04.412] [LOG]   Loading module helpers ... 
      [2025-01-01 21:05:04.415] [LOG]   No helper found for module: clock. 
      [2025-01-01 21:05:04.583] [LOG]   Initializing new module helper ... 
      [2025-01-01 21:05:04.585] [LOG]   Module helper loaded: calendar 
      [2025-01-01 21:05:04.590] [LOG]   No helper found for module: MMM-CalendarExt3. 
      [2025-01-01 21:05:04.590] [LOG]   All module helpers loaded. 
      [2025-01-01 21:05:04.600] [LOG]   Starting server on port 8080 ...  
      [2025-01-01 21:05:04.602] [WARN]  You're using a full whitelist configuration to allow for all IPs 
      [2025-01-01 21:05:04.612] [LOG]   Server started ... 
      [2025-01-01 21:05:04.613] [LOG]   Connecting socket for: calendar 
      [2025-01-01 21:05:04.614] [LOG]   Starting node helper for: calendar 
      [2025-01-01 21:05:04.615] [LOG]   Sockets connected & modules started ... 
      [2025-01-01 21:05:04.615] [INFO]  
      >>>   Ready to go! Please point your browser to: http://0.0.0.0:8080   <<< 
      [2025-01-01 21:05:04.744] [INFO]  System information:
      ### SYSTEM:   manufacturer: ; model: Docker Container; virtual: false
      ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 5.15.49-linuxkit
      ### VERSIONS: electron: undefined; used node: 22.12.0; installed node: 22.12.0; npm: 10.9.0; pm2: 
      ### OTHER:    timeZone: America/Toronto; ELECTRON_ENABLE_GPU: undefined 
      [2025-01-01 21:05:18.517] [LOG]   Create new calendarfetcher for url: https://ics.calendarlabs.com/39/f7480acf/Canada_Holidays.ics - Interval: 3600000 
      [2025-01-01 21:05:18.779] [INFO]  Calendar-Fetcher: Broadcasting 34 events from https://ics.calendarlabs.com/39/f7480acf/Canada_Holidays.ics. 
      [2025-01-01 21:13:12.600] [LOG]   Use existing calendarfetcher for url: https://ics.calendarlabs.com/39/f7480acf/Canada_Holidays.ics 
      [2025-01-01 21:13:12.601] [INFO]  Calendar-Fetcher: Broadcasting 34 events from https://ics.calendarlabs.com/39/f7480acf/Canada_Holidays.ics. 
      [2025-01-01 21:13:12.837] [INFO]  Calendar-Fetcher: Broadcasting 34 events from https://ics.calendarlabs.com/39/f7480acf/Canada_Holidays.ics. 
      
      posted in Troubleshooting
      R
      redfishbluefish
    • RE: 2.30.0 and MMM-CalendarExt3 missing calendars

      @sdetweil thanks for looking at this. I’d love to see an error of some sorts - much easier to track down! :)

      I’ll strip down to a basic config.js and see if I can find something that works for me and maybe that will give some clues.

      posted in Troubleshooting
      R
      redfishbluefish
    • RE: 2.30.0 and MMM-CalendarExt3 missing calendars

      @sdetweil I get what’s in the screenshot in the console but CalendarExt3 is loaded in the browser correctly.

      Screenshot 2025-01-01 at 6.35.29 PM.png

      Note that this looks identical to what I see when running 2.29.0.

      posted in Troubleshooting
      R
      redfishbluefish
    • RE: 2.30.0 and MMM-CalendarExt3 missing calendars

      This post looks like a similar issue: https://forum.magicmirror.builders/topic/19273/mmm-calendarext3-not-showing-events-on-calendar-but-does-on-list-after-2-30-update

      posted in Troubleshooting
      R
      redfishbluefish
    • RE: 2.30.0 and MMM-CalendarExt3 missing calendars

      @sdetweil I updated my docker server-only install to 2.30.0 to test on. The config.js file is almost identical to what I have on my RPi and this is what I see after restarting MagicMirror:

      [2025-01-01 17:45:14.379] [LOG]   Starting MagicMirror: v2.30.0 
      [2025-01-01 17:45:14.397] [LOG]   Loading config ... 
      [2025-01-01 17:45:14.400] [LOG]   config template file not exists, no envsubst 
      [2025-01-01 17:45:14.790] [INFO]  Checking config file /opt/magic_mirror/config/config.js ... 
      [2025-01-01 17:45:14.889] [INFO]  Your configuration file doesn't contain syntax errors :) 
      [2025-01-01 17:45:14.890] [INFO]  Checking modules structure configuration ... 
      [2025-01-01 17:45:14.971] [INFO]  Your modules structure configuration doesn't contain errors :) 
      [2025-01-01 17:45:15.119] [LOG]   Loading module helpers ... 
      [2025-01-01 17:45:15.123] [LOG]   No helper found for module: alert. 
      [2025-01-01 17:45:15.140] [LOG]   Initializing new module helper ... 
      [2025-01-01 17:45:15.141] [LOG]   Module helper loaded: MMM-Wheel 
      [2025-01-01 17:45:15.146] [LOG]   No helper found for module: MMM-Carousel. 
      [2025-01-01 17:45:15.194] [LOG]   Initializing new module helper ... 
      [2025-01-01 17:45:15.195] [LOG]   Module helper loaded: updatenotification 
      [2025-01-01 17:45:15.198] [LOG]   No helper found for module: clock. 
      [2025-01-01 17:45:15.211] [LOG]   Initializing new module helper ... 
      [2025-01-01 17:45:15.211] [LOG]   Module helper loaded: MMM-UCDSB 
      [2025-01-01 17:45:15.214] [LOG]   No helper found for module: weather. 
      [2025-01-01 17:45:15.391] [LOG]   Initializing new module helper ... 
      [2025-01-01 17:45:15.392] [LOG]   Module helper loaded: calendar 
      [2025-01-01 17:45:15.396] [LOG]   No helper found for module: MMM-CalendarExt3. 
      [2025-01-01 17:45:15.397] [LOG]   All module helpers loaded. 
      [2025-01-01 17:45:15.406] [LOG]   Starting server on port 8080 ...  
      [2025-01-01 17:45:15.409] [WARN]  You're using a full whitelist configuration to allow for all IPs 
      [2025-01-01 17:45:15.427] [LOG]   Server started ... 
      [2025-01-01 17:45:15.428] [LOG]   Connecting socket for: MMM-Wheel 
      [2025-01-01 17:45:15.429] [LOG]   Starting module helper: MMM-Wheel 
      [2025-01-01 17:45:15.429] [LOG]   Connecting socket for: updatenotification 
      [2025-01-01 17:45:15.430] [LOG]   Starting module helper: updatenotification 
      [2025-01-01 17:45:15.431] [LOG]   Connecting socket for: MMM-UCDSB 
      [2025-01-01 17:45:15.431] [LOG]   Starting module helper: MMM-UCDSB 
      [2025-01-01 17:45:15.432] [LOG]   Connecting socket for: calendar 
      [2025-01-01 17:45:15.432] [LOG]   Starting node helper for: calendar 
      [2025-01-01 17:45:15.432] [LOG]   Sockets connected & modules started ... 
      [2025-01-01 17:45:15.433] [INFO]  
      >>>   Ready to go! Please point your browser to: http://0.0.0.0:8080   <<< 
      [2025-01-01 17:45:15.669] [INFO]  System information:
      ### SYSTEM:   manufacturer: ; model: Docker Container; virtual: false
      ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 5.15.49-linuxkit
      ### VERSIONS: electron: undefined; used node: 22.12.0; installed node: 22.12.0; npm: 10.9.0; pm2: 
      ### OTHER:    timeZone: America/Toronto; ELECTRON_ENABLE_GPU: undefined 
      

      I notice that there are no calendar events being broadcast at all (which likely makes sense since nothing has attempted to load the page yet).

      After loading the site I get (calendar urls deleted):

      [2025-01-01 17:48:40.701] [LOG]   Create new calendarfetcher for url: Holidays.ics - Interval: 3600000 
      [2025-01-01 17:48:40.786] [LOG]   Create new calendarfetcher for url: basic1.ics - Interval: 3600000 
      [2025-01-01 17:48:40.791] [LOG]   Create new calendarfetcher for url: calendarId=1509643 - Interval: 3600000 
      [2025-01-01 17:48:40.797] [LOG]   Create new calendarfetcher for url: basic2.ics - Interval: 3600000 
      [2025-01-01 17:48:40.803] [LOG]   Create new calendarfetcher for url: basic3.ics - Interval: 3600000 
      [2025-01-01 17:48:40.891] [INFO]  updatenotification: Updater Class Loaded! 
      [2025-01-01 17:48:40.892] [INFO]  updatenotification: Checking PM2 using... 
      [2025-01-01 17:48:40.892] [INFO]  updatenotification: Running in docker container, not using PM2 ... 
      [2025-01-01 17:48:40.893] [INFO]  Checking git for module: MMM-Wheel 
      [2025-01-01 17:48:40.895] [INFO]  Checking git for module: MMM-Carousel 
      [2025-01-01 17:48:40.920] [INFO]  Checking git for module: MMM-UCDSB 
      [2025-01-01 17:48:40.942] [INFO]  Checking git for module: MMM-CalendarExt3 
      [2025-01-01 17:48:41.003] [INFO]  Calendar-Fetcher: Broadcasting 34 events from Holidays.ics. 
      [2025-01-01 17:48:41.021] [INFO]  Checking git for module: MagicMirror 
      [2025-01-01 17:48:41.053] [INFO]  Calendar-Fetcher: Broadcasting 61 events from calendarId=1509643. 
      [2025-01-01 17:48:41.112] [INFO]  Calendar-Fetcher: Broadcasting 3 events from basic3.ics. 
      [2025-01-01 17:48:41.826] [INFO]  Calendar-Fetcher: Broadcasting 294 events from basic1.ics. 
      [2025-01-01 17:48:42.801] [INFO]  Calendar-Fetcher: Broadcasting 282 events from basic2.ics. 
      

      The basic3.ics calendar event show in MMM-CalendarExt3 but nothing else.

      posted in Troubleshooting
      R
      redfishbluefish
    • RE: 2.30.0 and MMM-CalendarExt3 missing calendars

      @sdetweil manual upgrade. I also did a reinstall of the modules I use since nodes changed.

      MMM-CalendarExt3 was installed/working with 2.30.0 as it shows up and has the info for one of the calendars but not for all calendars.

      posted in Troubleshooting
      R
      redfishbluefish
    • 2.30.0 and MMM-CalendarExt3 missing calendars

      2.30.0 doesn’t seem to be playing nicely with MMM-CalendarExt3 in my setup and I don’t see any clues in the logs as to why. Default calendar modules appears to be working as expected and I can see that the Calendar-Fetcher is broadcasting events for all of my calendars.

      Oddly, events from one of the 5 calendars I’m using do appear in MMM-CalendarExt3 correctly. Changing order of calendar definitions in the config.js make no difference.

      The only error I see in logs is shown below but this appears to be related to a known issue in MMM-RemoteControl and MMM-CalendarExt3 (and the error goes away if I disable MMM-RemoteControl) which is also present when I’m running 2.29.0.

      0|mm  | [2025-01-01 15:51:41.985] [ERROR] ERROR! Could not validate main module js file. 
      0|mm  | [2025-01-01 15:51:41.992] [ERROR] ReferenceError: HTMLElement is not defined
      0|mm  |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-CalendarExt3/MMM-CalendarExt3.js:6:26)
      0|mm  |     at Module._compile (node:internal/modules/cjs/loader:1484:14)
      0|mm  |     at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
      0|mm  |     at Module.load (node:internal/modules/cjs/loader:1295:32)
      0|mm  |     at Module._load (node:internal/modules/cjs/loader:1111:12)
      0|mm  |     at c._load (node:electron/js2c/node_init:2:17025)
      0|mm  |     at Module.require (node:internal/modules/cjs/loader:1318:19)
      0|mm  |     at require (node:internal/modules/helpers:179:18)
      0|mm  |     at Class.loadModuleDefaultConfig (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:317:30)
      0|mm  |     at /home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:271:26
      0|mm  |     at FSReqCallback.oncomplete (node:fs:198:5) 
      

      I have since done a revert to 2.29.0 and with the exact same config.js etc, MMM-CalendarExt3 is working fine. I’m going to try and spin up a server only version of 2.30.0 to poke at since I can’t wipe out my main installation.

      posted in Troubleshooting
      R
      redfishbluefish
    • RE: MMM-CalendarExt3 (or default calendar module?) repeating event shifts to wrong day

      @sdetweil OK thanks for the info. If I can squeeze in some time tomorrow I might give the dev branch a try.

      Just in case it’s of any use, I looked at two other repeating events that are working and noticed that the RRULE format is different vs the one that isn’t working:

      RRULE:FREQ=WEEKLY;WKST=SU;UNTIL=20250227T045959Z
      
      RRULE:FREQ=WEEKLY;WKST=SU;UNTIL=20250530T035959Z;BYDAY=TH
      
      posted in Troubleshooting
      R
      redfishbluefish
    • MMM-CalendarExt3 (or default calendar module?) repeating event shifts to wrong day

      I’ve had this happen a couple times and so far been unable to determine what is wrong. Sometimes deleting the event in the source calendar (Google) and recreating it “fixes” the issue in MMM-CalendarExt3.

      “Gym class” event should repeat weekly on Wednesday at 9PM starting Jan 8. Somehow it’s duplicated to Thursday Jan 9 and then repeats on Thursdays going forward?

      6023e21c-f812-4d64-9e71-37560f631f9d-image.png

      This is the actual event (with stuff redacted for privacy) and I don’t see anything different vs other events I have created the same way.

      BEGIN:VEVENT
      DTSTART;TZID=America/Toronto:20250108T210000
      DTEND;TZID=America/Toronto:20250108T220000
      RRULE:FREQ=WEEKLY;UNTIL=20250227T020000Z
      DTSTAMP:20241229T031726Z
      UID:42C7D549-D128-46CB-BF43-E380916F7698
      CREATED:20241229T025652Z
      LAST-MODIFIED:20241229T031355Z
      LOCATION:Gym
      SEQUENCE:0
      STATUS:CONFIRMED
      SUMMARY:Gym class
      TRANSP:OPAQUE
      X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-ADDRESS="XXX";X-APPLE-MAPKIT-HANDLE=XXX;X-APPLE-RADIUS=XXX;X-APPLE
       -REFERENCEFRAME=1;X-TITLE=XXX
      X-APPLE-TRAVEL-START;ROUTING=CAR;VALUE=URI;X-ADDRESS="XX";X-APPLE-MAPKIT-HANDLE=XX;X
       -APPLE-RADIUS=XX;X-APPLE-REFERENCEFRAME=0;X-TITLE=XXX
      X-APPLE-TRAVEL-DURATION;VALUE=DURATION:PT5M
      END:VEVENT
      
      posted in Troubleshooting
      R
      redfishbluefish
    • RE: MMM-CalendarExt3 - split/skip multiday events on specific days (weekends)

      @MMRIZE thanks for the details! I spent some time working with this and ended up leaving it as the default behaviour.

      posted in Troubleshooting
      R
      redfishbluefish
    • MMM-CalendarExt3 - split/skip multiday events on specific days (weekends)

      Scenario: A multiday event starts on Thursday and ends on Tuesday which means there is a multiday event bar that goes from Thursday to Tuesday (inclusive) on my calendar. The problem is that the event isn’t actually occurring on the weekend days (Saturday and Sunday for me) - the event is only applicable to the weekdays.

      Is there any way to prevent the event from showing on Saturday and Sunday?

      Unfortunately I don’t control the source calendar so I can’t modify it.

      I tried sliceMultiDayEvents: true on the default calendar module source but that doesn’t appear to have made any difference in MMM-CalendarExt3. I was thinking I could use that and then figure out how to make the sliced event not show on the specific days.

      posted in Troubleshooting
      R
      redfishbluefish
    • 1
    • 2
    • 1 / 2