Read the statement by Michael Teeuw here.
MMM-Instagram - Pull and animate photos from Instagram feed
-
@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.
-
@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.
-
@potentialpotato The update to the feed should occur right away. The code is set up to refresh the feed based on the updateInterval value.
-
anyway to make the images smaller/larger?
-
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!
-
@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
andinstaMaxHeight
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
-
@yo-less unfortunately this didn’t work :( I even tried setting it to 1px/1% just to make sure but the images didnt change in size
-
@dr0pb0x Have you tried using my forked version here:
https://github.com/yo-less/MMM-Instagram -
@dr0pb0x I’ve tried it with my forked version after changing the module to simply retrieve any picture from the internet. It’s working fine.
The only limitation is that you can’t set the MaxHeight in relative terms (percentages), other than that, it works as intended as far as I can tell without actually using the API. -
@yo-less I just had a chance to try it out and it still doesn’t work for me. Could it possibly be Instagram’s API?