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 and MMM-AssistantMk2 installation issues :(

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    mmm-googleassistantmmm-assistantmk2google assistantassistant
    20 Posts 4 Posters 9.1k 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.
    • D Offline
      Davidpearl1
      last edited by

      Hi Guys,

      I hope you are well

      I am not the most competent when it comes to coding but I can usually find my way around but I have had problems with trying to install both of these services :(

      I have found with both of these Modules the instructions are not everyday friendly to the casual maker who isn’t as technically minded as most, this therefore has made it difficult to run either of the services

      MMM-GoogleAssistant - I have found the instruction lacking in detail of what fields to actually change or update with your keys and I got stuck on the part: Setup Google Assistant on Pi

      MMM-AssistantMk2 - I got up to the section listed below and the webpage opens up but just gives me a 505 error and asks to try again later…have I done something wrong or is it just broken?

      In your SBC, you can run auth-tool for authentification. (not via SSH)
      cd ~/MagicMirror/modules/MMM-AssistantMk2
      node auth_and_test.js

      Getting quite disheartened and frustrated and would appreciate any assistance any one is willing to provide

      Many thanks in advance.

      Kind Regards,

      David

      ? 1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @Davidpearl1
        last edited by

        @davidpearl1 I have no idea about 505 error. But you should confirm your previous steps had no miss. (Usually, 505 error will be occurred when your permission about API or service is not valid)

        1 Reply Last reply Reply Quote 0
        • D Offline
          Davidpearl1
          last edited by

          I will double check now and advise

          ? 1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @Davidpearl1
            last edited by

            @davidpearl1 Was there any suspicious step in your previous trials?

            1 Reply Last reply Reply Quote 0
            • D Offline
              Davidpearl1
              last edited by Davidpearl1

              @Sean Still not working and I still get the 500 error

              I have followed all steps and have the credentials and everything

              I am using an RPI 3B+ with stretch, could that be an issue?

              I have tried creating a new set of credentials and that didn’t work either

              The API is enabled - I am just completely lost now :(

              ? 1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User @Davidpearl1
                last edited by A Former User

                @davidpearl1 give me your node version. and can you show me your credentials.json (with changing the private secret strings to something others)
                And error messages also.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Davidpearl1
                  last edited by

                  @Sean

                  pi@raspberrypi:~/MagicMirror/modules/MMM-AssistantMk2 $ node -v
                  v9.11.2

                  {“installed”:{“client_id”:“999952555594-iu5vlompjfib9s3bc3tdsh981f3hfulk.apps.googleusercontent.com”,“project_id”:“mmm-assistant-e6cac”,“auth_uri”:“https://accounts.google.com/o/oauth2/auth",“token_uri”:“https://accounts.google.com/o/oauth2/token”,“auth_provider_x509_cert_url”:“https://www.googleapis.com/oauth2/v1/certs”,“client_secret”:“xxxxxxxx”,“redirect_uris”:[“urn:ietf:wg:oauth:2.0:oob”,"http://localhost”]}}

                  Error message is a google website with error 500 -

                  "500. That’s an error.

                  There was an error. Please try again later. That’s all we know."

                  ? 1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User @Davidpearl1
                    last edited by

                    @davidpearl1
                    credentails itself seems to have no problem.
                    And I think it is not the kind of the problem of API enable/disable.
                    500 error usually, be occurred when authentication is denied by Google for some reasons. With googling, there seem several cases;

                    1. Just hiccup. try later for a while.
                    2. Your client_id is contaminated. (I don’t know what it is and why)

                    Sorry, I can not reproduce your error so I cannot catch what’s wrong.

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      Davidpearl1
                      last edited by

                      Thats rubbish :(

                      So I technically cannot use the module at all! is there a way to manually authorise it?

                      The only thing I can think about is starting again from scratch

                      does it allow you to get the auto code from Google now? could it be a google side issue?

                      ? 1 Reply Last reply Reply Quote 0
                      • ? Offline
                        A Former User @Davidpearl1
                        last edited by

                        @davidpearl1
                        I cannot assure anything. Some googling says that could be a temporal problem, but others say your auth might have some problem (but I don’t know what exactly).
                        I suggest removing your whole google-projects and try again from scratch. The only thing I can suspect is, you had a conflict with your some google-projects and used the other credentials for your different projects. (I think that case would be not also. but I have no idea at all…)

                        M 1 Reply Last reply Reply Quote 0
                        • D Offline
                          Davidpearl1
                          last edited by

                          I got it to work!!! :D:D:D:D:D

                          I deleted all other projects and combined it into one, I also deleted all of my devices and started a new one.

                          My issue now is I haven’t had a ‘Token.json’ file generate in the directory?

                          ? 1 Reply Last reply Reply Quote 0
                          • ? Offline
                            A Former User @Davidpearl1
                            last edited by

                            @davidpearl1
                            After auth, token.json should be generated in the directory where credentials.json is located. isn’t there?

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              Davidpearl1
                              last edited by

                              @Sean nope :(

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                Davidpearl1
                                last edited by Davidpearl1

                                just re-ran it and its showing lol :S

                                WHAT IS UP WITH MY PI!!! lol

                                Now I just need to figure out how to use and apply the basic configuration

                                ? 1 Reply Last reply Reply Quote 0
                                • ? Offline
                                  A Former User @Davidpearl1
                                  last edited by

                                  @davidpearl1
                                  If you want to invoke your Assistant with voice, you need also MMM-Hotword and MMM-notificationTrigger.
                                  Good luck to you.

                                  1 Reply Last reply Reply Quote 0
                                  • X Offline
                                    Xintium
                                    last edited by

                                    @davidpearl1 How did you fix it I also tried to delete my project and recreate it but it did not help. And what do you mean you deleted all other projects and combined it into one?

                                    D 1 Reply Last reply Reply Quote 1
                                    • D Offline
                                      Davidpearl1 @Xintium
                                      last edited by

                                      @xintium I deleted all of my projects on Google Cloud and combined all the API’s and services I needed into one project.

                                      Once I had done that it fixed my issue

                                      X 1 Reply Last reply Reply Quote 0
                                      • X Offline
                                        Xintium @Davidpearl1
                                        last edited by

                                        @davidpearl1 I got it working. Now I am stuck because when using electron-rebuild it fails, did you also have problems using electron-rebuild.

                                        D 1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          Davidpearl1 @Xintium
                                          last edited by

                                          @xintium I ended up moving away from this module and compiled a brand new image using Latest Raspbian build and installing GassistPi and then MagicMirror

                                          This works perfectly and the instructions are super easy to follow

                                          Not taking away from these modules as they look excellent but they were just too fiddly for me - GassistPi has installers which does all the hard work for you

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            mrega @Guest
                                            last edited by

                                            @sean Go to “console.cloud.google.com”, then to “Api and Services”, select your project, then “Credentials”, then “OAuth Consent Screen”, indicate your E-mail address, try again "node auth_and_test.js "and tell us!

                                            Here are the steps you must do before asking for authorization;
                                            https://developers.google.com/assistant/sdk/guides/library/python/embed/config-dev-project-and-account

                                            Specifically in;
                                            Configure the Developer Project and Account Settings and Register the Device Model.
                                            Luck! Come back with your feedback!

                                            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