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

Scheduled Pinned Locked Moved Unsolved Troubleshooting
6 Posts 2 Posters 212 Views 2 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.
  • S Offline
    Sebi76 0
    last edited by Feb 2, 2025, 9:48 AM

    Hello i used this module long time ago and it works. Now i want to install this on a new Raspi.
    They wont start

    [ERROR] MMM-GoogleBirthdaysProvider: API Helper error: API Error: Error: invalid_grant 
    [2025-01-31 18:16:10.000] [ERROR] (node:12013) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'data')
        at /home/magicmirror/MagicMirror/modules/MMM-GoogleBirthdaysProvider/google-api-helper.js:41:45
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    (Use `electron --trace-warnings ...` to show where the warning was created) 
    [2025-01-31 18:16:10.000] [ERROR] (node:12013) 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) 
    
    

    then i install it new. But when i want to generate a Token and i click on the Link an before the last Step:
    "MMM-GoogleBirthdaysProvider wants to access your Google Account " and i click on forward
    it comes this :

    Connection failed

    Firefox cannot connect to the server at localhost.

    S 1 Reply Last reply Feb 2, 2025, 11:36 AM Reply Quote 0
    • S Offline
      sdetweil @Sebi76 0
      last edited by Feb 2, 2025, 11:36 AM

      @Sebi76-0 it sounds like you use Firefox on another machine,
      Most of these Auth implementations are required to be done on the same machine, you can’t run them over ssh

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        Sebi76 0
        last edited by Sebi76 0 Feb 2, 2025, 12:52 PM Feb 2, 2025, 12:47 PM

        Re: MMM-GoogleBirthdaysProvider

        No i don’t on a another Machine, i local on my Raspi4.

        mmm-googlebirthdaysprovider@0.2.0 token:generate
        node ./google-api-credentials/generate-auth-token.js

        Authorize the app by visiting this url: https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcontacts.readonly&response_type=code&client_id=xxxxxxxx-4hmsenjojbirtdvt47f00a0btomqlhbe.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost
        Enter the code from that page here:

        S 1 Reply Last reply Feb 2, 2025, 12:59 PM Reply Quote 0
        • S Offline
          sdetweil @Sebi76 0
          last edited by Feb 2, 2025, 12:59 PM

          @Sebi76-0 OK, the end of that url shows http://localhost
          with no port number, implying port 80

          I don’t see the module doc talk setting callback uris on the Google page, oauthClient setup

          Typically the code requesting the oauth callback has to say where it’s ‘server’ is listening. (And you have to hard code it in the Google setup) I don’t see that setup in his code either

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            Sebi76 0
            last edited by Feb 2, 2025, 1:05 PM

            npm run token:generate
            

            I only followed what you see there

            S 1 Reply Last reply Feb 2, 2025, 1:10 PM Reply Quote 0
            • S Offline
              sdetweil @Sebi76 0
              last edited by sdetweil Feb 2, 2025, 1:12 PM Feb 2, 2025, 1:10 PM

              @Sebi76-0 I understand, but I think he left out some steps

              There is an issue open on the module github page since 2023 about this

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                4/6
                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