Read the statement by Michael Teeuw here.
MMM-ImagesPhotos - Show images from a directory
-
@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 -
ok, it has the same name. can I rename the module for myself, the folder?
-
@KamiSchami rename the old folder, then git clone again from my repo, fixup any config parts, make link, or move link from old folder
-
🙈 ok, i will try it