MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-CalendarExt3 and MMM-MonthlyCalendar blank

    Scheduled Pinned Locked Moved Solved Troubleshooting
    56 Posts 2 Posters 11.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @Scott-M
      last edited by sdetweil

      @Scott-M said in MMM-CalendarExt3 and MMM-MonthlyCalendar blank:

      broadcastPastEvents: true,

      also, this is the default for calendar
      | correction… broadcastEvents is true
      | broadcastPastEvents defaults to false…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Scott-M
        last edited by sdetweil

        @Scott-M said in MMM-CalendarExt3 and MMM-MonthlyCalendar blank:

        /* {
        module: “MMM-CalendarExt3”,
        disabled: true,

        also, you can add disabled:true,
        instead of having to comment out
        see https://docs.magicmirror.builders/modules/configuration.html#module-configuration

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @Scott-M
          last edited by

          @Scott-M said in MMM-CalendarExt3 and MMM-MonthlyCalendar blank:

          calendar.js:703 sorting events count=23

          where is the broadcasting message?

          do the events show in the default calendar display?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            Scott-M
            last edited by

            Even setting the waitFetch to 60 secods doesn’t help, the regualr calendar populates straight way, well before the Ext3 shows.

            
            [2025-03-20 15:43:53.544] [LOG]   Starting MagicMirror: v2.31.0-develop
            [2025-03-20 15:43:53.554] [LOG]   Loading config ...
            [2025-03-20 15:43:53.555] [LOG]   config template file not exists, no envsubst
            [2025-03-20 15:43:53.732] [INFO]  Checking config file /home/scott/MagicMirror/config/config.js ...
            [2025-03-20 15:43:53.758] [INFO]  Your configuration file doesn't contain syntax errors :)
            [2025-03-20 15:43:53.758] [INFO]  Checking modules structure configuration ...
            [2025-03-20 15:43:53.795] [INFO]  Your modules structure configuration doesn't contain errors :)
            [2025-03-20 15:43:53.797] [LOG]   Loading module helpers ...
            [2025-03-20 15:43:53.797] [LOG]   No helper found for module: alert.
            [2025-03-20 15:43:53.797] [LOG]   No helper found for module: clock.
            [2025-03-20 15:43:53.842] [LOG]   Initializing new module helper ...
            [2025-03-20 15:43:53.843] [LOG]   Module helper loaded: calendar
            [2025-03-20 15:43:53.843] [LOG]   No helper found for module: MMM-CalendarExt3.
            [2025-03-20 15:43:53.843] [LOG]   All module helpers loaded.
            [2025-03-20 15:43:53.846] [LOG]   Starting server on port 8089 ...
            [2025-03-20 15:43:54.112] [LOG]   Server started ...
            [2025-03-20 15:43:54.113] [LOG]   Connecting socket for: calendar
            [2025-03-20 15:43:54.113] [LOG]   Starting node helper for: calendar
            [2025-03-20 15:43:54.113] [LOG]   Sockets connected & modules started ...
            [2025-03-20 15:43:54.311] [LOG]   Launching application.
            [2025-03-20 15:43:54.742] [INFO]  System information:
            ### SYSTEM:   manufacturer: ; model: ; virtual: false
            ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.74+rpt-rpi-2712
            ### VERSIONS: electron: 32.2.7; used node: 23.9.0; installed node: 23.9.0; npm: 10.9.2; pm2: 5.4.3
            ### OTHER:    timeZone: Europe/London; ELECTRON_ENABLE_GPU: undefined
            [2025-03-20 15:43:55.080] [LOG]   Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 3600000
            [2025-03-20 15:43:55.817] [INFO]  Calendar-Fetcher: Broadcasting 23 events from http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics.
            
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @Scott-M
              last edited by

              @Scott-M ok, open the developers window, ctrl-shift-i on the MagicMirror
              page

              select the console tab,
              put ext3 in the filter field

              are there any errors reported?

              you did run npm install in the MMM-CalendarExt3 folder after git clone, right?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                Scott-M
                last edited by

                I did run nmp install in the MMM-CalendarExt3 folder!

                This is the result of the Ext3 filter in the console

                Load script: modules/MMM-CalendarExt3/MMM-CalendarExt3.js
                module.js:489 Module registered: MMM-CalendarExt3
                loader.js:151 Bootstrapping module: MMM-CalendarExt3
                loader.js:155 Scripts loaded for: MMM-CalendarExt3
                loader.js:194 Load stylesheet: modules/MMM-CalendarExt3/MMM-CalendarExt3.css
                loader.js:158 Styles loaded for: MMM-CalendarExt3
                loader.js:161 Translations loaded for: MMM-CalendarExt3
                MMM-CalendarExt3.js:390 [CX3] Module is not prepared yet, wait a while.
                getDom @ MMM-CalendarExt3.js:390Understand this warningAI
                
                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @Scott-M
                  last edited by sdetweil

                  @Scott-M I don’t know… I just re-enabled my ext3
                  Screenshot 2025-03-20 at 9.12.32 AM.png

                  my ext3 config

                        {
                          module: "MMM-CalendarExt3",
                          position: "bottom_bar",
                          disabled: false,
                          order: "*",
                          hiddenOnStartup: false,
                          configDeepMerge: false,
                          animateIn: "None",
                          animateOut: "None",
                          config: {
                            eventFilter: (ev) =>  {
                   return true 
                  },
                            eventTransformer: (ev) =>  {
                   return ev 
                  },
                            manipulateDateCell: (cellDom, events) =>  {
                  },
                            weatherPayload: (payload) =>  {
                   return payload 
                  },
                            eventPayload: (payload) =>  {
                   return payload 
                  }
                          }
                        },
                  

                  note this is output from MMM-Confg setting all the extra options

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    Scott-M
                    last edited by

                    Thanks for posting that but even with that config it is still blank. I have to leave it for now but will start on it fresh tomorrow and rebuild it and see what happens. Hopefully it is just something simple I missed.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      Scott-M
                      last edited by sdetweil

                      I wasted most of today writing new Pi images to new SD cards, using the script to install MagicMirror again, only to have it crash / hang on the [LOG] Starting server on port 8089 … message every time.

                      I gave up and went back to my working SD card and it seems to work now. I had been using this from some sample code I found online, just to test and get the MMM-CalendarExt3 module working

                      {
                      		url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics",
                      		name: "holiday",
                      		fetchInterval:  60000,
                      },
                      

                      I decided to add a couple of other calendars in and all of the others I tried show up in the Ext3 view, except this one. Not sure what the problem with it is but I won’t be using it so will move on.

                      I now have 4 random calendars and the code above in the calendar module and they all work, except the US_Holidays, the events for that one show in the list view but not in Ext3.

                      Thank you for taking the time to reply and help, sorry it seems to have been a bit of a waste of time.

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @Scott-M
                        last edited by sdetweil

                        @Scott-M just fyi, we replace webcal: with https: under the covers…

                        I’d like to know more about the system hang…

                        what OS, what UI engine (x11 wayland vs labwc)
                        note we added new start commands for the different engines…

                        see https://forum.magicmirror.builders/topic/19269/new-magicmirror-start-options-in-version-2-30-0

                         [LOG] Starting server on port 8089 
                        

                        if you are doing npm run server, that is the end of the messages
                        until a browser connects… (it might LOOK like a hang… but its just waiting)

                        IF the installer detects that electron did not install for some reason (armv6, or …)
                        THEN it sets up my script (run-start.sh) to run browser over server
                        ( you can check by examining the start: clause in package.json)

                        and ASSUMES
                        chromium is the browser..  
                        

                        the end of the scripts web page explains how to use some other browser

                        if chromium is not found, an error message will be logged in the npm start output, but nothing will be shown on the screen

                        now, in ANY case, did you install the clipping fix?
                        see https://forum.magicmirror.builders/topic/19282/version-2-30-0-calendar-fix-for-clipping-broadcast-event

                        which accidentally chopped off the messages sent to ext3 (and others)
                        my fault… it passed test

                        60 seconds to fetch holidays will trigger a block on calendarlabs as they warned us a couple years ago about being pounded by hundreds of mirrors getting content too often (we changed that fetch to once a week)

                        ext3 is designed to NOT flash the screen on every update… all calendars are processed concurrently but independently and broadcast when they have data.
                        ext3 wants to WAIT til all the data has arrived, (waitFetch config time, 5 seconds by default)

                        IF the data does NOT arrive for A calendar before waitFetch, THEN it will NOT BE DISPLAYED until the refreshInterval time (default 30 minutes)
                        (or you MANUALLY refresh the page (ctrl-r))

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 1 / 6
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy