• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-CalendarWeek doesn't display

Scheduled Pinned Locked Moved Utilities
22 Posts 2 Posters 1.6k 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 Away
    sdetweil @DarrenO 0
    last edited by Apr 30, 2024, 2:53 AM

    @DarrenO-0 said in MMM-CalendarWeek doesn't display:

    re-ran “npm install valid-url” in the /modules/ folder and then restarted MM with pm2 restart

    no…

    in the module folder
    MMM-CalendarWeek

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    D 1 Reply Last reply Apr 30, 2024, 2:57 AM Reply Quote 0
    • D Offline
      DarrenO 0 @sdetweil
      last edited by Apr 30, 2024, 2:57 AM

      @sdetweil
      appears to be the same result :

      /home/serveradmin/.pm2/logs/MagicMirror-error.log last 50 lines:
      0|MagicMir | - /home/serveradmin/MagicMirror/js/electron.js
      0|MagicMir | at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
      0|MagicMir | at s._resolveFilename (node:electron/js2c/browser_init:2:115476)
      0|MagicMir | at Module._resolveFilename (/home/serveradmin/MagicMirror/node_modules/module-alias/index.js:49:29)
      0|MagicMir | at Module._load (node:internal/modules/cjs/loader:908:27)
      0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
      0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
      0|MagicMir | at require (node:internal/modules/helpers:130:18)
      0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js:2:15)
      0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1256:14)
      0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1311:10)
      0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1098:32)
      0|MagicMir | at Module._load (node:internal/modules/cjs/loader:945:12)
      0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
      0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
      0|MagicMir | at require (node:internal/modules/helpers:130:18)
      0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js:3:12)
      0|MagicMir | (Use electron --trace-warnings ... to show where the warning was created)
      0|MagicMir | [2024-04-30 12:40:46.687] [ERROR] (node:71403) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
      0|MagicMir | MESA-INTEL: warning: Bay Trail Vulkan support is incomplete
      0|MagicMir | libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
      0|MagicMir | /home/serveradmin/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
      0|MagicMir | [2024-04-30 12:56:17.257] [ERROR] (node:71685) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘request’
      0|MagicMir | Require stack:
      0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js
      0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js
      0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/calendarfetcher.js
      0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/node_helper.js
      0|MagicMir | - /home/serveradmin/MagicMirror/js/app.js
      0|MagicMir | - /home/serveradmin/MagicMirror/js/electron.js
      0|MagicMir | at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
      0|MagicMir | at s._resolveFilename (node:electron/js2c/browser_init:2:115476)
      0|MagicMir | at Module._resolveFilename (/home/serveradmin/MagicMirror/node_modules/module-alias/index.js:49:29)
      0|MagicMir | at Module._load (node:internal/modules/cjs/loader:908:27)
      0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
      0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
      0|MagicMir | at require (node:internal/modules/helpers:130:18)
      0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js:2:15)
      0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1256:14)
      0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1311:10)
      0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1098:32)
      0|MagicMir | at Module._load (node:internal/modules/cjs/loader:945:12)
      0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
      0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
      0|MagicMir | at require (node:internal/modules/helpers:130:18)
      0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js:3:12)
      0|MagicMir | (Use electron --trace-warnings ... to show where the warning was created)
      0|MagicMir | [2024-04-30 12:56:17.258] [ERROR] (node:71685) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
      0|MagicMir | MESA-INTEL: warning: Bay Trail Vulkan support is incomplete
      0|MagicMir | libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed

      S 1 Reply Last reply Apr 30, 2024, 3:09 AM Reply Quote 0
      • S Away
        sdetweil @DarrenO 0
        last edited by Apr 30, 2024, 3:09 AM

        @DarrenO-0 said in MMM-CalendarWeek doesn't display:

        : Cannot find module ‘request’

        now
        npm install request
        In the folder of the module complaining

        and continue to repeat this process until the cannot find errors are gone

        this is not a MagicMirror problem. it is a module problem.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Apr 30, 2024, 3:20 AM Reply Quote 0
        • D Offline
          DarrenO 0 @sdetweil
          last edited by Apr 30, 2024, 3:20 AM

          @sdetweil
          run how many times?
          have run “npm install valid-url” ~20 times… no change in the error-log
          even run “sudo npm install valid-url” and was prompted to update version of npm from 10.2.5 to 10.6.0, so updated accordingly, then re-ran “npm install valid-url” several more times and no change.

          S 1 Reply Last reply Apr 30, 2024, 3:26 AM Reply Quote 0
          • S Away
            sdetweil @DarrenO 0
            last edited by sdetweil Apr 30, 2024, 3:27 AM Apr 30, 2024, 3:26 AM

            @DarrenO-0 what folder where you in when you ran the command npm install

            and if you followed the instructions correctly, then only once for each missing library

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 2 Replies Last reply Apr 30, 2024, 3:26 AM Reply Quote 0
            • D Offline
              DarrenO 0 @sdetweil
              last edited by Apr 30, 2024, 3:26 AM

              @sdetweil
              in the MMM-CalendarWeek folder

              S 1 Reply Last reply Apr 30, 2024, 3:32 AM Reply Quote 0
              • S Away
                sdetweil @DarrenO 0
                last edited by Apr 30, 2024, 3:32 AM

                @DarrenO-0 show me the contents of the package.json file

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 1 Reply Last reply Apr 30, 2024, 3:39 AM Reply Quote 0
                • D Offline
                  DarrenO 0 @sdetweil
                  last edited by Apr 30, 2024, 3:36 AM

                  @sdetweil
                  ahhh!!! Got it!
                  Had to run the following and restart MM each time until MM came up :
                  npm install request
                  npm install rrule-alt
                  npm install rrule (as rrule-alt is deprecated)

                  The error log still reports that module rrule-alt cannot be found, but the calendar now displays.

                  thank you!

                  S 1 Reply Last reply Apr 30, 2024, 3:40 AM Reply Quote 0
                  • D Offline
                    DarrenO 0 @sdetweil
                    last edited by sdetweil Apr 30, 2024, 3:43 AM Apr 30, 2024, 3:39 AM

                    @sdetweil
                    cat package.json

                    {
                      "name": "mmm-calendarweek",
                      "version": "1.0.0",
                      "description": "This calendar module for [Magic Mirror²](https://github.com/MichMich/MagicMirror) is functionally the same as the default calendar app, however its presentation is different as it uses week view. This module displays events from a public .ical calendar. It can combine multiple calendars. Note that calendars may not contain any entry before 1st January 1970, otherwise the calendar won't be displayed and the module will crash.",
                      "main": "MMM-CalendarWeek.js",
                      "scripts": {
                        "test": "echo \"Error: no test specified\" && exit 1"
                      },
                      "keywords": [],
                      "author": "",
                      "license": "ISC",
                      "dependencies": {
                        "request": "^2.88.2",
                        "rrule": "^2.8.1",
                        "rrule-alt": "^2.2.8",
                        "valid-url": "^1.0.9"
                      }
                    }
                    
                    S 1 Reply Last reply Apr 30, 2024, 3:42 AM Reply Quote 0
                    • S Away
                      sdetweil @DarrenO 0
                      last edited by sdetweil Apr 30, 2024, 3:40 AM Apr 30, 2024, 3:40 AM

                      @DarrenO-0 yes and request is deprecated, and valid-url…

                      that’s why we removed them, cause the base node and electron support fetch, which does all that and more…

                      but the module could have supplied a package.json file and told you to run npm install to satisfy those code requirements

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      S 1 Reply Last reply Apr 30, 2024, 3:44 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        11/22
                        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