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.

    Google assistant on magicmirror

    Scheduled Pinned Locked Moved Requests
    google assistantmagicmirror
    21 Posts 8 Posters 18.7k Views 9 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.
    • N Offline
      nitrogen73
      last edited by

      can anyone help how to do the below steps?

      Install Pubnub dependencies using pip install ‘pubnub>=4.0.13’
      If you get an error while installing Pubnub, try using sudo: ‘sudo pubnub>=4.0.13’
      Download the ‘pi/assistant.py’ script on your raspberry pi and launch it via terminal
      If you see a ‘No module named google’ error try running it via /home/pi/env/bin/python3 -u
      assistant.py

      Im not good at programming… please help me…

      1 Reply Last reply Reply Quote 0
      • aro28A Offline
        aro28
        last edited by

        Hi,
        I did it in Python virtual environment and it works.
        go to "source env/bin/activate " and install Pubnub dependencies using pip install ‘pubnub>=4.0.13’.
        see below link
        https://developers.google.com/assistant/sdk/guides/library/python/embed/install-sample

        Let me know if it works for you.
        Best,

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          nitrogen73
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • N Offline
            nitrogen73 @aro28
            last edited by nitrogen73

            @aro28 i already done all the steps mentioned in the link https://developers.google.com/assistant/sdk/guides/library/python/embed/install-sample

            and it also worked fine.

            But the real problem is when i start the magicmirror the google assistant does not start. How to bring the google assistant module in magicmirror? I also add the script in the config.js. In the display it shows only the image of the google assistant.

            1 Reply Last reply Reply Quote 0
            • aro28A Offline
              aro28
              last edited by

              Yes. Same for me. I can see Google Logo and nothing happens on “Ok, google how’s the weather today?” No reaction.

              N 1 Reply Last reply Reply Quote 0
              • N Offline
                nitrogen73 @aro28
                last edited by

                @aro28 Please let me know once you figure it out… And thank you very much for your reply…

                aro28A 1 Reply Last reply Reply Quote 0
                • aro28A Offline
                  aro28 @nitrogen73
                  last edited by

                  @nitrogen73 said in Google assistant on magicmirror:

                  Please let me know once you figure it out… And thank you very much for your reply…

                  I’ve posted my issue on below link. Please feel free and participate in discussion as well.
                  https://github.com/gauravsacc/MMM-GoogleAssistant/issues/18

                  N 1 Reply Last reply Reply Quote 0
                  • N Offline
                    nitrogen73 @aro28
                    last edited by

                    @aro28 Could you please tell me what you done after completing the steps in below link?

                    https://developers.google.com/assistant/sdk/guides/library/python/embed/install-sample

                    aro28A 2 Replies Last reply Reply Quote 0
                    • aro28A Offline
                      aro28 @nitrogen73
                      last edited by

                      @nitrogen73 said in Google assistant on magicmirror:

                      @aro28 Could you please tell me what you done after completing the steps in below link?

                      I followed below link: https://github.com/eouia/MMM-Assistant/wiki

                      If you are able to launch google-assistant-demo(https://developers.google.com/assistant/sdk/prototype/getting-started-pi-python/run-sample) and use the assistant, you should able to use the ‘pi/assistant.py’ script that communicates with the magic mirror module.

                      1 Reply Last reply Reply Quote 0
                      • aro28A Offline
                        aro28 @nitrogen73
                        last edited by

                        @nitrogen73 Also, i register the Device Model as instructed in above link. In order for the Google Assistant to respond to commands appropriate to your device and the given context, the Assistant needs information about your particular device.

                        1 Reply Last reply Reply Quote 0
                        • ChrisC Offline
                          Chris
                          last edited by

                          Hello,

                          I also have problems with the operation of this module.

                          I posted in another post: https://forum.magicmirror.builders/topic/5575/assistant-error/8

                          In my case, the google icon appears but only triggers once and I do not get an answer.
                          I encounter the same problem with the icon of the mirror which remains stuck waiting. I have to restart the mirror.

                          Should you also follow the steps in the link https://developers.google.com/assistant/sdk/guides/library/python/embed/install-sample
                          despite the fact that it is not mentioned in the wiki?

                          Thanking you in advance for your answers.

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            clconner09
                            last edited by

                            Same problem here although mine doesn’t appear to trigger at all. I’ve gotten the sample to run. I can run assistant.py and interact but when altering the config file and running MM. Nothing but an icon at the top.

                            ChrisC 1 Reply Last reply Reply Quote 0
                            • ChrisC Offline
                              Chris @clconner09
                              last edited by

                              @clconner09
                              Hello,
                              I was unfortunately forced to give up. After several installations, always the same problem.
                              I will wait to see if the developer of this great module will update soon.

                              cordially,

                              gauravsaccG 1 Reply Last reply Reply Quote 0
                              • gauravsaccG Offline
                                gauravsacc Module Developer @Chris
                                last edited by

                                @Chris A bit late but the module is updated now. Go ahead and pull the update, let me know if you are still facing issues. Happy to help!

                                H 1 Reply Last reply Reply Quote 0
                                • ChrisC Offline
                                  Chris
                                  last edited by Chris

                                  @gauravsacc

                                  Hello,
                                  I tried a git pull on the module MMM-Assistant but I still encounter the same problem. The voice is still jerky in English while I wish in French.
                                  there is a good chance that I made a mistake during the installation but I can not find where.
                                  Are you a beginning of track to communicate to me?
                                  Thank you in advance,

                                  1 Reply Last reply Reply Quote 0
                                  • H Offline
                                    hrjmsh @gauravsacc
                                    last edited by

                                    @gauravsacc First, many thanks for such an excellent effort. Unfortunately, despite having the latest and updated module version, I am having the same ‘no start’ issue in Magic Mirror as others have mentioned. I can start ‘assistant.py’ under “source env/bin/activate” and it works absolutely fine while staying in the terminal. But once in Magic Mirror, the google assistant remains unresponsive. Does ‘assistant.py’ needs to run as a script in the background at startup or is there anything else I am missing?

                                    gauravsaccG 1 Reply Last reply Reply Quote 0
                                    • gauravsaccG Offline
                                      gauravsacc Module Developer @hrjmsh
                                      last edited by

                                      @hrjmsh Yes assistant.py should be running in the background

                                      H 1 Reply Last reply Reply Quote 0
                                      • H Offline
                                        hrjmsh @gauravsacc
                                        last edited by hrjmsh

                                        @gauravsacc Great, thanks. All working fine.
                                        It might be a good idea to include that information in your module page at the end of instructions. It would help a lot to a novice and inexperienced like me!

                                        gauravsaccG 1 Reply Last reply Reply Quote 0
                                        • gauravsaccG Offline
                                          gauravsacc Module Developer @hrjmsh
                                          last edited by

                                          @hrjmsh sure you want to raise a pull request with this change?

                                          1 Reply Last reply Reply Quote 0
                                          • O Offline
                                            onurcnbs
                                            last edited by

                                            I did all the current steps. GA worked. But the Smart mirror is not active. Only the GA symbol appears. I’m having trouble with assistant.py. Can you 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
                                            • 2
                                            • 2 / 2
                                            • 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