MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    SOLVED nest-status access token

    Troubleshooting
    4
    17
    372
    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.
    • T
      tanvir586 last edited by

      Hi guys. im stuck on nest status access token. I have done everything but when I go to my windows terminal and try to get access token I get error. I’ll be really happy if someone help me out.terminal 1.jpg terminal.jpg

      S 1 Reply Last reply Reply Quote 0
      • D
        djsri last edited by

        Hi again,

        Ok, so i’m pretty sure “invalid_grant” means your authorization-code is wrong? Can you try again.

        I started here: https://developers.google.com/nest/device-access/authorize

        Hopefully this helps.

        T 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @tanvir586 last edited by

          @tanvir586 I think it should be curl -sL

          Sam

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • T
            tanvir586 last edited by

            I will try it today

            1 Reply Last reply Reply Quote 0
            • T
              tanvir586 last edited by

              Didn’t work. Same issue

              1 Reply Last reply Reply Quote 0
              • D
                djsri last edited by

                Hi

                Have you tried running the command from the magic mirror? I.e ssh session. I was having trouble in windows and this worked for me.

                Providing you completed all the steps to receive the access token it should work. Let me know how you get on

                Cheers

                T 1 Reply Last reply Reply Quote 0
                • T
                  tanvir586 @djsri last edited by

                  @djsri Hi mate really thanks for your reply. Ive tried this but it didn’t work aswell. It’s been few days I’m stuck hear. don’t know what to do. my shh is enable aswell.

                  this is my raspberry terminal

                  pi@raspberrypi:~ $ curl -L -X POST ‘https://www.googleapis.com/oauth2/v4/token?client_id=668199754579-ghq6nf2u8lu1lap1gokc2pnfse4up40d.apps.googleusercontent.com&client_secret=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&code=4/0AX4XfWjVY8iQheoIbNCmddQADUHCQyv9-lmh-w-zNPp9XAN64y-P_fcuU6SFNKQWtEpFtA&grant_type=authorization_code&redirect_uri=https://www.google.com’
                  {
                  “error”: “invalid_grant”,
                  “error_description”: “Bad Request”
                  pi@raspberrypi:~ $

                  1 Reply Last reply Reply Quote 0
                  • D
                    djsri last edited by

                    Hi again,

                    Ok, so i’m pretty sure “invalid_grant” means your authorization-code is wrong? Can you try again.

                    I started here: https://developers.google.com/nest/device-access/authorize

                    Hopefully this helps.

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      tanvir586 @djsri last edited by

                      @djsri Hi mate . Thank you so much. It’s Worked. Don’t know where I made mistake but it’s working now. Last couple of days I repeat this whole process so many times but it Worked this time. Really appreciate you help.
                      Now I’m facing another problem. I changed the update interval from 2 min to 5 seconds and im receiving this massage ( the device access API rate limit has been exceeded this module will try to load data again in 10 minutes ) Do I have to go back to the 2 minutes or is there anything I can do?

                      xadamxk 1 Reply Last reply Reply Quote 0
                      • xadamxk
                        xadamxk @tanvir586 last edited by

                        @tanvir586 the google api limits how often you can call their api. Every 5 seconds to way too often. I’d say set it anywhere from 3-10 minutes and you should be good.

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          tanvir586 @xadamxk last edited by tanvir586

                          @xadamxk Thanks mate. I’m on 2min now and it looks good

                          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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                          This forum is using NodeBB as its core | Contributors
                          Contact | Privacy Policy