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

nest-status access token

Scheduled Pinned Locked Moved Solved Troubleshooting
17 Posts 4 Posters 3.0k Views 4 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.
  • T Offline
    tanvir586 @djsri
    last edited by Mar 7, 2022, 1:42 AM

    @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 Offline
      djsri
      last edited by Mar 9, 2022, 8:30 PM

      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 Mar 10, 2022, 1:35 PM Reply Quote 0
      • T Offline
        tanvir586 @djsri
        last edited by Mar 10, 2022, 1:35 PM

        @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?

        X 1 Reply Last reply Mar 11, 2022, 7:12 AM Reply Quote 0
        • X Offline
          xadamxk @tanvir586
          last edited by Mar 11, 2022, 7:12 AM

          @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 Mar 11, 2022, 11:01 AM Reply Quote 0
          • T Offline
            tanvir586 @xadamxk
            last edited by tanvir586 Mar 11, 2022, 11:01 AM Mar 11, 2022, 11:01 AM

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

            1 Reply Last reply Reply Quote 0
            • T Offline
              tanvir586
              last edited by Mar 12, 2022, 1:37 PM

              Hi guys I’m having a new problem, it freeze after couple of hours. If I restart my magicmirror then it works fine then again after few hours it freeze again. Any solution?

              X 1 Reply Last reply Mar 12, 2022, 10:05 PM Reply Quote 0
              • X Offline
                xadamxk @tanvir586
                last edited by Mar 12, 2022, 10:05 PM

                @tanvir586 Does your entire mirror freeze or just the module? When you say freeze, does the screen turn black or does every module just stop updating?

                T 1 Reply Last reply Mar 12, 2022, 10:42 PM Reply Quote 0
                • T Offline
                  tanvir586 @xadamxk
                  last edited by Mar 12, 2022, 10:42 PM

                  @xadamxk … just my nest module. Everything else working fine.

                  1 Reply Last reply Reply Quote 0
                  • X Offline
                    xadamxk
                    last edited by Mar 13, 2022, 2:07 AM

                    @tanvir586 Hard to say what the problem might be without having access to your device. If you read the console output of the magic mirror, or run in server only mode, you might be able to read the logs for any errors associated with the module.

                    T 1 Reply Last reply Mar 13, 2022, 1:41 PM Reply Quote 0
                    • T Offline
                      tanvir586 @xadamxk
                      last edited by Mar 13, 2022, 1:41 PM

                      @xadamxk this is my error log…

                      [13.03.2022 13:12.50.413] [ERROR] Whoops! There was an uncaught exception…
                      [13.03.2022 13:12.50.431] [ERROR] TypeError: Cannot read properties of undefined (reading ‘statusCode’)
                      at Request._callback (/home/pi/MagicMirror/modules/mmm-nest-status/node_helper.js:16:22)
                      at self.callback (/home/pi/node_modules/request/request.js:185:22)
                      at Request.emit (node:events:394:28)
                      at Request.onRequestError (/home/pi/node_modules/request/request.js:877:8)
                      at ClientRequest.emit (node:events:394:28)
                      at TLSSocket.socketErrorListener (node:_http_client:447:9)
                      at TLSSocket.emit (node:events:394:28)
                      at emitErrorNT (node:internal/streams/destroy:157:8)
                      at emitErrorCloseNT (node:internal/streams/destroy:122:3)
                      at processTicksAndRejections (node:internal/process/task_queues:83:21)
                      [13.03.2022 13:12.50.438] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                      [13.03.2022 13:12.50.439] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

                      X 1 Reply Last reply Apr 10, 2022, 9:37 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        10/17
                        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