• 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.

MMM-Instagram - Pull and animate photos from Instagram feed

Scheduled Pinned Locked Moved Utilities
87 Posts 26 Posters 94.6k Views 27 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.
  • K Offline
    kapsolas Module Developer
    last edited by Jul 23, 2016, 5:44 PM

    Check out my module to pull images from a users Instagram Feed. An API_KEY is required to set this up.
    The images will be pulled will animate and rotate on the mirror.

    The link for it is http://bit.ly/MMM-Instagram

    Thanks!

    N 1 Reply Last reply Apr 25, 2018, 5:57 AM Reply Quote 3
    • Z Offline
      zombi27
      last edited by Jul 26, 2016, 8:32 AM

      Wow, thanks for that great module :)

      I had problems getting a api key, but then i found this helpful link, maybe it helps others: http://jelled.com/instagram/access-token

      But i have a little problem with my pictures: on not-square pics i get ugly white bars :/ do you know a way to turn those of / make them black?

      K 1 Reply Last reply Jul 29, 2016, 12:56 PM Reply Quote 0
      • B Offline
        bokifide
        last edited by Jul 26, 2016, 9:34 PM

        Is there a way to just pull the followers on my instagram profile??

        K 1 Reply Last reply Jul 29, 2016, 12:57 PM Reply Quote 0
        • P Offline
          potentialpotato
          last edited by Jul 27, 2016, 3:14 AM

          This is awesome and Instagram has solid steps on how to get the access token. You can only view the feed of an account you have credentials to, unless you register an app and have it approved.

          Another note, does it have to be restarted anytime you want to pull the most recent images? I uploaded new pictures to my IG feed, and let it sit for 12 hours but it didn’t update.

          K 1 Reply Last reply Jul 29, 2016, 12:57 PM Reply Quote 0
          • K Offline
            kapsolas Module Developer @zombi27
            last edited by Jul 29, 2016, 12:56 PM

            @zombi27 No idea. I haven’t looked into that. Maybe the code could be updated to check the width and height and dynamically set those when showing the image.

            I won’t have time to work on it for a month so maybe when I return I can try to.

            1 Reply Last reply Reply Quote 0
            • K Offline
              kapsolas Module Developer @bokifide
              last edited by Jul 29, 2016, 12:57 PM

              @bokifide Probably! The API is pretty feature rich. I just wanted to pull my feed images. To pull from your followers, it would need to be coded in.

              I’ll consider it for a future enhancement.

              1 Reply Last reply Reply Quote 0
              • K Offline
                kapsolas Module Developer @potentialpotato
                last edited by Jul 29, 2016, 12:57 PM

                @potentialpotato The update to the feed should occur right away. The code is set up to refresh the feed based on the updateInterval value.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dr0pb0x
                  last edited by Sep 3, 2016, 7:51 AM

                  anyway to make the images smaller/larger?

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    kapsolas Module Developer
                    last edited by Sep 3, 2016, 3:26 PM

                    Hi,

                    I have not looked into autoresizing an image. It is on my list to get to when I have some time.

                    The image at this point is not being resized, I just take it and display it as it comes from instagram.
                    Videos will auto play when I get to them as well.

                    Thanks!

                    1 Reply Last reply Reply Quote 0
                    • Y Offline
                      yo-less Module Developer
                      last edited by yo-less Sep 3, 2016, 7:31 PM Sep 3, 2016, 5:51 PM

                      @dr0pb0x , @kapsolas I had a quick look at your code (Not a fan of the bit.ly link) and if you go about displaying the Instagram image this way:

                      	var imageWrapper = document.createElement("img");
                      	imageWrapper.src = tempimpage.photolink;
                      	imageWrapper.style.maxWidth = this.config.instaMaxWidth;
                      	imageWrapper.style.maxHeight = this.config.instaMaxHeight;
                      	imageDisplay.appendChild(imageWrapper);
                      

                      you should be able to specify two parameters instaMaxWidth and instaMaxHeight that the user can change in their config.file so the beginning of your MMM-Instagram.js file would look like this:

                          defaults: {
                              format: 'json',
                              lang: 'en-us',
                              id: '',
                              animationSpeed: 1000,
                              updateInterval: 60000, // 10 minutes
                              access_token: '',
                              count: 200,
                              min_timestamp: 0,
                              loadingText: 'Loading...',
                              instaMaxWidth: '100%',
                              instaMaxHeight: '100%'
                          },
                      

                      Now, any user of your module could define their own maximum image width and height, either by specifying an absolute figure like ‘300px’ or in relative terms using ‘20%’ or the like. I’ve created a pull request, but I suggest you test my code first as I don’t have an Instagram account or Instagram API key to test it.

                      You can use my fork to do so: https://github.com/yo-less/MMM-Instagram

                      D J 2 Replies Last reply Sep 3, 2016, 6:25 PM 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