Read the statement by Michael Teeuw here.
MMM-ImagesPhotos - Show images from a directory
-
Hello,
I search to display my webcam on my mirror.
I think to use a script to upload jpg from webcam (http://192.168.0.160/tmpfs/auto.jpg) on the right directory.
But just the 1st image is displayed, for testing i do :
wget http://192.168.0.160/tmpfs/auto.jpg (see image on mirror)
rm *.jpg
wget http://192.168.0.160/tmpfs/auto.jpg (see the same image on mirror)I playing with updateInterval and getInterval, no success.
Like there are a cache in app.
Thanks in advance, and thanks for your work
Olivier
-
@balthaz Yes is the cache of Electron app, because the name is same for image url.
I create a little hack for this but I think this can be overhead the cache of app. Can you try and tell me?
https://github.com/roramirez/MMM-ImagesPhotos/tree/test-force-cache (branch)
https://github.com/roramirez/MMM-ImagesPhotos/commit/b8ead890b701ed6264a417c9c4f4a92b135f8816 (patch)Other way is create a new name and delete previous file in your script
wget -O $(date +%s).jpg http://192.168.0.160/tmpfs/auto.jpg
-
Very nice!!!
-
super cool! :)
-
hello,
I test force cache, it’s no working, my test:
apply new git
wget jpg display jpg
rm jpg
wget jpg display same jpgi test with rotate wget
thanks
-
@roramirez said in MMM-ImagesPhotos - Show images from a directory:
wget -O $(date +%s).jpg http://192.168.0.160/tmpfs/auto.jpg
with wget -O $(date +%s).jpg http://192.168.0.160/tmpfs/auto.jpg i have a random picture
-
@balthaz For your need I think is better using
https://github.com/TheBogueRat/MMM-iFrameReload -
@roramirez Thanks, exactly what a need !
-
From reading the readme, i couldn´t figure out where to place the directory MMM-ImagesPhotos searches for the pictures.
-
@Mire Hello,
I added a little more explain.
The directory where is searching the images is
MagicMirror/modules/MMM-ImagesPhotos/uploadsThe directory called uploads inside the module