Read the statement by Michael Teeuw here.
MMM-ImagesPhotos - Show images from a directory
-
What does your config look like? Where are your images? What type(s) are they? I tried making a folder with 100 files (well over 50), but that seemed to work fine.
Do you have the photos in multiple folders/paths? If so, have you tried removing the path of the photos that work to leave the other paths (to determine they work)? Have you tried adding
treatAllPathsAsOne: true
to your module config?What is the content of
photos.txt
if you typecurl http://localhost:8080/MMM-ImagesPhotos/photos > photos.txt
into a separate console (while MM is running)?Don’t post it all here, but if there are not several thousand entries, the module is not seeing all of your files (but you knew that).
-
@ninjabreadman solved.
I did something stupid.
I had 70 pictures (5mb each) and it caused trouble, so I resized them to 100kb.
But I also have 2 sd cards …
I put 2000 pictures (100kb) on one card and left the 70 (5mb) pictures on the other card.
And then I changed cards …
Peter -
@Peter At least it’s fixed! Cheers.
-
I like this module, but I would like it to start hidden by default in order to add the possibility of making it visible with voice command (use alexyak / voicecontrol). I have tried several options but I have no results.
-
Take a look at the Hello-Lucy files. You can adapt what you find there to alex yak voice control. :-)
-
I realize this might not be the fault of the module, but many of my images display with the orientation incorrect on this module. I open them on my Mac, and the orientation is correct. I open them in the built-in image viewer on the raspberry pi, and the orientation is correct.
I’ve tried using exiftool to remove the orientation settings entirely with no success. I also tried using exiftool to change the orientation with no success.
My magic mirror is in portrait mode, so I wonder if that matters, but the built-in viewer has no problems.
-
@twosquirrels So, I suspect (but cannot be certain) that this is your problem. I’ve not found great browser support for EXIF image rotation. There are a variety of command line approaches available, and even some GUI apps.
-
@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();