Read the statement by Michael Teeuw here.
MMM-ImagesPhotos - Show images from a directory
-
@ninjabreadman exiftran worked wonderfully! I used the “automatic” option and it fixed them all! Thanks!
-
@Galang Hello, no news about no random ? it will be great for my configuration
Thanks -
@chassain-0 ImagesPhotos already does random all the time.
randomPhoto: function() { var photos = this.photos; var index = this.randomIndex(photos); return photos[index]; }, getDom: function() { var self = this; var wrapper = document.createElement("div"); var photoImage = this.randomPhoto();
-
@sdetweil sorry…i would say in order
-
@chassain-0 ah, turn off random
-
yes of course…but not so easy for me…i 'm looking for :)
-
I don’t know if this works but
randomIndex: function(photos) { if (photos.length === 1) { return 0; } var generate = function() { return Math.floor(Math.random() * photos.length); }; var photoIndex = generate(); this.lastPhotoIndex = photoIndex; return photoIndex; },
try to change
return Math.floor(Math.random() * photos.length);
toreturn Math.floor(photos.length);
However it’s Just a guess
-
@broberg no. it needs more… need to USE the this.lastPhotoIndex, and check for over the end of the list,
and reset the index when new list is loaded (even tho you didn’t get thru the list, as the module refreshes on a fixed time schedule (not calculated from number of images found)… I would add another config parmI have a fork of this module already, but have many local changes, so cannot make another.
-
Hello,
I found this module : https://github.com/AdamMoses-GitHub/MMM-ImageSlideshow
Maybe a solution. I m going to test this night
-
I would like to install it twice. If I just copy the folder and rename it, it won’t work anymore. Can somebody help me?