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
    59 Posts 3 Posters 17.1k Views 3 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 Do not disturb
      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 Do not disturb
          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 Do not disturb
                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
                • S Offline
                  Scott-M
                  last edited by

                  Back to the SD card that hangs on the starting server message…

                  I used Raspberry Pi OS (64 Bit) Bookworm, onto a Pi5, labwc compositor. I did install the clipping fix after the MagicMirror install

                  I ran with

                  npm run start
                  

                  with this result, it may just be waiting but CRTL C does nothing and I have to close the ssh connection and reconnect.

                  scott@MagicMirror:~/MagicMirror $ npm start
                  
                  > magicmirror@2.31.0-develop start
                  > npm run start:x11
                  
                  
                  > magicmirror@2.31.0-develop start:x11
                  > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                  
                  [2025-03-21 15:14:51.442] [LOG]   Starting MagicMirror: v2.31.0-develop
                  [2025-03-21 15:14:51.451] [LOG]   Loading config ...
                  [2025-03-21 15:14:51.453] [LOG]   config template file not exists, no envsubst
                  [2025-03-21 15:14:52.019] [INFO]  Checking config file /home/scott/MagicMirror/config/config.js ...
                  [2025-03-21 15:14:52.045] [INFO]  Your configuration file doesn't contain syntax errors :)
                  [2025-03-21 15:14:52.045] [INFO]  Checking modules structure configuration ...
                  [2025-03-21 15:14:52.081] [INFO]  Your modules structure configuration doesn't contain errors :)
                  [2025-03-21 15:14:52.083] [LOG]   Loading module helpers ...
                  [2025-03-21 15:14:52.084] [LOG]   No helper found for module: alert.
                  [2025-03-21 15:14:52.093] [LOG]   Initializing new module helper ...
                  [2025-03-21 15:14:52.094] [LOG]   Module helper loaded: updatenotification
                  [2025-03-21 15:14:52.094] [LOG]   No helper found for module: clock.
                  [2025-03-21 15:14:52.231] [LOG]   Initializing new module helper ...
                  [2025-03-21 15:14:52.231] [LOG]   Module helper loaded: calendar
                  [2025-03-21 15:14:52.237] [LOG]   No helper found for module: weather.
                  [2025-03-21 15:14:52.339] [LOG]   Initializing new module helper ...
                  [2025-03-21 15:14:52.339] [LOG]   Module helper loaded: newsfeed
                  [2025-03-21 15:14:52.339] [LOG]   All module helpers loaded.
                  [2025-03-21 15:14:52.342] [LOG]   Starting server on port 8089 ...
                  
                  
                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @Scott-M
                    last edited by sdetweil

                    @Scott-M ok, starting server is correct…

                    did you npm install or npm run install-mm
                    after installing the clipping fix?? (its required)

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @sdetweil said in MMM-CalendarExt3 and MMM-MonthlyCalendar blank:

                      @Scott-M ok, starting server is correct…

                      did you npm install or npm run install-mm
                      after installing the clipping fix?? (its required)

                      I see, my mistake. I assumed from the forum post that this was if you use the development branch, as the instructions said

                      cd ~/MagicMirror
                      git fetch origin pull/3679/head:_fix_clipping
                      git switch _fix_clipping
                      # if you get an error error, rm package-lock.json
                      # and repeat the git switch
                      restart MM
                      

                      with npm run install-mm further down the post. I must have done this on the older one I am using though as it works.

                      Away all weekend so won’t be able to check until Monday.

                      Thanks again!

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

                        Just to pick back up on this, I checked my bash history and I did npm run install-mm after the clipping fix.

                        I have tried a few times now to do this with the same result, this time without the clipping fix.

                        Reflashed the image and then the following steps are my bash history from first run of the OS. Only change to the config file is changing the port and the full whitelist. I selected No to the pm2 question, the screensaver was not disabled, just a waring about not knowing how to disable on an labwc compositor.

                        bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
                        cd ~/MagicMirror/config
                        nano config.js
                        npm run start
                        

                        With the following results, MagicMirror doesn’t start. and doesn’t get any futher that the whitelist warning. Same result without the full whitlist though…

                        scott@MagicMirror:~/MagicMirror/config $ npm run start
                        
                        > magicmirror@2.30.0 start
                        > npm run start:x11
                        
                        
                        > magicmirror@2.30.0 start:x11
                        > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                        
                        [2025-03-25 09:38:22.852] [LOG]   Starting MagicMirror: v2.30.0
                        [2025-03-25 09:38:22.861] [LOG]   Loading config ...
                        [2025-03-25 09:38:22.862] [LOG]   config template file not exists, no envsubst
                        [2025-03-25 09:38:23.052] [INFO]  Checking config file /home/scott/MagicMirror/config/config.js ...
                        [2025-03-25 09:38:23.078] [INFO]  Your configuration file doesn't contain syntax errors :)
                        [2025-03-25 09:38:23.078] [INFO]  Checking modules structure configuration ...
                        [2025-03-25 09:38:23.117] [INFO]  Your modules structure configuration doesn't contain errors :)
                        [2025-03-25 09:38:23.119] [LOG]   Loading module helpers ...
                        [2025-03-25 09:38:23.119] [LOG]   No helper found for module: alert.
                        [2025-03-25 09:38:23.122] [LOG]   Initializing new module helper ...
                        [2025-03-25 09:38:23.122] [LOG]   Module helper loaded: updatenotification
                        [2025-03-25 09:38:23.122] [LOG]   No helper found for module: clock.
                        [2025-03-25 09:38:23.169] [LOG]   Initializing new module helper ...
                        [2025-03-25 09:38:23.169] [LOG]   Module helper loaded: calendar
                        [2025-03-25 09:38:23.170] [LOG]   No helper found for module: compliments.
                        [2025-03-25 09:38:23.170] [LOG]   No helper found for module: weather.
                        [2025-03-25 09:38:23.208] [LOG]   Initializing new module helper ...
                        [2025-03-25 09:38:23.208] [LOG]   Module helper loaded: newsfeed
                        [2025-03-25 09:38:23.208] [LOG]   All module helpers loaded.
                        [2025-03-25 09:38:23.211] [LOG]   Starting server on port 8089 ...
                        [2025-03-25 09:38:23.216] [WARN]  You're using a full whitelist configuration to allow for all IPs
                        
                        
                        

                        Would be useful is someone can replicate this and see if it is something peculiar to my enviroment.

                        Raspberry Pi5 with 64 Bit Debian Bookworm with desktop.

                        I am just about to try with the 32 bit image but the whole process takes a while.

                        Update: couldn’t get it to install on the 32 bit version. New install of 32 bit bookworm, ran the install script and it fails with:

                        installing correct version of node and npm, please wait
                        /usr/local/bin/n: line 753: /usr/local/bin/node: cannot execute: required file not found
                        bash: line 309: /usr/local/bin/node: cannot execute: required file not found
                        node failed to install, exiting

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

                          @Scott-M i will examine and fix the installer

                          32bit on pi5 might never run as there were conflicting hardware changes

                          can you try to start for wayland?

                          npm run start:wayland
                          

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

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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

                            @sdetweil said in MMM-CalendarExt3 and MMM-MonthlyCalendar blank:

                            npm run start:wayland

                            > magicmirror@2.30.0 start:wayland
                            > WAYLAND_DISPLAY="${WAYLAND_DISPLAY:=wayland-1}" ./node_modules/.bin/electron js/electron.js --enable-features=UseOzonePlatform --ozone-platform=wayland
                            
                            did not find extension DRI_Mesa version 1
                            failed to bind extensions
                            did not find extension DRI_Mesa version 1
                            failed to bind extensions
                            did not find extension DRI_Mesa version 1
                            failed to bind extensions
                            did not find extension DRI_Mesa version 1
                            failed to bind extensions
                            [2025-03-25 13:07:24.800] [LOG]   Starting MagicMirror: v2.30.0
                            [2025-03-25 13:07:24.809] [LOG]   Loading config ...
                            [2025-03-25 13:07:24.811] [LOG]   config template file not exists, no envsubst
                            [2025-03-25 13:07:25.425] [INFO]  Checking config file /home/scott/MagicMirror/config/config.js ...
                            [2025-03-25 13:07:25.451] [INFO]  Your configuration file doesn't contain syntax errors :)
                            [2025-03-25 13:07:25.451] [INFO]  Checking modules structure configuration ...
                            [2025-03-25 13:07:25.489] [INFO]  Your modules structure configuration doesn't contain errors :)
                            [2025-03-25 13:07:25.491] [LOG]   Loading module helpers ...
                            [2025-03-25 13:07:25.492] [LOG]   No helper found for module: alert.
                            [2025-03-25 13:07:25.498] [LOG]   Initializing new module helper ...
                            [2025-03-25 13:07:25.499] [LOG]   Module helper loaded: updatenotification
                            [2025-03-25 13:07:25.499] [LOG]   No helper found for module: clock.
                            [2025-03-25 13:07:25.640] [LOG]   Initializing new module helper ...
                            [2025-03-25 13:07:25.640] [LOG]   Module helper loaded: calendar
                            [2025-03-25 13:07:25.642] [LOG]   No helper found for module: compliments.
                            [2025-03-25 13:07:25.647] [LOG]   No helper found for module: weather.
                            [2025-03-25 13:07:25.761] [LOG]   Initializing new module helper ...
                            [2025-03-25 13:07:25.762] [LOG]   Module helper loaded: newsfeed
                            [2025-03-25 13:07:25.762] [LOG]   All module helpers loaded.
                            [2025-03-25 13:07:25.765] [LOG]   Starting server on port 8089 ...
                            [2025-03-25 13:07:25.770] [WARN]  You're using a full whitelist configuration to allow for all IPs
                            [1800:0325/130726.055765:ERROR:wayland_connection.cc(198)] Failed to connect to Wayland display: No such file or directory (2)
                            [1800:0325/130726.055835:ERROR:ozone_platform_wayland.cc(264)] Failed to initialize Wayland platform
                            [1800:0325/130726.055842:ERROR:env.cc(258)] The platform failed to initialize.  Exiting.
                            /home/scott/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
                            
                            
                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @Scott-M
                              last edited by sdetweil

                              @Scott-M this is confusing… by default the system is setup for wayland/labwc,
                              not x11 (which npm start does)

                              just another test, using manual install into another folder

                              cd ~
                              git clone https://github.com/MagicMirrorOrg/MagicMirror.git fribble
                              cd fribble
                              npm run install-mm
                              npm start 
                              

                              if that fails then try erasing the saved electron info

                              cd ~
                              rm -rf .config/Electron
                              cd MagicMirror 
                              npm start 
                              

                              you try the fribble directory too

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

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

                                @sdetweil

                                Sorry, same result with both of those, doesn’t get past the starting server message.

                                System info:

                                sudo cat /sys/firmware/devicetree/base/model;echo
                                cat /etc/os-release
                                Raspberry Pi 5 Model B Rev 1.0
                                PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
                                NAME="Debian GNU/Linux"
                                VERSION_ID="12"
                                VERSION="12 (bookworm)"
                                VERSION_CODENAME=bookworm
                                ID=debian
                                HOME_URL="https://www.debian.org/"
                                SUPPORT_URL="https://www.debian.org/support"
                                BUG_REPORT_URL="https://bugs.debian.org/"
                                
                                

                                I do have an SD with a working MagicMirror on it, installed exactly the same was a couple of weeks ago.

                                I have just going to try another fresh install of bookworm, update / upgrade and then manually install nodejs and npm and MagicMirror ans see what happens. Don’t expect a different result but will see what happens.

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

                                  @Scott-M @sdetweil

                                  So, it works installing manually, bash history…:

                                  sudo apt update
                                  sudo apt full-upgrade
                                  sudo reboot now
                                  curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
                                  sudo apt-get install nodejs -y
                                  sudo apt install npm
                                  git clone https://github.com/MagicMirrorOrg/MagicMirror
                                  cd MagicMirror
                                  npm run install-mm
                                  cp config/config.js.sample config/config.js
                                  npm start
                                  
                                  

                                  The install log from the one that doesn’t run is here if that helps at all.

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

                                    @Scott-M very interesting… only thing I can see different is the sandbox permissions

                                    I don’t have time til later today to examine any more…

                                    thanks for the feedback

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

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

                                      @sdetweil OK, I will keep the various SD cards with working and non working version for a while just in case it would be of help.

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

                                        @Scott-M thanks… appreciate that

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

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

                                          @sdetweil

                                          I had one more attempt at this, this time I ran an update and upgrade before running your script and this time it worked. Cannot see why that would be…

                                          Happy to experiment more if you need more info but I am going to start on building the 2 way mirror now!

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

                                            @Scott-M and my script does that before too, its in the install.log file

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            S 1 Reply Last reply Reply Quote 0

                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • 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