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.9k 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.
    • S Offline
      sdetweil @ember1205
      last edited by

      @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 Reply Quote 0
      • E Offline
        ember1205 @sdetweil
        last edited by

        @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 Reply Quote 0
        • S Offline
          sdetweil @ember1205
          last edited by

          @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

            @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

              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 Reply Quote 0
              • E Offline
                ember1205 @JohnDelta
                last edited by

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

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

                Cron is a scheduling tool that’s available in various linux, BSD, Mac, Unix, etc. operating systems. It allows you to schedule “jobs” (scripts, typically) to run on certain days, at certain times, with certain privileges to get things done.

                On my mirror, I have a script that I’ve written to rsync images from a server on my network over to the Pi. Cron allows me to schedule the execution of that script at times that I want it to run (every 30 minutes, in this case) and copy over changes from the server. You could do something similar with a tool that could connect to a Google photo album, Google Drive, or wherever and copy the most current image to a local directory. After that, whatever module you’re using to display that image would be able to update what’s on the screen either by itself, or you could integrate a “notification” within your script to tell the module to reload the image once the copy is done.

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

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

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

                  cron is a builtin service that will; run jobs at scheduled times , once every n minutes, days, weekday, etc…

                  https://www.taniarascia.com/setting-up-a-basic-cron-job-in-linux/

                  so u write q script that does what you want, and then schedule it to run so often and update the ‘crontab’ (the table of cron jobs)

                  note that YOU have to tell it what user top run the job under

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    Standingwater
                    last edited by

                    add this to your custom.css

                    @keyframes trans {
                    from {opacity: 1}
                    to {opacity: 1}
                    }

                    It will still update, but you won’t see the fades.

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