Read the statement by Michael Teeuw here.
Images & Videos
-
I tested MMM-RandomBackground with 40 images and discovered that very often the same image was chosen two times in row.
Don’t know how you choose the images order randomly but is there a way to eliminate the random algorithm and just display the images in the file name order they are in the folder … -
Yeah the random generator isn’t that random with that few of images. Displaying them in order isn’t that difficult. I will add an option for this. Thank you for your feedback, I am working on the css atm.
I have added an option for displaying random photo’s or in order. Go to ~/MagicMirror/modules/MMM-RandomBackground and do git pull. Then add this to your config, randomOrder: false, Set it to true for random order.
-
Thanks for your reply - I update the software with ‘git pull’
pi@mirror:~/MagicMirror/modules/MMM-RandomBackground $ git pull
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 5 (delta 4), reused 5 (delta 4), pack-reused 0
Unpacking objects: 100% (5/5), done.
From https://github.com/Ultimatum22/MMM-RandomBackground
868fc6c…03e3727 master -> origin/master
Updating 868fc6c…03e3727
Fast-forward
.gitignore | 0
LICENSE | 0
MMM-RandomBackground.js | 33 ++++++++++++++++++++++++±-------
node_helper.js | 21 ++++++++++++++++++±-
package.json | 3 +±
5 files changed, 46 insertions(+), 11 deletions(-)
mode change 100644 => 100755 .gitignore
mode change 100644 => 100755 LICENSEMy ‘config.js’ looks like this:
{
module: ‘MMM-RandomBackground’,
position: ‘fullscreen_below’,
config: {
randomOrder: false,
animationSpeed: 100,
updateInterval: 5000
}But I get only a white screen … have you change the ‘photoDirectories’ also ?
I still have the link ‘/home/pi/MagicMirror/modules/MMM-RandomBackground/photos’ -
Did you run npm install? Don’t think the packages have changed but just to be sure. Also the config you pasted is wrong, it’s missing a } at the end, is that just a copy paste error from your side?
How do you run MagicMirror, could you try display=:0 npm start dev from the terminal and see for console logs. My mirror works without errors with your config (when I add a } at the end).
Or go to :8080 in your browser, press F12 to open dev tools and check for errors.
-
Sorry - my mistake … I forgot to run ‘npm install’
Now it works like a Swiss clock …
Thanks again -
Good to hear. I did forgot I added some functionality that needed new packages.