Read the statement by Michael Teeuw here.
Images & Videos
-
I want to display images and videos in the center of the screen.
Also I want them to appear with effects … is it possible ? -
See my module for displaying images, videos does not work with this module. https://forum.magicmirror.builders/topic/1178/random-background-from-local-folder
It only has a simple transition animation for now.
-
Thanks - I will test it and keep up posted …
-
Some feedback …
Install gave this warnings:pi@mirror:~/MagicMirror/modules $ npm install
npm WARN enoent ENOENT: no such file or directory, open ‘/home/pi/MagicMirror/modules/package.json’
npm WARN enoent ENOENT: no such file or directory, open ‘/home/pi/MagicMirror/modules/node_modules/node_helper/package.json’
npm WARN modules No description
npm WARN modules No repository field.
npm WARN modules No README data
npm WARN modules No license field.Here is my config.js with your module :
module : ‘MMM-RandomBackground’,
position : ‘fullscreen_below’, // Any region but this one makes the most sense
config: {
animationSpeed: 2000,
updateInterval: 5000,
photoDirectories: ‘/nfs/MIRROR’
}As you can see the photos are in a NFS share on my server.
What I got is a totally black screen …
Where have I missed ? -
You are installing from the wrong directory, the installer is looking for package.json in your modules folder. You should be in home/pi/MagicMirror/modules/MMM-RandomBackground/
I just noticed my readme is wrong, after git clone you have to execute cd MMM-RandomBackground.
-
OK - now I got this …
$ npm install
magic-mirror-module-random-background@0.0.1 postinstall /home/pi/MagicMirror/modules/MMM-RandomBackground
./scripts/post-install.shPost install [in the future this creates a share to
photos
]
magic-mirror-module-random-background@0.0.1 /home/pi/MagicMirror/modules/MMM-RandomBackground
├── jquery@2.2.4
└─┬ recursive-readdir@2.1.0
└─┬ minimatch@3.0.2
└─┬ brace-expansion@1.1.6
├── balanced-match@0.4.2
└── concat-map@0.0.1npm WARN magic-mirror-module-random-background@0.0.1 No repository field.
But still I don’t get any picture from /nfs/MIRROR … hmmm
-
That looks good. Are you sure that the share is accesable? Try ls -al /nfs/MIRROR on the commandline of your mirror. Does it show any folders and/or photos?
-
Sure it is accessible - I just set up the nfs share myself.
All the images are listed when I give ls -la /nfs/MIRROR command …$ ls -l /nfs/MIRROR/
total 748
-rw-rw-r-- 1 pi pi 157448 nov 16 13:18 IMG-20161116-WA0004.jpg
-rw-rw-r-- 1 pi pi 90988 nov 18 14:07 IMG-20161118-WA0004.jpg
-rw-rw-r-- 1 pi pi 188982 nov 25 13:30 IMG-20161125-WA0002.jpg
-rw-rw-r-- 1 pi pi 197352 dec 8 23:55 IMG-20161127-WA0023.jpg
-rw-rw-r-- 1 pi pi 117901 dec 14 12:01 IMG.jpg -
My bad, I just realized that the photoDirectories config is not yet implemented. It only reads photo’s from the photos directory in the module itself. You could make a soft link from your share to /home/pi/MagicMirror/modules/MMM-RandomBackground/photos.
-
OK - it worked … but it is a temporary solution
When are you going to implement photoDirectories config …