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 296.1k 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.
    • M Offline
      mcneilp @mcneilp
      last edited by

      @mcneilp If i let it run long enough it loads an image…but sometimes it goes blank for a while. I assume this is because its processing photos. Too bad it can’t just load a few at a time and run fast.

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

        @mcneilp
        Show me your config. And Google Photos has its API request limit for usage.

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

          Sean,
          It seems you make my favorite modules. I’m trying to get the GooglePhotos to work and it does if I leave it long enough. On startup though nothing shows (makes it real hard to configure the appearance). I’m seeing this in the log. Is the album I chose too big? I’m using the config you posted for fullscreen (except I changed to mode: hybrid).

          Error: { Error: Client network socket disconnected before secure TLS connection was established
          at TLSSocket.onConnectEnd (_tls_wrap.js:1092:19)
          at Object.onceWrapper (events.js:273:13)
          at TLSSocket.emit (events.js:187:15)
          at endReadableNT (_stream_readable.js:1090:12)
          at process._tickCallback (internal/process/next_tick.js:63:19)
          code: ‘ECONNRESET’,
          path: null,
          host: ‘photoslibrary.googleapis.com’,
          port: 443,
          localAddress: undefined }

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

            @gonzonia
            well, the error log is saying just network problem. However I’m not in front of machine at this moment, but i’ll check this tomorrow

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

              Thanks. Seems to be working now. Like I said, it starts out that way and then eventually loads fine. The album has about 900 photos I’m showing randomly. Trying to decide if I want them fullscreen or not…

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

                @Sean It’s weird. I had it working. I went to adjust the settings (sizing didn’t look good) and then it stopped. Getting the network error consistently.

                This is my latest config. I’ve tried various configurations of showWidth/showHeight and originalWidthPx/originalHeightPx

                {
                  module: "MMM-GooglePhotos",
                  position: "top_left",
                  config: {
                    albumId: ["XXX"], // your album id(s) from result of 
                   refreshInterval: 1000*60,  
                    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: "800", // how large the photo will be shown as. (e.g;'100%' for fullscreen)
                    showHeight: "600",
                    originalWidthPx: 1920, // original size of loaded image. (related with image quality)
                    originalHeightPx: 1080, // 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.
                  }
                
                ? 1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User @gonzonia
                  last edited by

                  @gonzonia
                  There is nothing related to your network issue on this module. (At least, I think so)
                  I carefully guess these things;

                  1. WLAN sleeping feature might be activated in your RPI.
                  2. Your other module or other background process would make this.
                  G 2 Replies Last reply Reply Quote 0
                  • G Offline
                    gonzonia @Guest
                    last edited by

                    @Sean
                    This module is the only one not working. though and you can see in the error I posted earlier it directly references the “photoslibrary.googleapis.com” which is why I suspected this module.

                    Currently I’m not running over wifi so it’s not that it’s sleeping.

                    I’ll keep trying things and see if I can find something with some consistency. Thanks for checking.

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

                      @Sean I’m starting to think the network error is irrelevant.
                      I am seeing the error sometimes not related to googleapis.com. In those cases the CalendarExt2 data isn’t fully loaded, I refresh and all seems good.

                      The config below seems to work.

                      {
                        module: "MMM-GooglePhotos",
                        position: "fullscreen_below",
                        config: {
                          albumId: ["AD8YTEgKjrQhxAA_30358v4J7I7CXoa1_QIgcebrp1qLcFUvsIU5Hql3wPIvUDesZ72DYwbEhxSz"], // 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.
                          //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: "100%", // how large the photo will be shown as. (e.g;'100%' for fullscreen)
                          showHeight: "100%",
                          originalWidthPx: 1920, // original size of loaded image. (related with image quality)
                          originalHeightPx: 1080, // 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.
                        }
                        	},
                      

                      Change to

                       position: "top_left",
                      showWidth: "800",
                      showHeight: "600",
                      originalWidthPx: 800,
                      originalHeightPx: 600,
                      

                      and it doesn’t

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

                        @gonzonia
                        Hmmmm…
                        0_1571069033879_95150df3-a2c4-4e9d-a846-9155ce6167f5-image.png
                        With your config (but change albumId - I cannot use your albumId), I can display.

                        Here is mine.

                        {
                          module: "MMM-GooglePhotos",
                          position: "top_left",
                          config: {
                            refreshInterval: 1000*60,
                            scanInterval: 1000*60*10, 
                            sort: "random", 
                            showWidth: "800px", 
                            showHeight: "600px",
                            originalWidthPx: 800, 
                            originalHeightPx: 600,
                            mode: "hybrid", 
                            albumId: ["AJQR3DjzfO6BkH5eSY1e6Dm3m49QVOmpmXgPy6BOecEwg-f_82H_UJ1v-dvzVIjuezDmb_snettC"],
                          }
                        },
                        
                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 29
                        • 30
                        • 1 / 30
                        • 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