Read the statement by Michael Teeuw here.
MMM-ImagesPhotos - Show images from a directory
-
@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?
-
u can try mine too
https://github.com/sdetweil/MMM-ImagesPhotosto make images from a server the module/uploads folder needs to be replaced by a linked (ln command) to the server share folder
ln -s server_share uploads
I am very picky about how my images are displayed, no distortion allowed…
I also support color or blurred image fill where the image does not cover the full screen