Read the statement by Michael Teeuw here.
MMM-GoogleDriveSlideShow
-
Hello,
First of all thank you, great module.
I have a question regard the picture size, there is a way to automatic resize the picture to the max WxH that I config in the module setup? -
@chen31 does the module readme give u any info on re/sizing image display?
-
@sdetweil
No.
I have been over this a few times, except the max W and H, nothing.The max W/H cut the photo in my case.
-
Hi, after deleted my photo from google drive , it still show even I change
refreshDriveDelayInSeconds: 5000,
refreshSlideShowIntervalInSeconds: 15,How can I clear cache ? any idea
thank you for your helping.
-
I changed code like below to fix my problem @sdetweil in node_helper.js
getPhotos: async function() { // Check if need reload // Get cache if not already loaded and cache file exists (after a restart for example) if(!this.cache.created && this.cacheFileExists()){ let needReload = !this.cache || (new Date().getTime() - this.cache.created) / 1000 > this.config.refreshDriveDelayInSeconds; // (re)create the cache if missing or expired if(needReload){ this.log("No cache file, or expired, (re)creating it..."); await this.createCache(); this.cache.photos = await this.cache.photos.filter(photo=> !this.alreadySentPhotoIds.includes(photo.id)); } else this.log("No memory cache, loading it from disk"); await this.loadCache(); } else this.createCache(); return this.cache.photos; }
-
@emrah_asl you should submit that back to the author
github fork the repo (top right button)
download the fork
change the forked code,
git add/git commit/ git push
then github create pull request to authorthen U have your saved copy on fork, and have contributed to improved module
-
@sdetweil Sure. I will this tomorrow, I’m just testing the changes.
this time, client always sending request to google drive.
I am not sure that my tricks are correct way.
-
Hi @chen31
The module is designed to adapt the display size of the image based on your maxWidth and maxHeight configuration (see there)
If it does not works, perhaps the display is cut by another module above on your MagicMirror ?
If not, can you share a screenshot to let me understand the problem.
Regards,
Charles
-
@emrah_asl
Hi,@sdetweil is right, feel free to create a pull request.
If you want to force cache reloading, you can also delete the .cache file in the module folder.
The default cache lifetime is 24 hours (refreshDriveDelayInSeconds configuration parameter).
Regards,
Charles
-
@clegallic said in MMM-GoogleDriveSlideShow:
Hi @chen31
The module is designed to adapt the display size of the image based on your maxWidth and maxHeight configuration (see there)
If it does not works, perhaps the display is cut by another module above on your MagicMirror ?
If not, can you share a screenshot to let me understand the problem.
Regards,
Charles
Hi Charles,
I went through this one more time and these are pictures that are portait.
I saw that it’s in your TO DO list.Thank you.