• 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 234.6k 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.
  • C Offline
    cowboysdude Module Developer @kykzzang
    last edited by May 7, 2020, 1:18 AM

    @kykzzang said in MMM-GooglePhotos:

    https://lh3.googleusercontent.com/lr/AFBm1_ZoyynSCyzTQfmQ1jO2Ol2jJqYLgBvOMGJ07YcZ

    That’s because if you copy one of those links…those images do not exist.

    G 1 Reply Last reply May 7, 2020, 1:53 PM Reply Quote 0
    • K Offline
      kykzzang @kykzzang
      last edited by May 7, 2020, 1:49 AM

      sometimes, image loading is successful.
      but after index failing, it does not run again.

      [2020-05-07 09:53:21.010] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_ak9_lafawfAhSbhANtZXBdVH
      [2020-05-07 09:55:21.137] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_ahNqW5H91XaNth2sJoX9QE7s
      [2020-05-07 09:57:21.130] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_ZaAjKoODb_OPlUzISo9jy1u4
      [2020-05-07 09:59:21.153] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_bvB6ykWhOyPUcRLEAns7oT3K
      [2020-05-07 10:01:21.139] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_Zs_BgUJgTgurcCBrDgV8SMQP
      [2020-05-07 10:03:21.237] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_YmrDraY6gfuXVS7lDA6-op7K
      [2020-05-07 10:05:21.153] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_YiUySpsiSfYCRte96P2xYIzZ
      [2020-05-07 10:07:20.918] [LOG]    [GPHOTOS] Image loaded: https://lh3.googleusercontent.com/lr/AFBm1_aC6voVTY4cjTOGEGner4cuOGtUC41vpPTElactvgQiPCRufJIt-C
      [2020-05-07 10:09:21.142] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_ZWO0WENWR6IqtlvCWqWAZVSF
      [2020-05-07 10:11:21.023] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_Zk6JM9zPQ72ll8EYULsuoCBM
      [2020-05-07 10:13:21.154] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_b_oSZict47mORzvT6uwd6tCm
      [2020-05-07 10:15:21.147] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_bIkwJb-V0P5Gwy5K3bQ8EANA
      [2020-05-07 10:17:21.158] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_avm5xrDSN-xwthqb5zg9MxC8
      [2020-05-07 10:19:21.160] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_YC1P-nHfYfVb5AEm6qJfpuvp
      [2020-05-07 10:21:21.159] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_buVXMwyR52HwdEOb_Vtz22OL
      [2020-05-07 10:23:21.154] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_aJ7QVByAhmj-5G29sTowiQH6
      [2020-05-07 10:25:21.157] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_Z3Ucrm8Tf08CoidOImN531tQ
      [2020-05-07 10:27:21.206] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_b_CM8oP6af_yfbt_z1avXwYt
      [2020-05-07 10:29:20.983] [LOG]    [GPHOTOS] Image loaded: https://lh3.googleusercontent.com/lr/AFBm1_YXQKGn4L3DOuTxaqK_khpcrSZDvJggiDLMoQEn8YHfkDm4ZmY4Hi
      [2020-05-07 10:31:21.147] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_bipyHtNScWr3gl4cQVoewCyI
      [2020-05-07 10:33:21.158] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_azVty06EiBsdLlD5CggnEQcb
      [2020-05-07 10:35:21.023] [LOG]    [GPHOTOS] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AFBm1_a1uFaqkL2Oloi6jGCObhQKcp
      
      1 Reply Last reply Reply Quote 0
      • G Offline
        gonzonia @cowboysdude
        last edited by May 7, 2020, 1:53 PM

        @cowboysdude The URLs only last for an hour. That’s why it re-indexes and updates after 50 min. The issue @kykzzang and I are having is that sometimes during indexing there’s a network issue and the indexing doesn’t complete. When that happens the URLs don’t get updated and the module tries using the old URLs resulting in the the failed image loading.

        1 Reply Last reply Reply Quote 0
        • C Offline
          cowboysdude Module Developer
          last edited by May 9, 2020, 2:35 PM

          He added logging and in there it should tell you why it’s failing…

          G 1 Reply Last reply May 10, 2020, 4:32 PM Reply Quote 0
          • G Offline
            gonzonia @cowboysdude
            last edited by May 10, 2020, 4:32 PM

            @cowboysdude said in MMM-GooglePhotos:

            He added logging and in there it should tell you why it’s failing…

            Yes. This is the error and I appreciate all @Sean has done. However, whatever is causing the error below isn’t something I can identify/control/fix. There are no network issues anywhere else on my network except this single module. At least once a day I need to manually intervene to get it started again.

             Error: Client network socket disconnected before secure TLS connection was established (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:124 GPhotos.log)
            
            C 1 Reply Last reply May 11, 2020, 1:37 AM Reply Quote 0
            • C Offline
              cowboysdude Module Developer @gonzonia
              last edited by May 11, 2020, 1:37 AM

              @gonzonia said in MMM-GooglePhotos:

              @cowboysdude said in MMM-GooglePhotos:

              He added logging and in there it should tell you why it’s failing…

              Yes. This is the error and I appreciate all @Sean has done. However, whatever is causing the error below isn’t something I can identify/control/fix. There are no network issues anywhere else on my network except this single module. At least once a day I need to manually intervene to get it started again.

               Error: Client network socket disconnected before secure TLS connection was established (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:124 GPhotos.log)
              

              It’s disconnecting before the proper connection can be made… so it sounds like a Google issue.

              1 Reply Last reply Reply Quote 0
              • G Offline
                greenmansuperhero
                last edited by May 11, 2020, 9:28 AM

                Hello,
                I’m a newbie on Magic Mirror, so please, be indulgent :)

                I’ve setup magic mirror as a server only on my NUC (via Docker) and I’ve installed npm module MMM-GooglePhotos on it.
                I can access MM, and see all basic modules, browsing to the server and port configured in docker. So no problems there.

                I’m blocked though, on the installation (authorization part) of MMM-GooglePhotos module.
                I’ve created all credentials on google, however, being a server only installation of magic mirror, I cannot complete the OAUTH token generation as advised in the docs, as via console there is no way to open a “browser” and access google consent screen.

                Is there any other way, maybe using a generic google API in the config, to authorize without going through consent screen?
                Maybe doing the consent somewhere else (accessing an URL?) and then copy (and/or craft) the token somehow?

                Thank you for your time and help!

                P.S.
                Apologies if this is not the best place to post this message, so please advise if that’s the case.

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User @kykzzang
                  last edited by May 12, 2020, 7:40 AM

                  As I’ve said in another post, I couldn’t maintain this module anymore.

                  However, yesterday night, suddenly I got an idea of what happened. (Not tested, and… sorry, I couldn’t test)

                  Most of MM modules and MM itself are using the same port to communicate internally and externally. I suspect some modules(and even inside logics in a module) were racing to use the port. They had opened and closed the port by their own schedule, which could make this symptom. Connection with Google Server often needs some long time probably.

                  The solution might be to use a different port not to race. and make the connections not to happen asynchronously. For the performance, I usually used asynchronous attempting to communicate with Google Server, It might make worse that issue.
                  Well, some modification of source might be needed, but as I’ve said (again), I couldn’t.

                  Anyway, this guess is not confirmed by the test, just an idea.
                  If someone could get an inspiration, I hope this guess could be a help.

                  C G 2 Replies Last reply May 14, 2020, 2:06 AM Reply Quote 0
                  • C Offline
                    cowboysdude Module Developer @Guest
                    last edited by May 14, 2020, 2:06 AM

                    @Sean makes perfect sense!! I guessed that was Google … I could only offer that much help as I don’t have time to really look at it either.

                    Thank you for the response and someone with more time could take a peek at it.

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

                      @Sean thank you. As always I appreciate the efforts you’ve put in. Much of my posting has been throwing out ideas to see what might stick too. I’m not adept enough at js to tackle this myself but may try at some point. I’ve got it logging at almost a line by line level to see if there’s one call that has the problem. I actually got a whole new error today which was weird. I’ll keep posting as I discover anything but please don’t think I’m trying to get you to do something, it’s more for documentation of the problem in hopes that someone can fix it!

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 25
                      • 26
                      • 27
                      • 28
                      • 29
                      • 30
                      • 27 / 30
                      27 / 30
                      • First post
                        262/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