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 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.
    • J Offline
      Jeff
      last edited by

      Is it important that it’s flickr?
      I’m using my picture frame with instagram. I created a new instagram acc, registered as a dev and received the API.
      The new instagram account is made private, so it’s just possible for me to see the pictures.
      Works perfect!
      I used this this modul:
      https://github.com/kapsolas/MMM-Instagram

      F M 2 Replies Last reply Reply Quote 0
      • F Offline
        fragator @Jeff
        last edited by

        @Jeff
        I did exactly the same thing as you,
        And it works perfectly well.
        J adds, or removes pictures as I wish.
        I would like to succeed to change the size of the photos on the mirror, what you do ???

        J 1 Reply Last reply Reply Quote 0
        • 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
                            • U Offline
                              Ultimatum22 Module Developer
                              last edited by

                              Next week I have some time to work on this,I’ll post a link to the repo here. If you have any request about features post them here for now,will make my own topic in the future.

                              M M 2 Replies Last reply Reply Quote 0
                              • M Offline
                                Mephiston2K @Ultimatum22
                                last edited by

                                @Ultimatum22

                                Take all the time you need, since this is you doing all the work.
                                I am no good in coding although I learned some coding years ago I feel a bit ashamed I don’t contribute (well I found a Bug in MM 1 once and was happy to give Michael the hint).

                                I call it ideas - not requests because I am grateful for anything:

                                I would love to see an option to configure when the picture will change. Not based on the uptime of the mirror + x seconds.
                                More like based on the clock[daily, full hour, every x minute, every x seconds],
                                Probably even a scheduler for different folders/albums (ie. weekdays folder/album A , weekends folder/album B )

                                option to scale

                                option to include/exclude subfolders

                                I don’t know how this is handled but pre buffering the images would probably be a good idea due to the use of network shares.
                                Imagine your mirror would always access your NAS(my mirror is an always on device) the drives of the NAS won’t go into sleep mode.
                                A regular wipe of the buffer would be required so your mirror won’t run into memory problems.
                                therefore an option to configure buffer size and/or a configurable time to wipe the buffer

                                a local fallback folder(probably a standard subfolder of the module) when other sources are offline.

                                option to configure different animations how the pictures change

                                Again, these a just ideas, not requests!
                                I hope I will have some time around christmas to upgrade to MM2 - there are so many nice modules around and I know yours will be one of my favs.

                                Regards & happy coding

                                Mephi

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

                                  @Jeff
                                  Sorry been out of the loop for a couple weeks - No does not have to be flickr was just using that on another digital sign.
                                  I will give this a shot, thanks for the head up.
                                  I really want the pictures to take up the whole screen or at least a large section of the middle. I have not figured that out either.
                                  Again, Thanks

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    mikenewhouse @Ultimatum22
                                    last edited by

                                    @Ultimatum22
                                    As Mephiston2K stated, just idea’s and thanks in advance.
                                    It looks like we have two different type of requests going.

                                    1. Local images
                                    2. Cloud based images

                                    I personally am looking for cloud based as I am building some of these Mirrors for relatives and we want to show pictures of the family and such. Adding photos when we can so the grand parents can see updated pictures.

                                    I would like the pictures to consume most of the mirror or at least a large portion of the center, I guess adjustable image size would be the holy grail.

                                    Best wishes,
                                    Mike

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

                                      I trying to get shadows around the picture to get a smooth overlay from the picture to the mirrors backround.
                                      I’m not sure how to do this. The only way I know, i to change the original picture e.g. on instagram and put a black shadow overlay around. But I’m not really happy with this solution.
                                      Maybe someone knows better…

                                      @Mephiston2K said in Image Galery:

                                      @Ultimatum22
                                      would love to see an option to configure when the picture will change. Not based on the uptime of the mirror + x seconds.
                                      More like based on the clock[daily, full hour, every x minute, every x seconds],

                                      for this you could use the module where the modules on the mirror are changed by time.
                                      Just copy this image module, so you have image module one and two… then set the time.

                                      I know, not a clean way to do it, but at least it should work.

                                      yawnsY 1 Reply Last reply Reply Quote 0
                                      • yawnsY Offline
                                        yawns Moderator @Jeff
                                        last edited by yawns

                                        @Jeff said in Image Galery:

                                        I trying to get shadows around the picture to get a smooth overlay from the picture to the mirrors backround.
                                        I’m not sure how to do this. The only way I know, i to change the original picture e.g. on instagram and put a black shadow overlay around. But I’m not really happy with this solution.
                                        Maybe someone knows better…

                                        Some options I could think of, by just modifying your css file.

                                        1. adds a small drop shadow to the image on the right side and at the bottom
                                        #MMM-Instagram-image {
                                            box-shadow: 5px 5px 5px #aaa;
                                        }
                                        
                                        1. adds a “glowing” shadow all around the image
                                        #MMM-Instagram-image {
                                            box-shadow: 2px 2px 15px #aaa, -2px 2px 15px #aaa, 2px -2px 15px #aaa, -2px -2px 15px #aaa;
                                        }
                                        
                                        1. make it look like a polaroid thrown on the mirror
                                        #MMM-Instagram-image {
                                            box-shadow: 10px 10px 15px #aaa;
                                        	padding: 10px 10px 30px 10px;
                                        	border: 1px solid #bfbfbf;
                                        	background-color: #fff;
                                        	transform: rotate(-6deg);
                                        	-ms-transform: rotate(-6deg);
                                        	-webkit-transform: rotate(-6deg);
                                        }
                                        

                                        Not sure if this is what you are looking for. If you go for the polaroid look (which I really like) you could add several “versions” with different rotation values and change the class when loading the next image to have some randomness.

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

                                          I think that’s what I was looking for!
                                          CCS was the way I was thinking about, but just couldn’t find the right code.

                                          Will try it later. Thanks alot

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

                                            0_1480979655148_thumbnail_IMG_0109.jpg
                                            @yawns

                                            Works perfectly, thanks for the info.
                                            I also just want to enlarge the image, what and the code for that.

                                            yawnsY 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
                                            • 2
                                            • 2 / 2
                                            • 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