• 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.

MMM-GooglePhotos

Scheduled Pinned Locked Moved Entertainment
294 Posts 56 Posters 291.4k 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.
  • G Offline
    gonzonia @Guest
    last edited by Apr 29, 2020, 5:04 PM

    @Sean I’ve got a theory. I don’t know enough about how it’s all working to be sure, but I’m testing it a little. I noticed in the logs that the error seemed to coincide with something the CalendarExt2 module was doing. Since they’re both connecting to Google, I thought, perhaps there’s something happening there. I’ve disabled the CalendarExt2 module and haven’t had a problem. I’m going to see how it all runs for today and then turn the module back on to see if the problem returns.

    ? 1 Reply Last reply Apr 29, 2020, 5:17 PM Reply Quote 0
    • ? Offline
      A Former User @gonzonia
      last edited by Apr 29, 2020, 5:17 PM

      @gonzonia
      It makes some sense. By racing to use the same connection, there could be some conflicts. Hmmmm…

      G 1 Reply Last reply Apr 30, 2020, 4:16 PM Reply Quote 0
      • G Offline
        gonzonia @Guest
        last edited by Apr 30, 2020, 4:16 PM

        @Sean Sadly, it doesn’t look like that’s it. Everything ran great for 12 hours, than quit again. Restarted this morning and it lasted an hour or two. The problem always appears arround indexing.

        [2020-04-30 08:56:17.785] [LOG]    2020-04-30T08:56:17 <log> [GPHOTOS] Start Album scanning (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_helper.js:44 Class.log)
        [2020-04-30 08:56:17.789] [LOG]    2020-04-30T08:56:17 <log> [GPHOTOS:AUTH] Token is alive. (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:20 Auth.log)
        [2020-04-30 08:56:17.791] [LOG]    2020-04-30T08:56:17 <log> [GPHOTOS:CORE] Indexing photos now. (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:124 GPhotos.log)
        REPEATS....
        [2020-04-30 08:56:55.332] [LOG]    2020-04-30T08:56:55 <log> [GPHOTOS:CORE] Indexing photos now. (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:124 GPhotos.log)
        [2020-04-30 08:57:17.685] [LOG]    2020-04-30T08:57:17 <log> [GPHOTOS:CORE] Error: Client network socket disconnected before secure TLS connection was established (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:124 GPhotos.log)
        [2020-04-30 08:57:18.712] [LOG]    2020-04-30T08:57:18 <log> [GPHOTOS] Image loaded: https://lh3.googleusercontent.com/XXXXXX (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_helper.js:44 Class.log)
        [2020-04-30 08:59:18.130] [LOG]    2020-04-30T08:59:18 <log> [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/XXXXXXXX(/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_helper.js:44 Class.log)
        
        

        I’m determined to figure this out though.

        S 1 Reply Last reply Apr 30, 2020, 4:34 PM Reply Quote 0
        • S Offline
          sdetweil @gonzonia
          last edited by Apr 30, 2020, 4:34 PM

          @gonzonia

          correct, the code then fails, the module sends the helper a message

                case 'IMAGE_LOAD_FAIL':
                  this.log("Image loading fails. Check your network.:", payload)
                  break
          

          and the helper logs it, but never does anything after that
          so, now the module is waiting for another image,

                case 'UPLOAD':
                  this.upload(payload)
                  break
          

          but the helper doesn’t know

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          ? 1 Reply Last reply Apr 30, 2020, 7:49 PM Reply Quote 0
          • ? Offline
            A Former User @sdetweil
            last edited by Apr 30, 2020, 7:49 PM

            @sdetweil
            Nothing can be dine after image loading fails. Even connected again, couldn’t be recognized. It is just kind logging.
            I’m not sure what could be possible to do for this kind of network issue by module itself.

            1 Reply Last reply Reply Quote 0
            • R Offline
              RoggerFabri
              last edited by Apr 30, 2020, 10:39 PM

              Hi @Sean , thanks a lot for your time and effort on creating this module, I was searching for something similar for a long time already. From time to time, I’m getting several Forbidden 403 responses from the requests to load new pictures, this gives the impression that the pictures are stuck. Do you have an idea of what might be causing that?

              ? B 2 Replies Last reply Apr 30, 2020, 11:46 PM Reply Quote 0
              • ? Offline
                A Former User @RoggerFabri
                last edited by Apr 30, 2020, 11:46 PM

                @RoggerFabri
                All those kinds of errors (403, 500, …) means network/server errors. Nothing could do in client(module) itself. Only thing would be just waiting(stuck) problem solved by network/server.

                G 1 Reply Last reply May 1, 2020, 12:37 PM Reply Quote 0
                • B Offline
                  bhepler Module Developer @RoggerFabri
                  last edited by May 1, 2020, 3:16 AM

                  @RoggerFabri - I don’t know if this is relevant, but I know Amazon AWS bulk storage returns 403 errors if you get the URL wrong. I’m not sure if their security model is so granular that files have to be authorized independently or if the wrong URL attempts to serve up the directory index and that file is locked out. And I have no idea if Google uses the same technique.

                  Either way, I would check the request to make sure it is pointing to a valid asset.

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    gonzonia @Guest
                    last edited by May 1, 2020, 12:37 PM

                    @Sean 403 is a “forbidden” status. Is it possible to catch that status being returned and then go back to refreshing the token and starting the process over from there?

                    ? 1 Reply Last reply May 1, 2020, 1:55 PM Reply Quote 0
                    • ? Offline
                      A Former User @gonzonia
                      last edited by A Former User May 1, 2020, 1:55 PM May 1, 2020, 1:55 PM

                      @gonzonia
                      There could be possibility “dead url after it’s lifetime”(60 minutes) but to avoid it, photos working urls would be rescanned and refreshed per 50mins.
                      Of course, if there be network error to prevent resurrection, it will not work. That is not the token issue.

                      G 1 Reply Last reply May 2, 2020, 2:51 AM Reply Quote 0
                      • 1
                      • 2
                      • 23
                      • 24
                      • 25
                      • 26
                      • 27
                      • 28
                      • 29
                      • 30
                      • 25 / 30
                      25 / 30
                      • First post
                        249/294
                        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