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 13.3k 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
      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
            • E Offline
              emrah_asl @sdetweil
              last edited by

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

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

                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

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

                  @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

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

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

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

                      @clegallic I think there is an issue here,

                      I deleted one image 2 days ago, from google drive also I deleted content from cache file.

                      But I see, it 'is still showing.

                      When I add new ımage, it automatically detecting in 10 seconds to show this, but when I delete this it is not working same style.

                      Can we optimize it at least one hour to refresh caches ?

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        amanzimdwini @clegallic
                        last edited by

                        @clegallic - I am on a Rasp3A, but fully patched (npm 6.14.8, node 10.23.0, nodejs 10.23.0).
                        As su, I fail npm run token:generate - with a

                        Type Error: cannot read property '0' of undefined...
                        

                        (there is more). Upon inspection MY credentials.json file starts like

                        {"web":{"client_id
                        

                        while your example begins

                        {"installed":{"client_id
                        

                        (the rest looks similar to your example) Any idea what I did wrong? If I just replace my “web” with “installed”, I still fail.
                        Thanks,
                        K

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 3 / 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