• 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.

module not found error loading module in MagicMirror

Scheduled Pinned Locked Moved Solved Troubleshooting
41 Posts 12 Posters 27.1k Views 14 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.
  • N Offline
    np27np27 @np27np27
    last edited by Jan 31, 2022, 10:38 AM

    Looks like the issue is the PIR sensor module. I believe there is a new PIR module?

    S 1 Reply Last reply Jan 31, 2022, 1:38 PM Reply Quote 0
    • S Away
      sdetweil @np27np27
      last edited by Jan 31, 2022, 1:38 PM

      @np27np27 see this
      https://forum.magicmirror.builders/topic/16074/electron-rebuild-and-magicmirror-v2-18-and-more?_=1643636158919

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      N 1 Reply Last reply Jan 31, 2022, 5:06 PM Reply Quote 0
      • N Offline
        np27np27 @sdetweil
        last edited by Jan 31, 2022, 5:06 PM

        @sdetweil
        Thanks, installed the newer PIR module from @bugsounet and all seems to work fine now. Thanks for the help 👍🏾

        1 Reply Last reply Reply Quote 0
        • S sdetweil referenced this topic on Mar 20, 2022, 6:35 PM
        • S swvalenti referenced this topic on Mar 22, 2022, 9:38 PM
        • S sdetweil referenced this topic on Mar 22, 2022, 9:51 PM
        • S sdetweil referenced this topic on Mar 24, 2022, 5:34 PM
        • S sdetweil referenced this topic on Mar 26, 2022, 4:43 PM
        • M mumblebaj referenced this topic on Mar 30, 2022, 7:04 PM
        • K karsten13 referenced this topic on Apr 5, 2022, 10:39 PM
        • S sdetweil referenced this topic on Apr 6, 2022, 1:15 AM
        • S sdetweil referenced this topic on Apr 8, 2022, 1:44 PM
        • S sdetweil referenced this topic on Apr 18, 2022, 3:17 AM
        • S sdetweil referenced this topic on Apr 19, 2022, 6:54 PM
        • S sdetweil referenced this topic on Apr 22, 2022, 11:26 AM
        • M mumblebaj referenced this topic on Apr 30, 2022, 10:08 AM
        • S sdetweil referenced this topic on Apr 30, 2022, 3:33 PM
        • M mumblebaj referenced this topic on May 1, 2022, 10:36 AM
        • M mumblebaj referenced this topic on May 8, 2022, 9:06 AM
        • S sdetweil referenced this topic on May 8, 2022, 8:30 PM
        • S sdetweil referenced this topic on May 16, 2022, 5:33 PM
        • S sdetweil referenced this topic on May 20, 2022, 4:50 PM
        • L Offline
          lodevries @sdetweil
          last edited by May 20, 2022, 4:57 PM

          @sdetweil Thank you for your instruction.
          One question, my modules are in the directory:
          home/pi/MagicMirror/modules/default.
          You don’t mention the default subdirectory.
          I presume that my path is okay, because all the modules are located in this subdirectory. Is that okay?
          Thank you.

          S 2 Replies Last reply May 20, 2022, 5:14 PM Reply Quote 0
          • S Away
            sdetweil @lodevries
            last edited by sdetweil May 20, 2022, 5:16 PM May 20, 2022, 5:14 PM

            @lodevries you should never put your extra modules in the default folder, that is reserved for modules MM ships as part of the package

            see the ‘How to add modules’ link in my signature below

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil @lodevries
              last edited by May 20, 2022, 5:16 PM

              @lodevries you can move the out pretty easily

              cd modules/default

              mv whatever-name …

              then the config.js shoudl change from

              “module”: “default/whatever_name”
              to
              “module”:“whatever-name”

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              L 1 Reply Last reply May 20, 2022, 5:17 PM Reply Quote 0
              • L Offline
                lodevries @sdetweil
                last edited by May 20, 2022, 5:17 PM

                @sdetweil Thank you.

                1 Reply Last reply Reply Quote 0
                • S sdetweil referenced this topic on May 20, 2022, 9:07 PM
                • S sdetweil referenced this topic on May 21, 2022, 11:27 AM
                • O oggo referenced this topic on May 22, 2022, 12:25 PM
                • S sdetweil referenced this topic on Jun 19, 2022, 3:59 PM
                • S sdetweil referenced this topic on Jun 23, 2022, 6:27 PM
                • S sdetweil referenced this topic on Jul 5, 2022, 12:38 PM
                • J JerryP referenced this topic on Jul 5, 2022, 8:12 PM
                • S sdetweil referenced this topic on Jul 24, 2022, 4:36 PM
                • S sdetweil referenced this topic on Aug 5, 2022, 3:56 PM
                • S sdetweil referenced this topic on Aug 8, 2022, 12:24 AM
                • S sdetweil referenced this topic on Aug 12, 2022, 8:43 PM
                • S sdetweil referenced this topic on Aug 13, 2022, 11:20 AM
                • S sdetweil referenced this topic on Aug 18, 2022, 7:00 PM
                • S sdetweil referenced this topic on Aug 20, 2022, 1:18 PM
                • S sdetweil referenced this topic on Aug 28, 2022, 11:44 PM
                • S sdetweil referenced this topic on Aug 30, 2022, 9:33 PM
                • S sdetweil referenced this topic on Sep 5, 2022, 12:59 PM
                • S sdetweil referenced this topic on Sep 6, 2022, 2:59 PM
                • S sdetweil referenced this topic on Oct 17, 2022, 11:23 AM
                • S sdetweil referenced this topic on Oct 27, 2022, 9:38 PM
                • S sdetweil referenced this topic on Nov 1, 2022, 11:31 AM
                • S sdetweil referenced this topic on Nov 9, 2022, 12:16 PM
                • S sdetweil referenced this topic on Nov 20, 2022, 7:24 PM
                • S sdetweil referenced this topic on Nov 28, 2022, 2:06 AM
                • S sdetweil referenced this topic on Dec 9, 2022, 12:45 PM
                • S sdetweil referenced this topic on Dec 29, 2022, 2:52 PM
                • S sdetweil referenced this topic on Jan 2, 2023, 3:07 PM
                • S sdetweil referenced this topic on Jan 25, 2023, 11:59 PM
                • L Lazershrimp referenced this topic on Jan 26, 2023, 2:03 PM
                • S sdetweil referenced this topic on Feb 5, 2023, 1:34 PM
                • S sdetweil referenced this topic on Feb 10, 2023, 1:06 PM
                • K karsten13 referenced this topic on Feb 19, 2023, 9:31 PM
                • S sdetweil referenced this topic on Mar 18, 2023, 2:10 AM
                • S sdetweil referenced this topic on Apr 4, 2023, 8:44 PM
                • S sdetweil referenced this topic on May 5, 2023, 11:46 AM
                • S sdetweil referenced this topic on Jun 8, 2023, 7:35 PM
                • S sdetweil referenced this topic on Jun 12, 2023, 6:01 PM
                • S sdetweil referenced this topic on Jun 13, 2023, 5:52 PM
                • S sdetweil referenced this topic on Jul 16, 2023, 6:40 PM
                • S sdetweil referenced this topic on Aug 27, 2023, 4:32 PM
                • S sdetweil referenced this topic on Aug 29, 2023, 3:02 PM
                • S sdetweil referenced this topic on Sep 24, 2023, 1:54 PM
                • S sdetweil referenced this topic on Oct 2, 2023, 1:59 PM
                • S sdetweil referenced this topic on Oct 2, 2023, 7:33 PM
                • S sdetweil referenced this topic on Oct 3, 2023, 12:18 PM
                • S sdetweil referenced this topic on Oct 3, 2023, 1:05 PM
                • S sdetweil referenced this topic on Oct 3, 2023, 6:09 PM
                • S sdetweil referenced this topic on Oct 3, 2023, 6:12 PM
                • K karsten13 referenced this topic on Oct 3, 2023, 7:14 PM
                • B blackbull referenced this topic on Oct 5, 2023, 7:39 PM
                • S sdetweil referenced this topic on Oct 6, 2023, 12:33 PM
                • S sdetweil referenced this topic on Oct 6, 2023, 1:31 PM
                • S sdetweil referenced this topic on Oct 8, 2023, 12:13 PM
                • S sdetweil referenced this topic on Oct 10, 2023, 7:18 PM
                • S sdetweil referenced this topic on Oct 12, 2023, 3:46 PM
                • S sdetweil referenced this topic on Nov 5, 2023, 3:31 PM
                • S sdetweil referenced this topic on Nov 17, 2023, 9:32 PM
                • S sdetweil referenced this topic on Dec 28, 2023, 10:47 PM
                • S sdetweil referenced this topic on Jan 3, 2024, 10:33 PM
                • S sdetweil referenced this topic on Jan 8, 2024, 11:51 AM
                • S sdetweil referenced this topic on Apr 20, 2024, 1:33 PM
                • S sdetweil referenced this topic on Apr 30, 2024, 2:20 AM
                • S sdetweil referenced this topic on May 12, 2024, 3:26 PM
                • S sdetweil referenced this topic on May 29, 2024, 2:38 PM
                • S sdetweil referenced this topic on Jun 1, 2024, 11:17 PM
                • C Offline
                  captsi
                  last edited by Jun 27, 2024, 7:05 AM

                  Thank you so much @sdetweil. I tried to update a module, ran out of memory (8GB SD card install), had to upgrade then got the dreaded black screen. Your first post in this thread solved it.

                  I’ve written a couple of modules, mainly by using other people’s code as a base and then changing the functionality, only because my coding is basic.

                  So… one module uses request in the node helper. You’ve already helped someone install it, so thanks for that. The code is
                  }
                  request(options, function (error, response, body) {
                  if (!error && response.statusCode == 200) {
                  var result = JSON.parse(body)
                  // console.log(response.statusCode + result); // uncomment to see in terminal
                  self.sendSocketNotification(‘TIDAL_RESULT’, result)

                  What should I be using instead of “request”?

                  Another module I use is calendarweek. Again its broken through the deprecated function “valid url” and “rrule”

                  createFetcher: function(url, fetchInterval, excludedEvents, maximumEntries, maximumNumberOfDays, auth) {
                  var self = this;
                  if (!validUrl.isUri(url)) {
                  self.sendSocketNotification(“INCORRECT_URL”, {url: url});
                  return;
                  }

                  and

                  if (typeof event.rrule !== “undefined” && event.rrule !== null && !isFacebookBirthday) {
                  var rule = event.rrule;
                  var addedEvents = 0;

                  					// can cause problems with e.g. birthdays before 1900
                  					if(rule.options && rule.origOptions && rule.origOptions.dtstart && rule.origOptions.dtstart.getFullYear() < 1900 ||
                  						rule.options && rule.options.dtstart && rule.options.dtstart.getFullYear() < 1900){
                  						rule.origOptions.dtstart.setYear(1900);
                  						rule.options.dtstart.setYear(1900);
                  					}
                  
                  					// For recurring events, get the set of start dates that fall within the range
                  					// of dates we"re looking for.</code>
                  

                  Is there an elegant solution other than pulling the deprecated libraries?

                  S 1 Reply Last reply Jun 27, 2024, 10:22 AM Reply Quote 0
                  • S Away
                    sdetweil @captsi
                    last edited by Jun 27, 2024, 10:22 AM

                    @captsi there is no ‘no work’ solution.

                    built in fetch replaces request

                    I don’t know on the others.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • S sdetweil referenced this topic on Oct 20, 2024, 8:08 PM
                    • S sdetweil referenced this topic on Nov 24, 2024, 11:25 AM
                    • S sdetweil referenced this topic on Jan 5, 2025, 11:40 AM
                    • S sdetweil referenced this topic on Jan 11, 2025, 7:16 PM
                    • 1
                    • 2
                    • 3
                    • 4
                    • 5
                    • 4 / 5
                    4 / 5
                    • First post
                      37/41
                      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