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 GoogleAssistant mv client_secret_XXX.json credentials.json

    Scheduled Pinned Locked Moved Utilities
    11 Posts 2 Posters 4.1k 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.
    • W Offline
      wirdman
      last edited by

      hey

      when i follow the installation guide i try to do

      cd ~/MagicMirror/modules/MMM-GoogleAssistant
      mv client_secret_XXX.json credentials.json
      

      but he tel me : No such file or folder

      and when i start my magic mirror the google assitant telle me : not finding token.json

      maybe someone have an idea.

      thanks you for this amazing modules of course and for your answer 😃

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @wirdman
        last edited by

        @wirdman said in MMM GoogleAssistant mv client_secret_XXX.json credentials.json:

        client_secret_XXX.json

        you downloaded a file from google, yes? credentials, yes?

        where do files that are downloaded go ? (same as on windows) the Downloads folder

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • W Offline
          wirdman
          last edited by

          @sdetweil said in MMM GoogleAssistant mv client_secret_XXX.json credentials.json:

          you downloaded a file from google, yes? credentials, yes

          yes i do but and i put it in MMM-GoogleAssistant

          and now i try do this command line

          pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ mv code_secret_client_109652145873-5nkqrfro300pe1pi6r5gd0v9sutdolmm.apps.googleusercontent.com.json crendentials.json
          mv: impossible d'évaluer 'code_secret_client_109652145873-5nkqrfro300pe1pi6r5gd0v9sutdolmm.apps.googleusercontent.com.json': Aucun fichier ou dossier de ce type
          
          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @wirdman
            last edited by

            @wirdman is it in this google assistant folder or still in Downloads?

            cd ~/MagicMirror/modules/MMM-GoogleAssistant
            ls *.json -laF
            

            and

            cd ~/Downloads
            ls *.json -laF
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • W Offline
              wirdman
              last edited by

              nothing in download

              pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ ls *.json -laF
              -rw-r--r-- 1 pi pi   546 jui 13 21:29 credentials.json
              -rw-r--r-- 1 pi pi   132 jui 13 20:06 deviceInstance.sample.json
              -rw-r--r-- 1 pi pi  1610 jui 13 20:06 package.json
              -rw-r--r-- 1 pi pi 79267 jui 13 20:49 package-lock.json
              
              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @wirdman
                last edited by

                @wirdman said in MMM GoogleAssistant mv client_secret_XXX.json credentials.json:

                credentials.json

                already in assistant folder

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • W Offline
                  wirdman
                  last edited by

                  but after

                  pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ node auth_and_test.js
                  /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/google-assistant/components/auth.js:27
                    const oauthClient = new OAuth2(key.client_id, key.client_secret, key.redirect_uris[0]);
                                                       ^
                  
                  TypeError: Cannot read property 'client_id' of undefined
                      at new Auth (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/google-assistant/components/auth.js:27:38)
                      at new GoogleAssistant (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/google-assistant/index.js:21:16)
                      at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/auth_and_test.js:60:19)
                      at Module._compile (internal/modules/cjs/loader.js:778:30)
                      at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
                      at Module.load (internal/modules/cjs/loader.js:653:32)
                      at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
                      at Function.Module._load (internal/modules/cjs/loader.js:585:3)
                      at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
                      at startup (internal/bootstrap/node.js:283:19)
                  
                  1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil
                    last edited by

                    did u download the correct credentials?

                    I would go recheck that step of the instructions… it worked for me when I did it

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      wirdman
                      last edited by

                      honestly i think this is in my credentials :

                      {"web":{"client_id":"109652145873-5nkqrfro300pe1pi6r5gd0v9sutdolmm.apps.googleusercontent.com","project_id":"smart-mirrorr-b3d55","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"hYgsFML7eyHnsy7HClmmUSzR","redirect_uris":["https://smart-mirrorr-b3d55.firebaseapp.com/__/auth/handler"],"javascript_origins":["http://localhost","http://localhost:5000","https://smart-mirrorr-b3d55.firebaseapp.com"]}}
                      
                      1 Reply Last reply Reply Quote 0
                      • W Offline
                        wirdman
                        last edited by

                        Capture d’écran 2020-07-14 à 01.14.39.png

                        1 Reply Last reply Reply Quote 0
                        • W Offline
                          wirdman
                          last edited by

                          Hey thanks you this step is done

                          but know im lost when i write the line

                          cd ~/MagicMirror/modules/MMM-GoogleAssistant
                          node auth_and_test.js
                          

                          i got this error

                          pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ node auth_and_test.js
                          /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/google-assistant/components/auth.js:27
                            const oauthClient = new OAuth2(key.client_id, key.client_secret, key.redirect_uris[0]);
                                                               ^
                          
                          TypeError: Cannot read property 'client_id' of undefined
                              at new Auth (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/google-assistant/components/auth.js:27:38)
                              at new GoogleAssistant (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/google-assistant/index.js:21:16)
                              at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/auth_and_test.js:60:19)
                              at Module._compile (internal/modules/cjs/loader.js:778:30)
                              at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
                              at Module.load (internal/modules/cjs/loader.js:653:32)
                              at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
                              at Function.Module._load (internal/modules/cjs/loader.js:585:3)
                              at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
                              at startup (internal/bootstrap/node.js:283:19)
                          

                          thank you again for your help

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • 1 / 1
                          • 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