MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. dum
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 10
    • Groups 0

    dum

    @dum

    0
    Reputation
    1
    Profile views
    10
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    dum Unfollow Follow

    Latest posts made by dum

    • RE: Error with GooglePhotos API

      dear @bugsounet & @sdetweil
      thanks for your support, I didn’t mean to be rude, I suppose that I was frustrated for all the time I spent, while you were trying to help someone that you didn’t know and without experience :confounded_face:
      But finally I made it work!!!
      For future readers that may have my same problem, following:
      https://github.com/hermanho/MMM-GooglePhotos

      Finally I used “desktop app”, but the biggest issue was to allow the user:
      85321209-20f0-42f7-b70a-072f8f971c57-image.png

      posted in Troubleshooting
      D
      dum
    • RE: Error with GooglePhotos API

      @sdetweil
      in
      https://github.com/hermanho/MMM-GooglePhotos
      they say crearly and as “IMPORTANT!!” to select desktop :dizzy_face: :face_with_monocle:
      f2c64242-b117-477f-b3e3-11d980d1f9d8-image.png

      posted in Troubleshooting
      D
      dum
    • RE: Error with GooglePhotos API

      @sdetweil thanks, next step passed using “Desktop app”
      But now, google blocks the access even when I try to grant it:
      c3b3d4a3-3f21-4874-947d-857a031c8efe-image.png

      posted in Troubleshooting
      D
      dum
    • RE: Error with GooglePhotos API

      By the way!!! I can start magic mirror… but I’m really trying to set a google photos photframe… the rest of the modules can be checked later.

      posted in Troubleshooting
      D
      dum
    • RE: Error with GooglePhotos API

      thanks. I understand I need to write “localhost” the same as you have done.
      But no luck. still error in generate_token:

      pi-photoframe@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $ node generate_token.js
      [GPHOTOS:CORE] TypeError: Cannot read properties of undefined (reading 'client_id')
      /home/pi-photoframe/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:133
            throw e
            ^
      
      TypeError: Cannot read properties of undefined (reading 'client_id')
          at new Auth (/home/pi-photoframe/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:35:44)
          at GPhotos.onAuthReady (/home/pi-photoframe/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:130:14)
          at GPhotos.generateToken (/home/pi-photoframe/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:141:10)
          at Object.<anonymous> (/home/pi-photoframe/MagicMirror/modules/MMM-GooglePhotos/generate_token.js:10:9)
          at Module._compile (node:internal/modules/cjs/loader:1165:14)
          at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
          at Module.load (node:internal/modules/cjs/loader:1043:32)
          at Function.Module._load (node:internal/modules/cjs/loader:878:12)
          at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
          at node:internal/main/run_main_module:22:47
      
      posted in Troubleshooting
      D
      dum
    • RE: Error with GooglePhotos API

      @sdetweil thanks for the suggestion, I tried “desktop app” with same result.
      the other app types require more data which I dont know how to fill.

      posted in Troubleshooting
      D
      dum
    • RE: Error with GooglePhotos API

      I’m sorry. what should I do?
      The credentials.json file is generated automatically from the google developers console… :astonished_face:

      posted in Troubleshooting
      D
      dum
    • RE: Error with GooglePhotos API

      @sdetweil Thanks for your answer.
      I select “TVs and Limited Input devices” as per the manual.
      And the credentials.json file starts with that code you write.
      I think that is not the solution or I may be still be doing something wrong.

      posted in Troubleshooting
      D
      dum
    • Error with GooglePhotos API

      Hi everybody, I’m new here, as long as I arrived trying to set up a photo frame with google photos.
      I have a Raspberry PI trying to set it up, but when I reach the point to Generate Token, I find following error, any help?:

      pi-photoframe@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $ node generate_token.js
      [GPHOTOS:CORE] TypeError: Cannot read properties of undefined (reading '0')
      /home/pi-photoframe/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:133
            throw e
            ^
      
      TypeError: Cannot read properties of undefined (reading '0')
          at new Auth (/home/pi-photoframe/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:35:91)
          at GPhotos.onAuthReady (/home/pi-photoframe/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:130:14)
          at GPhotos.generateToken (/home/pi-photoframe/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:141:10)
          at Object.<anonymous> (/home/pi-photoframe/MagicMirror/modules/MMM-GooglePhotos/generate_token.js:10:9)
          at Module._compile (node:internal/modules/cjs/loader:1165:14)
          at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
          at Module.load (node:internal/modules/cjs/loader:1043:32)
          at Function.Module._load (node:internal/modules/cjs/loader:878:12)
          at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
          at node:internal/main/run_main_module:22:47
      
      posted in Troubleshooting
      D
      dum