• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 32.1k 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 Jeff Nov 26, 2016, 1:50 AM Nov 26, 2016, 1:19 AM

    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);
    }
    S F 2 Replies Last reply Nov 26, 2016, 9:59 AM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @Jeff
      last edited by Nov 26, 2016, 9:59 AM

      @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 Nov 26, 2016, 9:16 PM

        @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 Nov 26, 2016, 9:17 PM Reply Quote 0
        • J Offline
          Jeff @fragator
          last edited by Nov 26, 2016, 9:17 PM

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

          1 Reply Last reply Reply Quote 0
          • F Offline
            fragator
            last edited by fragator Nov 26, 2016, 9:26 PM Nov 26, 2016, 9:19 PM

            @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 Nov 28, 2016, 6:28 PM

              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 Nov 28, 2016, 6:32 PM

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

                1 Reply Last reply Reply Quote 0
                • W Offline
                  Woody
                  last edited by Nov 28, 2016, 9:29 PM

                  @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 Nov 29, 2016, 10:27 AM

                    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 Dec 2, 2016, 8:14 AM

                      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 Dec 2, 2016, 2:52 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      2 / 4
                      • First post
                        19/34
                        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