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-GooglePhotos

    Scheduled Pinned Locked Moved Entertainment
    294 Posts 56 Posters 341.2k Views 59 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.
    • ? Offline
      A Former User @teitlebot
      last edited by A Former User

      @teitlebot
      impossible only with width/height. Imagine some pictures in your mind and rotate it. :D
      Or…

      0_1552665928446_DSCN0873.jpg
      Which direction should this photo be rotated? clockwise? counterclockwise? How can we know the direction with only width/height?

      T 1 Reply Last reply Reply Quote 0
      • T Offline
        teitlebot @Guest
        last edited by

        @Sean Interesting but Google Photos already rotates the picture correctly for us before it sends it to the mirror. So assuming it shows correct in the google photos album it will be correct in the mirror. Now take any picture that is width/height >1 and rotate the picture one way and rotate the screen in the opposite direction and it should work.

        ? 1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @teitlebot
          last edited by

          @teitlebot
          If so, you can do that without notification. Just add eventlistener to target photo container element and check whether src be changed. Then you can activate xmlHTTPrequest to send request to your IFTTT server.

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            teitlebot @Guest
            last edited by

            @Sean Thank You. Will learn up on this and see if I can do it myself

            1 Reply Last reply Reply Quote 0
            • M Offline
              mirrorman2
              last edited by

              Brilliant module - thanks for the development.

              I am trying to get two instances of this module running on one magic mirror, so I can show one photo at the top and one at the bottom.

              I have copied the module into a different folder, renaming it (and in the CSS files as necessary). I also set up a separate google API project and separate authorisation to see if that was an issue.

              Both modules run, but the photos get loaded one on top of the other despite having different positions:

              modules: [
              
              {
                module: "MMM-GooglePhotos",
                position: "top_center",
                config: {
                  albumId: "blanked for posting", // your album id(s) from result of `auth_and_test.js`
                  refreshInterval: 1000*20,  
                  scanInterval: 1000*60*10, // too many scans might cause API quota limit also.
                  //note(2018-07-29). It is some weird. API documents said temporal image url would live for 1 hour, but it might be broken shorter. So, per 10 min scanning could prevent dead url.
              
                  sort: "random", //'time', 'reverse', 'random'
                  showWidth: "800px", // how large the photo will be shown as. (e.g;'100%' for fullscreen)
                  showHeight: "400px",
                  originalWidthPx: 1024, // original size of loaded image. (related with image quality)
                  originalHeightPx: 728, // Bigger size gives you better quality, but can give you network burden.
                  mode: "hybrid", // "cover" or "contain" (https://www.w3schools.com/cssref/css3_pr_background-size.asp)
                  //ADDED. "hybrid" : if you set as "hybrid" it will change "cover" and "contain" automatically by aspect ratio.
                }
              },
              
              
              
              {
                module: "MMM-GooglePhotos2",
                position: "bottom_left",
                config: {
                  albumId: "blanked for posting", // your album id(s) from result of `auth_and_test.js`
                  refreshInterval: 1000*15,  
                  scanInterval: 1000*60*10, // too many scans might cause API quota limit also.
                  //note(2018-07-29). It is some weird. API documents said temporal image url would live for 1 hour, but it might be broken shorter. So, per 10 min scanning could prevent dead url.
              
                  sort: "random", //'time', 'reverse', 'random'
                  showWidth: "1024px", // how large the photo will be shown as. (e.g;'100%' for fullscreen)
                  showHeight: "728px",
                  originalWidthPx: 1024, // original size of loaded image. (related with image quality)
                  originalHeightPx: 728, // Bigger size gives you better quality, but can give you network burden.
                  mode: "hybrid", // "cover" or "contain" (https://www.w3schools.com/cssref/css3_pr_background-size.asp)
                  //ADDED. "hybrid" : if you set as "hybrid" it will change "cover" and "contain" automatically by aspect ratio.
                }
              },
              
              
              ]
              
              };
              
              

              Any ideas where I have gone wrong? Thanks!

              ? 1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User @mirrorman2
                last edited by A Former User

                @mirrorman2
                Each instance would be rendering different doms but they have same “Id”. That would make this behavior. Sorry, I haven’t considered duplicated instances on development.
                If you want duplicated instances, modify source where “id” is used.
                By example;
                wrapper.id = “GPHOTO”

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

                  This post is deleted!
                  ? 1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User @stephaniesal
                    last edited by

                    @stephaniesal
                    Is there any error or suspicious log message on execution? Without log, I cannot guess what happened.

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

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        gekberlin
                        last edited by

                        Hi there,
                        is it possible just to show the last three images of the given album ? And moreover is there any chance to display the comments which belongs to the photo ?

                        ? 1 Reply Last reply Reply Quote 0
                        • ? Offline
                          A Former User @gekberlin
                          last edited by

                          @gekberlin

                          1. Cannot limit the number currently. And I thought, If you want just a few pictures, you’d better to store your photos locally and to display them with other local-based module.
                            The better way I think is, to create new album for selected photos and use it.
                          2. There is no API to get comment. Sorry.
                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            redink
                            last edited by

                            Thank you for making this great module and a very a good set of instuctions. I am struggling with the last step.

                            I run the node auth_and_test.jsand it opens the browser windows asking me to login. I proceed to do that, go through my 2FA and then land on a page which is asking me to select a google account form a list of 1 (just my account). Clicking my account just redirects me back to the same exact page. Have you seen this issue before? Any idea on how to fix this?

                            ? 1 Reply Last reply Reply Quote 0
                            • ? Offline
                              A Former User @redink
                              last edited by

                              @redink Somebody has same issue. Copy the URL and use another browser. (Or another device - like your dev pc). I think it could be some kind of cookie issue.

                              R 1 Reply Last reply Reply Quote 0
                              • R Offline
                                redink @Guest
                                last edited by

                                Thanks for the quick reply. I assumed this had to happen from the exact same machine that MagicMirror was running out, because it would set a local cookie or something. But, I’ll try opening the URL from a different machine and report back tonight.

                                1 Reply Last reply Reply Quote 0
                                • R Offline
                                  redink
                                  last edited by

                                  It worked! Thanks!
                                  Is there a config to fade the picture, or do an 50% transparent black overlay? I am sure I can do this with some custom CSS, but was wondering of the module supports it.

                                  ? 1 Reply Last reply Reply Quote 0
                                  • ? Offline
                                    A Former User @redink
                                    last edited by

                                    @redink adjust css. i prefer to control looks by css.

                                    1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      redink
                                      last edited by

                                      Thanks!

                                      For anyone who wants to do the same, just add the following to your custom.css file

                                      #GPHOTO{
                                           /*1 is fully opaque, 0 is fully transparent*/
                                          opacity: 0.3 !important;
                                      }
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • WasupDudeW Offline
                                        WasupDude Banned
                                        last edited by

                                        wow, that’s really interesting ;)

                                        1 Reply Last reply Reply Quote 0
                                        • K Offline
                                          King321
                                          last edited by

                                          Is there a way to have videos play as well?

                                          1 Reply Last reply Reply Quote 0
                                          • O Offline
                                            orayoflighto Project Sponsor
                                            last edited by

                                            First, thanks for a great module. Its greatly appreciated.

                                            Is there a way to prevent API requests during certain time periods? I have 14000 photos in an album that is only going to grow with time which is going to kill my API requests but I don’t need requests to take place at 2AM for instance.

                                            S 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
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 11 / 15
                                            • 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