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.

    Mirror goes to black after adding MMM-CalendarWeek

    Scheduled Pinned Locked Moved Solved Troubleshooting
    11 Posts 4 Posters 3.4k Views 4 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.
    • M Offline
      maddmurph @sdetweil
      last edited by

      @sdetweil

      [08.08.2021 15:39.45.829] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'valid-url'
      Require stack:
      - /home/pi/MagicMirror/modules/MMM-CalendarWeek/node_helper.js
      - /home/pi/MagicMirror/js/app.js
      - /home/pi/MagicMirror/js/electron.js
      - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      
      

      So I’m guessing this means the url isn’t valid, but I copied the secret .ical address right from google. What am I missing?

      S 1 Reply Last reply Reply Quote 0
      • D Offline
        DJBOOB66
        last edited by DJBOOB66

        recheck your config you may mistakes" ],"

        {
                    module: "MMM-CalendarWeek",
                    position: "lower_third",
                    config: {
                            calendars:[
                                    {
                                    url: "https://calendar.google.com/calendar/ical/secretGooglecode"
                                    }
                    
                            }
        	   ],
         },
        
        M 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @maddmurph
          last edited by

          @maddmurph the valid-url and request modules were removed from mm in 2.16 as request has a security issue and will not be fixed.

          we’ve found quite a few modules that did not document the libraries they used, oops

          so to fix near term

          cd ~/MagicMirror
          npm install valid-url
          

          the module is still broken and next mm install this will fail again

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            maddmurph @sdetweil
            last edited by

            @sdetweil
            I did that and now nothing works. I get this error

            [08.08.2021 19:02.42.973] [ERROR] WARNING! Could not find config file. Please create one. Starting with default configuration.
            [08.08.2021 19:02.42.976] [LOG]   Loading module helpers ...
            [08.08.2021 19:02.42.977] [LOG]   No helper found for module: alert.
            [08.08.2021 19:02.42.979] [LOG]   Initializing new module helper ...
            [08.08.2021 19:02.42.980] [LOG]   Module helper loaded: updatenotification
            [08.08.2021 19:02.42.982] [LOG]   No helper found for module: clock.
            [08.08.2021 19:02.42.985] [LOG]   No helper found for module: weather.
            [08.08.2021 19:02.42.987] [LOG]   All module helpers loaded.
            [08.08.2021 19:02.42.989] [ERROR] App threw an error during load
            [08.08.2021 19:02.42.992] [ERROR] Error: ENOENT: no such file or directory, open
                at Object.openSync (fs.js:466:3)
            
            

            Tried running npm install ENOENT but that’s apparently not a thing.

            S 1 Reply Last reply Reply Quote 0
            • M Offline
              maddmurph @DJBOOB66
              last edited by

              @djboob66 Weird, it’s right in the config.js on the mirror. Good catch though.

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @maddmurph
                last edited by sdetweil

                @maddmurph weird a dozen people have done this successfully…

                also npm install request

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Reply Quote 0
                • Z Offline
                  Zwirbel
                  last edited by

                  In my case, in the error massage it said that also rrule-alt was missing, so I did a “npm install rrule-alt” to get it working again.

                  S 1 Reply Last reply Reply Quote 1
                  • S Offline
                    sdetweil @Zwirbel
                    last edited by

                    @zwirbel bingo. nice work.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      maddmurph @sdetweil
                      last edited by

                      @sdetweil looks like I had https set to True and that was causing an issue in addition to the other installs needed.

                      Thanks for your help!

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 2 / 2
                      • 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