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.

    Modules with Images not Displaying

    Scheduled Pinned Locked Moved Solved Troubleshooting
    10 Posts 3 Posters 3.9k Views 3 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 Offline
      StrIIker
      last edited by

      I have been trying to add a few modules which are supposed to display images to my mirror. Thus far, none of them have been loading the images. I have tried MMM-moon-phases, MMM-earth, and MMM-mars and none load their image. I get the header and some form of a spinning icon or a square outline etc. I saw that a couple people pointed out elsewhere that the moon phase module was not working for them either.

      I am running the latest build of Magic Mirror (2.5.0). Has anyone else who is using these modules or other similar modules which load an image from a remote site run into issues? If not, are you on an older build of Magic Mirror? Thanks!

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @StrIIker
        last edited by

        @striiker

        Did you run npm install in the MMM-EARTH directory first?

        Then, this should be your default config.js entry for MMM-EARTH:

        {
            module: "MMM-EARTH",
            position: "bottom_center",
            config: {
                mode: "Natural",
                rotateInterval: 15000,
                MaxWidth: "50%",
                MaxHeight: "50%",
            }
        },
        

        and the default config.js entry for MMM-MARS

        {
            module: 'MMM-MARS',
            position: 'top_left',
            config: {
                rover: "curiosity",              // which rover? curiosity, opportunity or spirit
                sol: "200",                      // sol date you want pictures from
                useHeader: false,                // true if you want a header      
                header: "",                      // useHeader must be true
                maxWidth: "300px",
                rotateInterval: 5 * 60 * 1000,   // new image 5 minutes
            }
        },
        

        Create a working config
        How to add modules

        S 1 Reply Last reply Reply Quote 1
        • S Offline
          StrIIker @Mykle1
          last edited by StrIIker

          @mykle1

          Yes, I did run the nom install command from the MMM-EARTH directory and it completed the install. I also have the config in place as listed. Please see a screen shot of the lower portion of my display… (and yes, that news headline is terrifying!) ;)

          Here’s my command summary from when I installed MMM-EARTH

          pi@raspberrypi:~/MagicMirror/modules $ git clone https://github.com/mykle1/MMM-EARTH.git
          Cloning into 'MMM-EARTH'...
          remote: Enumerating objects: 361, done.
          remote: Total 361 (delta 0), reused 0 (delta 0), pack-reused 361
          Receiving objects: 100% (361/361), 1.73 MiB | 2.15 MiB/s, done.
          Resolving deltas: 100% (202/202), done.
          pi@raspberrypi:~/MagicMirror/modules $ cd MMM-EARTH/
          pi@raspberrypi:~/MagicMirror/modules/MMM-EARTH $ npm install
          npm notice created a lockfile as package-lock.json. You should commit this file.
          added 49 packages in 41.578s
          

          0_1539637161553_Screen Shot 2018-10-15 at 4.57.03 PM.png

          EDIT: Here’s a link to the other module which is having issues:

          https://github.com/spectroman/mmm-moon-phases/issues/11

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

            Here are my config entries for the two modules…

            {
                module: 'MMM-MARS',
                position: 'bottom_left',
                config: {
                    rover: "curiosity",              // which rover? curiosity, opportunity or spirit
                    sol: "200",                      // sol date you want pictures from
                    useHeader: false,                // true if you want a header
                    header: "",                      // useHeader must be true
                    maxWidth: "300px",
                    rotateInterval: 5 * 60 * 1000,   // new image 5 minutes
                }
            },
            {
                module: "MMM-EARTH",
                position: "bottom_center",
                config: {
                    mode: "Natural",
                    rotateInterval: 15000,
                    MaxWidth: "50%",
                    MaxHeight: "50%",
                }
            },
            
            justjim1220J Mykle1M 2 Replies Last reply Reply Quote 0
            • justjim1220J Offline
              justjim1220 Module Developer @StrIIker
              last edited by

              @striiker

              Have your tried rebooting your system?

              "Life's Too Short To Dance With Ugly People"
              Jim Hallock - 1995

              S 1 Reply Last reply Reply Quote 1
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer @StrIIker
                last edited by

                @striiker

                I just copy and pasted your config entry from above and both modules fired right up. Have you changed anything in the module files?

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 1
                • S Offline
                  StrIIker @justjim1220
                  last edited by

                  @justjim1220 said in Modules with Images not Displaying:

                  @striiker

                  Have your tried rebooting your system?

                  Derp… No… I should have done that!! It’s all working now… Thank you for the advice!

                  1 Reply Last reply Reply Quote 1
                  • S Offline
                    StrIIker
                    last edited by

                    @mykle1 said in Modules with Images not Displaying:

                    @striiker

                    I just copy and pasted your config entry from above and both modules fired right up. Have you changed anything in the module files?

                    Well, looks like I should have rebooted my system. I was going to and thought “nah, I shouldn’t have to do that”. Then it was suggested by @justjim1220 and so I tried it and now both are working… Thank you both for your help!!

                    Mykle1M 1 Reply Last reply Reply Quote 2
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @StrIIker
                      last edited by

                      @striiker said in Modules with Images not Displaying:

                      “nah, I shouldn’t have to do that”

                      True, you should not have to do that but I’m glad you got them working. :thumbsup:

                      Create a working config
                      How to add modules

                      justjim1220J 1 Reply Last reply Reply Quote 1
                      • justjim1220J Offline
                        justjim1220 Module Developer @Mykle1
                        last edited by

                        @mykle1 @StrIIker

                        All I know is that with the new MM update that came out on the 1st of October, this is the only way I have been able to get some modules to work, including after the MM update. Was suggested to me by Michael Teeuw when I first updated to v2.5.0.

                        "Life's Too Short To Dance With Ugly People"
                        Jim Hallock - 1995

                        1 Reply Last reply Reply Quote 1

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 1 / 1
                        • 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