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 36.7k 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

      @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 Reply Quote 0
      • S Offline
        sdetweil @lodevries
        last edited by sdetweil

        @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 Offline
          sdetweil @lodevries
          last edited by

          @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 Reply Quote 0
          • L Offline
            lodevries @sdetweil
            last edited by

            @sdetweil Thank you.

            1 Reply Last reply Reply Quote 0
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • O oggo referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • JerryPJ JerryP referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • L Lazershrimp referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • karsten13K karsten13 referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • karsten13K karsten13 referenced this topic on
            • B blackbull referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • S sdetweil referenced this topic on
            • C Offline
              captsi
              last edited by

              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 Reply Quote 0
              • S Offline
                sdetweil @captsi
                last edited by

                @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
                • S sdetweil referenced this topic on
                • S sdetweil referenced this topic on
                • S sdetweil referenced this topic on
                • 1
                • 2
                • 3
                • 4
                • 5
                • 4 / 5
                • 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