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.

    Google Photos API changing - MMM-GooglePhotos will stop working soon.

    Scheduled Pinned Locked Moved Entertainment
    22 Posts 4 Posters 6.5k Views 4 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 @gonzonia
      last edited by

      @gonzonia one could launch a web app maybe via phone to access the picker?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      G 1 Reply Last reply Reply Quote 0
      • G Offline
        gonzonia @sdetweil
        last edited by

        @sdetweil Maybe. I don’t know how the picker stores the relationship to the app and the permissions. If it’s in the browser in some way, launching from a phone might not work. It might need to be from the browser on the MM.

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

          @gonzonia it wont be in the browser, they will want to control it at the access level

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @gonzonia

            IMG_0791.png

            gp app is the ONLY way to pick images
            the selected pics access times out after an hour!!!

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            G 1 Reply Last reply Reply Quote 0
            • G Offline
              gonzonia @sdetweil
              last edited by

              @sdetweil so the user wouldn’t have to Re-select after an hour? That can’t be right.

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

                @gonzonia so it seems.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                G 1 Reply Last reply Reply Quote 0
                • G Offline
                  gonzonia @sdetweil
                  last edited by

                  @sdetweil The way they want it to work is that the user makes the selection, the app gets the items, the session ends. In this case, that would mean the module would have to pull the photos locally which would limit the number of photos available by the amount of space available. I might as well just use a different module and put all my photos somewhere on my network.

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

                    @gonzonia yes, i use local already. have a 12tb nas drive for photos

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    G A 2 Replies Last reply Reply Quote 1
                    • G Offline
                      gonzonia @sdetweil
                      last edited by

                      @sdetweil yeah Google was one of my backups. We are primarily an Apple family but there’s no iCloud module that I’m aware of. I’ll have to do an export or figure something else out.

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        Andresleonsalas @sdetweil
                        last edited by

                        @sdetweil what module are you using for local photos?

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

                          @Andresleonsalas I use an updated version of MMM-ImagesPhotos

                          see my fork https://github.com/sdetweil/MMM-ImagesPhotos

                          supports recursive image folder…

                          I am picky about displaying my photos…
                          I don’t want cover or contain, I want consistent aspect ratio…
                          fit vertical or horizontal and adjust the other to the physical size…

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          G S 2 Replies Last reply Reply Quote 1
                          • G Offline
                            gonzonia @sdetweil
                            last edited by

                            @sdetweil Thanks. I got that up and running. One thing I wish it had (and I don’t think any module does). I’d like to show some of the EXIF data.
                            At a minimum, the date the photo was taken, but ideally, also lookup the location and display that in a friendly manner (i.e. City, State, Country)

                            I thought, “that shouldn’t be too hard” but I don’t understand modules and the relationship of node helper to the main js. I’m not sure how to load the appropriate library to access the exif data.

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

                              @gonzonia modulename.js runs in a browser
                              but a browser cannot access files, except thru a web server,
                              also cant access hardware (gpio)

                              so the node_helper runs on server as task, so it can

                              there is an api to send request to helper and get response back,
                              this module uses another trick, by accessing a web link to a file

                              anyhow , here is a drawing i did years ago to explain this, its truncated on the side on purpose, as its just repetitive

                              module-parts.jpeg

                              my sample module shows all that operation
                              https://github.com/sdetweil/SampleModule

                              anyhow, one could extend the response to include the exif data

                              here is a nodejs lib that does exif
                              https://www.npmjs.com/package/exif

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              G 1 Reply Last reply Reply Quote 0
                              • G Offline
                                gonzonia @sdetweil
                                last edited by

                                @sdetweil Thanks. That’s helpful. But I think it’s still above my pay-grade. I may poke around and see if I can figure something out, but I’m not sure I can. I conceptually understand what’s happening, but don’t see it in the code in a way that is clicking for me such that I can just make a call to an Exif method where it pulls the data from the file.

                                I’ve come across a couple of other modules who are doing some of it, but again, I’m not quite sure I understand how the data is being passed around so that I can correctly apply the logic in the right place.

                                G 1 Reply Last reply Reply Quote 0
                                • G Offline
                                  gonzonia @gonzonia
                                  last edited by

                                  @sdetweil MMM-BackgroundSlideshow seems to do exactly what I want, but I think your handling of formatting the images is better.

                                  1 Reply Last reply Reply Quote 0
                                  • S sdetweil referenced this topic on
                                  • S sdetweil referenced this topic on
                                  • S Offline
                                    Sampleswow @sdetweil
                                    last edited by

                                    @sdetweil Sorry about the late reply i am just now finding out about the google-photos issue, i like your remedy but as i was looking at your fork i couldn’t figure out how to point the check file to my NAS i can defiantly cre4ate a specific folder on my NAS but I’m not sure where i would input that information to your fork??

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

                                      @Sampleswow so you have to mount the Nas file servr share to
                                      your Linux machine

                                      Once you do that
                                      This module uses a specific folder, uploads, to find pics

                                      Then you rensmentyevexisting uploads out of the way and use the ln command to make a link uploads to the mounted Nas folder

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0

                                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                      With your input, this post could be even better 💗

                                      Register Login
                                      • 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