• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

How to disable auto update from MMM-GooglePhotos

Scheduled Pinned Locked Moved Utilities
13 Posts 5 Posters 2.6k Views 5 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.
  • J Offline
    JohnDelta
    last edited by Dec 20, 2019, 3:27 PM

    Hey guys,
    I’m having some difficulties with MMM-GooglePhotos. I created an album where there is always just one file inside (each day/week a new one).

    Now my problem that I have is that every now and then the picture fades out and in (Pic - Black - Pic) which is kinda annoying.

    So now I’m looking for a solution, that the Module only downloads the file once when the MagicMirror ist being started and then doesn’t fade around.

    {
    			module: "MMM-GooglePhotos",
    			position: "middle_center",
    		config: {
    albumId: ["ALBUM_ID"], // your album id(s) from result of `auth_and_test.js`
    				// refreshInterval: 1000*60,  
    				// ! scanInterval: 1000*60*10, // too many scans might cause API quota limit also.
    
    				sort: "time", //'time', 'reverse', 'random'
    				showWidth: "50%", 
    				showHeight: "650px",
    				originalWidthPx: 2339, 
    				originalHeightPx: 1653, 
    				mode: "hybrid", // "cover" or "contain" 
    					}
    

    Thank you guys for your support and some ideas.

    S ? 2 Replies Last reply Dec 20, 2019, 3:34 PM Reply Quote 0
    • S Away
      sdetweil @JohnDelta
      last edited by Dec 20, 2019, 3:34 PM

      @JohnDelta said in How to disable auto update from MMM-GooglePhotos:

      MMM-GooglePhotos

      sorry, let me feed that back…

      u want to force download all the files (at module startup) and then load them from the local disk?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      E 1 Reply Last reply Dec 20, 2019, 4:27 PM Reply Quote 0
      • E Offline
        ember1205 @sdetweil
        last edited by Dec 20, 2019, 4:27 PM

        @sdetweil

        I got the sense that there is only one file and that it gets updated once per week. So, there is no need to cycle through a batch of photos because there is only one. I don’t see a way of changing the behavior without modifying the underlying code because it’s built to cycle through a collection of photos, not just display a single one.

        S 1 Reply Last reply Dec 20, 2019, 5:10 PM Reply Quote 0
        • S Away
          sdetweil @ember1205
          last edited by Dec 20, 2019, 5:10 PM

          @ember1205 i was being general… 1 file or more, its the same problem.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          E 1 Reply Last reply Dec 20, 2019, 5:17 PM Reply Quote 0
          • E Offline
            ember1205 @sdetweil
            last edited by Dec 20, 2019, 5:17 PM

            @sdetweil said in How to disable auto update from MMM-GooglePhotos:

            @ember1205 i was being general… 1 file or more, its the same problem.

            Yes, true.

            To me, the solution here seems to be a combination of a cron tool to download an image when it gets updated, a trigger to either restart MM or send a notification to the module to re-read the image, and the ability to simplistically display that singular image as the background for MM.

            S 1 Reply Last reply Dec 20, 2019, 5:21 PM Reply Quote 0
            • S Away
              sdetweil @ember1205
              last edited by Dec 20, 2019, 5:21 PM

              @ember1205 if you used a cron job, then you could use a different module to display the images

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              E 1 Reply Last reply Dec 20, 2019, 5:23 PM Reply Quote 0
              • E Offline
                ember1205 @sdetweil
                last edited by Dec 20, 2019, 5:23 PM

                @sdetweil Agreed. And, if it were me, I would do it that way.

                Cron job to check for updates and determine if the file gets updated
                If the file was updated, either send notification to load new image in the module, or just restart MM
                Use something along the lines of MMM-EasyBack as a module to load the background image

                S 1 Reply Last reply Dec 20, 2019, 5:25 PM Reply Quote 0
                • S Away
                  sdetweil @ember1205
                  last edited by Dec 20, 2019, 5:25 PM

                  @ember1205 or MMM-ImagesPhotos (which updates its list)

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User @JohnDelta
                    last edited by A Former User Dec 20, 2019, 10:20 PM Dec 20, 2019, 10:18 PM

                    @JohnDelta
                    Well, if only one photo be used, why do u use cloud?

                    Anyway, in that case, you can give very enough time for scanning and refreshing, maybe 24 hour(1000 * 60 * 60 * 24).

                    But the only problem is, public opened url of photo which is served by google photos, has not permanent or long-lived lifetime. url would be invalid usually after 1-2hours from its serving

                    I made this module for whom has hundreds, thousands photos and is managing them with cloud service, so has trouble with storing whole pictures locally (That’s why it is handling only one picture at once)

                    Just this module is not for your purpose. Try different approach.

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      JohnDelta
                      last edited by Dec 23, 2019, 5:38 PM

                      Thank you guys for all the responses.
                      So the reason I was thinking on doing it by cloud was that I can manage the files remotely on an easy user interface and also i could just share the folder with the Person in charge of updating it.

                      @Sean you wrote “But the only problem is, public opened url of photo which is served by google photos, has not permanent or long-lived lifetime. url would be invalid usually after 1-2hours from its serving”

                      But does the URL of the Pictures matter? I mean since its working via the Album_Id. Or what does the Album Id stand for?

                      @sdetweil can you help me out what a cron tool is? Haven’t heard about it yet.

                      Merry Christmas everybody ;)

                      E S 2 Replies Last reply Dec 23, 2019, 6:01 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        4/13
                        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