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-ImagesPhotos - Show images from a directory

    Scheduled Pinned Locked Moved Utilities
    85 Posts 26 Posters 103.3k Views 26 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.
    • R Offline
      roramirez Core Contributors @nobita
      last edited by

      @nobita Yes, currently work only in random mode.

      You can create a new function for get data in not random mode and you call here
      https://github.com/roramirez/MMM-ImagesPhotos/blob/master/MMM-ImagesPhotos.js#L128

      A good point is add by configuration this function. If you are interested to add this feature with glad I’ll merge it :)

      Easy module development with MagicMirror Module Template

      1 Reply Last reply Reply Quote 0
      • G Offline
        Galang
        last edited by

        hey @roramirez. i really like your MMM-imagephoto module. this module show photo with random but i want it oreder, can you help me how to fix this ?

        C 1 Reply Last reply Reply Quote 0
        • V Offline
          Vauxdvihl
          last edited by

          Great module
          Thanks for this
          One question
          How can i adjust the size?

          Thanks

          1 Reply Last reply Reply Quote 0
          • M Offline
            markus220
            last edited by

            There are no pictures on my mirror. It seems like the module doesn’t load.

            1 Reply Last reply Reply Quote 0
            • dasbooterD Offline
              dasbooter @roramirez
              last edited by

              Thanks a bunch for this module. Seems to work great maybe some pics show up more often than others. Curious what formats it accepts?

              1 Reply Last reply Reply Quote 0
              • cowboysdudeC Offline
                cowboysdude Module Developer
                last edited by

                I’m going to think it accepts all formats…nothing is specified…

                @markus220 did you check the developer console to see if there are errors? Did you use the right dir format?

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Peter
                  last edited by

                  Very nice module.
                  I have about 2000 pictures in the Upload directory, all resized to 100 kb.
                  But the module only shows about 50 of them.
                  Why does it not show the other pictures?
                  Any idea?
                  Peter

                  N 1 Reply Last reply Reply Quote 0
                  • N Offline
                    ninjabreadman @Peter
                    last edited by

                    @Peter

                    What does your config look like? Where are your images? What type(s) are they? I tried making a folder with 100 files (well over 50), but that seemed to work fine.

                    Do you have the photos in multiple folders/paths? If so, have you tried removing the path of the photos that work to leave the other paths (to determine they work)? Have you tried adding treatAllPathsAsOne: true to your module config?

                    What is the content of photos.txt if you type curl http://localhost:8080/MMM-ImagesPhotos/photos > photos.txt into a separate console (while MM is running)?

                    Don’t post it all here, but if there are not several thousand entries, the module is not seeing all of your files (but you knew that).

                    Problem with config or JavaScript? Copy/paste it into JSHint.
                    Check out the detailed walkthroughs on install, config, modules, etc.

                    P 1 Reply Last reply Reply Quote 0
                    • P Offline
                      Peter @ninjabreadman
                      last edited by

                      @ninjabreadman solved.
                      I did something stupid.
                      I had 70 pictures (5mb each) and it caused trouble, so I resized them to 100kb.
                      But I also have 2 sd cards …
                      I put 2000 pictures (100kb) on one card and left the 70 (5mb) pictures on the other card.
                      And then I changed cards …
                      Peter

                      N 1 Reply Last reply Reply Quote 0
                      • N Offline
                        ninjabreadman @Peter
                        last edited by

                        @Peter At least it’s fixed! Cheers.

                        Problem with config or JavaScript? Copy/paste it into JSHint.
                        Check out the detailed walkthroughs on install, config, modules, etc.

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 8
                        • 9
                        • 1 / 9
                        • 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