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 suddenly stopped working this morning

    Scheduled Pinned Locked Moved Solved Troubleshooting
    16 Posts 3 Posters 233 Views 3 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.
    • J Offline
      Jabl0
      last edited by

      Hello community,

      My MMM-GooglePhotos module stopped working this morning and i am getting the error below:

      /home/pi/.pm2/logs/mm-error.log last 15 lines:
      0|mm | [2025-05-06 16:56:33.064] [ERROR] (node:9180) UnhandledPromiseRejectionWarning: AxiosError: Request failed with status code 403
      0|mm | at settle (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/dist/node/axios.cjs:2031:12)
      0|mm | at Unzip.handleStreamEnd (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/dist/node/axios.cjs:3148:11)
      0|mm | at Unzip.emit (node:events:530:35)
      0|mm | at endReadableNT (node:internal/streams/readable:1698:12)
      0|mm | at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
      0|mm | at Axios.request (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/dist/node/axios.cjs:4258:41)
      0|mm | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
      0|mm | at async GPhotos.request (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:165:19)
      0|mm | at async getAlbum (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:208:24)
      0|mm | at async GPhotos.getAlbums (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:180:18)
      0|mm | at async Class.getAlbums (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_helper.js:263:15)
      0|mm | at async Class.getAlbumList (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_helper.js:313:18)
      0|mm | at async Class.scanJob (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_helper.js:294:5)
      0|mm | [2025-05-06 16:56:33.066] [ERROR] (node:9180) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

      My token has not expired but i cannot seem to find the source of the issue.

      Is there any bigger issue that i am not aware of?

      I have the MMM-Google Calendar which is working fine and using the same Auth.

      Thanks in advance for your help :)

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

        @Jabl0 error 403 is forbidden

        google has announced a change in behavior for the google photos service. they haven’t clearly said when it would take effect

        IMG_1105.png

        see
        https://forum.magicmirror.builders/topic/19460/google-photos-api-changing-mmm-googlephotos-will-stop-working-soon.

        https://developers.google.com/photos/support/updates

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 2 Replies Last reply Reply Quote 0
        • J Offline
          Jabl0 @sdetweil
          last edited by

          @sdetweil said in MMM-GooglePhotos suddenly stopped working this morning:

          https://developers.google.com/photos/support/updates

          @sdetweil thanks for the reference, i will look at MMM-ImagesPhotos as an alternative and see if it fits my use case.

          1 Reply Last reply Reply Quote 0
          • J Jabl0 has marked this topic as solved
          • J Offline
            Jabl0 @sdetweil
            last edited by

            @sdetweil Thanks for sharing the reference link. I have given it a go and its working. I would love to host the folder on a network drive ideally, so i will look at ways to do this.

            S 2 Replies Last reply Reply Quote 0
            • S Away
              sdetweil @Jabl0
              last edited by sdetweil

              @Jabl0 i host my pics on a network share
              i mount that share on my pi thru the /etc/fstab file
              i mount it to a directory in the /media folder

              sudo mkdir /media/fileserver
              

              here server-share local-folder and user/passsword on the server

              //ds-data/media /media/fileserver cifs username=xxx,password=yyy,iocharset=utf8,file_mode=0777,dir_mode=0777
              

              ImagePhotos uses the uploads folder in its directory

              now i rename that out of the way and use a filesystem link to make uploads map to the mounted folder

              cd ~/MagicMirror/modules/MMM-ImagePhotos
              mv uploads upload-orig
              sudo ln -s /media/fileserver uploads
              

              then you’ve got it

              the server folder will be auto mounted on boot
              you may have to force remount if the server is rebooted

              sudo mount -a
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @Jabl0 i have a fork of ImagesPhotos that supports nested folders in the uploads folder

                i also have a module that allows guests to upload pics from their phones to the uploads folder via qr code

                https://github.com/sdetweil/uploadPics
                this supports upload to any folder. so works w any module providing view from locally accessible folder

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                J J 2 Replies Last reply Reply Quote 0
                • J Offline
                  JMac @sdetweil
                  last edited by

                  @sdetweil is this module dead in the water now?

                  It was the backbone of my entire MM, using Carousel the mirror nicely flipped between the family calendar and the google photos.

                  is there a work around still using this module or is it a case of finding an alternative? If the latter which is the best module to use for the same end result?

                  Sorry to hijack but didn’t want to start a whole new thread.
                  Cheers.

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

                    @JMac we dont know. selecting photos to share requires using their app it appears.

                    we dont know what that means for api access like we do for MagicMirror. someone will have to dig in and find out

                    the old way doesn’t work, so this module is non-functional currently

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @sdetweil love all your solutions. This will keep me busy 😉 thanks again mate 🙌🏾

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        Jabl0 @Jabl0
                        last edited by

                        @sdetweil just to update you. Network share works great and the kids are loving the QR code :) So thank you.

                        One thing i have noticed this module doing that the MMM-GooglePhotos module did not do, is it just goes black with only the mouse curser showing. Nothing shows up in PM2 logs when this happens. I guess its because it runs from browser?

                        Anyway i can troubleshoot this and see what is causing it? Maybe my Pi is not powerful enough? Its a Raspberry Pi 3 Model B.

                        See screenshot below:
                        Screenshot 2025-05-12 at 3.55.03 pm.png

                        Thanks :)

                        S 1 Reply Last reply Reply Quote 0
                        • 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