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