MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-GoogleDriveSlideShow

    Scheduled Pinned Locked Moved Entertainment
    37 Posts 10 Posters 14.1k Views 11 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      clegallic
      last edited by

      Hi,

      I can’t see any clue in your logs that can explain the issue.
      My Node version is slightly more recent than yours (v10.17.0 when yours is v6.14.2), it may be a reason.

      Can you try to run the npm run token:generatecommand through SSH ?
      Do you have the same error ?

      Regards,

      Charles

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        Jupter1 @clegallic
        last edited by

        @clegallic
        Thank you for your support. I will try to update node and see if that fixes the problem and/or if running it via ssh changes anything when I am home again next week.

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jupter1
          last edited by

          @clegallic
          So I have tried to update node (v12.x) and voilà, now it works like a charm! Thank you for your support and this awsome module!

          1 Reply Last reply Reply Quote 0
          • C Offline
            clegallic
            last edited by

            I’m glad to hear that your problem is now resolved. Have fun with the module.

            Regards,

            Charles

            1 Reply Last reply Reply Quote 0
            • C Offline
              chen31
              last edited by

              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?

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @chen31
                last edited by

                @chen31 does the module readme give u any info on re/sizing image display?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                C 1 Reply Last reply Reply Quote 0
                • C Offline
                  chen31 @sdetweil
                  last edited by

                  @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.

                  C 1 Reply Last reply Reply Quote 0
                  • E Offline
                    emrah_asl
                    last edited by

                    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.

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      emrah_asl
                      last edited by

                      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;
                      	}
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @emrah_asl
                        last edited by

                        @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 author

                        then U have your saved copy on fork, and have contributed to improved module

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        E 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 2 / 4
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy