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.

    Image Galery

    Scheduled Pinned Locked Moved Requests
    34 Posts 13 Posters 33.5k 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.
    • J Offline
      Jeff @fragator
      last edited by Jeff

      @fragator
      I thought that would be a quick thing ;)
      But I can’t find the right parameters neigther…

      I was looking at

       getStyles: function() {
              return ['instagram.css', 'font-awesome.css'];
      

      but can’t find font-awesome.css. Maybe just a file the creator forgot to delete.

      The pictures are smaller in the mirror, than they are on instagram.
      So there must be a parameter somewhere.

      I’ll keep searching for them or try to add some.

      We should go to the original thread for this modul:
      https://forum.magicmirror.builders/topic/396/mmm-instagram-pull-and-animate-photos-from-instagram-feed

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jeff
        last edited by Jeff

        Take this one :)
        https://github.com/jeffjoe/MMM-Instagram

        Or just change in the config.js:

        {
            module: 'MMM-Instagram',
            position: 'top_right',
            config: {
                access_token: '......',
                count: 200,  
                min_timestamp: 0,
                animationSpeed: 5500,
                updateInterval: 12500,
                instaMaxWidth: '20%', // Optional parameter, can be relative (percentage) or absolute (px)
                instaMaxHeight: '' // Optional parameter, can be absolute only (px)
            }
        },
        

        and in the MMM-instagram.js use this

        // set the first item in the list...
                if (this.activeItem >= this.images.photo.length) {
                    this.activeItem = 0;
                }
                
                var tempimage = this.images.photo[this.activeItem];
                
                // image       
        	//imageLink.innerHTML = "<img src='https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png'>";
                
        
                var imageWrapper = document.createElement("img");
        	    imageWrapper.src = tempimage.photolink;
        	    imageWrapper.id = "MMM-Instagram-image";
        	    imageWrapper.style.maxWidth = this.config.instaMaxWidth;
        	    imageWrapper.style.maxHeight = this.config.instaMaxHeight;
        	    imageDisplay.appendChild(imageWrapper);
                
        
        	wrapper.appendChild(imageDisplay);
               
                return wrapper;
            },
        

        and for using the css file use:

        #MMM-Instagram-image {
            }
        

        e.g.:

        #MMM-Instagram-image {
            -webkit-filter: invert(1);
            filter: invert(1);
        }
        strawberry 3.141S F 2 Replies Last reply Reply Quote 0
        • strawberry 3.141S Offline
          strawberry 3.141 Project Sponsor Module Developer @Jeff
          last edited by

          @Jeff the font-awesome.css is located in the vendor directory of MagicMirror

          Please create a github issue if you need help, so I can keep track

          1 Reply Last reply Reply Quote 0
          • F Offline
            fragator @Jeff
            last edited by

            @Jeff
            I tried the method, it does not always work. He must have a simpler method to enlarge these photos on the mirror.

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              Jeff @fragator
              last edited by

              @fragator
              When does it mot work?
              Always the same picture?

              1 Reply Last reply Reply Quote 0
              • F Offline
                fragator
                last edited by fragator

                @Jeff
                Yes, I just do it at the moment, always the same image size.

                1 Reply Last reply Reply Quote 0
                • U Offline
                  Ultimatum22 Module Developer
                  last edited by

                  This is exactly what I am currently developing, loading random photos from a directory. For my personal use I want additional info about the photo, which I have done by using subdirectories. Last directory is the name who took the photo, the rest is the ‘album’.

                  For example folder structure:
                  photos\Vacation\Cuba - 2013\Dave
                  photos\Vacation\Cuba - 2013\Erik
                  photos\Vacation\Egypt - 2012\Dave

                  This displays Vacation\Cuba - 2013 as album and Dave as person who took the photo. I am also trying to get the timestamp from the photo but not sure it works yet. I am going to make it an option to show extra photo information.

                  Anybody still interested? I can do an early release in the near future.

                  1 Reply Last reply Reply Quote 1
                  • F Offline
                    fragator
                    last edited by

                    Yes of course. And thank you in advance for sharing.

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      Woody
                      last edited by

                      @Ultimatum22
                      Hi, that’s what I’m looking for. I’m highly interested on your module. Good speed - I’m looking forward to try it within my installation.

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

                        I would love to see a simple offline(or network share) image gallery. Thank you for your effort!

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