MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    MMM-ImagesPhotos - Show images from a directory

    Utilities
    26
    85
    50705
    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
      ninjabreadman @twosquirrels last edited by

      @twosquirrels So, I suspect (but cannot be certain) that this is your problem. I’ve not found great browser support for EXIF image rotation. There are a variety of command line approaches available, and even some GUI apps.

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

      twosquirrels 1 Reply Last reply Reply Quote 1
      • twosquirrels
        twosquirrels @ninjabreadman last edited by

        @ninjabreadman exiftran worked wonderfully! I used the “automatic” option and it fixed them all! Thanks!

        1 Reply Last reply Reply Quote 0
        • C
          chassain 0 @Galang last edited by

          @Galang Hello, no news about no random ? it will be great for my configuration
          Thanks

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @chassain 0 last edited by

            @chassain-0 ImagesPhotos already does random all the time.

            	randomPhoto: function() {
            		var photos = this.photos;
            		var index = this.randomIndex(photos);
            
            		return photos[index];
            	},
            
            
            	getDom: function() {
            		var self = this;
            		var wrapper = document.createElement("div");
            		var photoImage = this.randomPhoto();
            

            Sam

            Create a working config
            How to add modules

            C 1 Reply Last reply Reply Quote 0
            • C
              chassain 0 @sdetweil last edited by

              @sdetweil sorry…i would say in order

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @chassain 0 last edited by

                @chassain-0 ah, turn off random

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • C
                  chassain 0 last edited by

                  yes of course…but not so easy for me…i 'm looking for 🙂

                  broberg 1 Reply Last reply Reply Quote 0
                  • broberg
                    broberg Project Sponsor @chassain 0 last edited by

                    @chassain-0

                    I don’t know if this works but

                    	randomIndex: function(photos) {
                    		if (photos.length === 1) {
                    			return 0;
                    		}
                    
                    		var generate = function() {
                    			return Math.floor(Math.random() * photos.length);
                    		};
                    
                    		var photoIndex = generate();
                    		this.lastPhotoIndex = photoIndex;
                    
                    		return photoIndex;
                    	},
                    
                    

                    try to change return Math.floor(Math.random() * photos.length); to return Math.floor(photos.length);

                    However it’s Just a guess

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sdetweil @broberg last edited by

                      @broberg no. it needs more… need to USE the this.lastPhotoIndex, and check for over the end of the list,
                      and reset the index when new list is loaded (even tho you didn’t get thru the list, as the module refreshes on a fixed time schedule (not calculated from number of images found)… I would add another config parm

                      I have a fork of this module already, but have many local changes, so cannot make another.

                      Sam

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • C
                        chassain 0 last edited by

                        Hello,

                        I found this module : https://github.com/AdamMoses-GitHub/MMM-ImageSlideshow

                        Maybe a solution. I m going to test this night

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 5
                        • 6
                        • 7
                        • 8
                        • 9
                        • 8 / 9
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy