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.

    The latest Install Guide (MM w/ Google Assistant)

    Scheduled Pinned Locked Moved Troubleshooting
    63 Posts 25 Posters 67.7k Views 28 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.
    • S Offline
      siddhartha
      last edited by

      pcm.!default {
      type asym
      capture.pcm “mic”
      playback.pcm “speaker”
      }
      pcm.mic {
      type plug
      slave {
      pcm “hw:1,0”
      }
      }
      pcm.speaker {
      type plug
      slave {
      pcm “hw:0,1”
      }
      }

      This is my asoundrc conf but i want to change conf like this

      defaults.pcm.!card
      defaults.ctl.!card

      screencast and google assistant both want diffrent asoundrc so any suggetions ??

      Thank you.

      i am noob at this so sorry in advance for dumb question…

      Thank you for your reply 🙂

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

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • O Offline
          otto @makepluscode
          last edited by

          @makepluscode
          https://pastebin.com/cBFMG7ak

          i got this… what sholde i do?

          1 Reply Last reply Reply Quote 1
          • H Offline
            harrycool25
            last edited by

            An amazing guide! Thanks a lot. Got the mirror and the google assistant module up an running well, with a few issues that I will address here.
            So, overall, everything is VERRY LAGGY- from audio, video, animation and update rate. I was told to downgrade MM from 2.9.0 down to 2.1.0, but have no idea how. Any help please. And the google assistant, when asked about some specific things like direction or information on the web, it just shows the URL for like a split second, then stop. Anyway I can display this on my phone, like idk connect the module to my phone in any way?
            Please help. I’ve been struggling with this for 4 weeks already and it’s starting to br a major annoyance :(

            1 Reply Last reply Reply Quote 0
            • A Offline
              Ayos53
              last edited by

              Excuse me but i have a problem in your tutoriel : step 5 point 1.
              when you ask to go :

              cd ~/MagicMirror/modules/MMM-Hotword/node_modules/snowboy

              I havent folder node module. When i “npm install” in MMM-hotword i have :

              npm notice created a lockfile as package-lock.json. You should commit this file.
              npm WARN MMM-Hotword@2.0.1 No repository field.
              
              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Ayos53
                last edited by sdetweil

                @Ayos53 said in The latest Install Guide (MM w/ Google Assistant):

                I havent folder node module.

                its node_modules (note the trailing s)…

                it will be there if you ran npm install in the MMM-Hotword folder as required by the install instructions (the install.sh script does this)

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Ayos53
                  last edited by

                  Sorry it’s me again.

                  I have a problem when i launch magicmiror, he crashed.
                  The log file :

                  0 info it worked if it ends with ok
                  1 warn npm npm does not support Node.js v10.15.2
                  2 warn npm You should probably upgrade to a newer version of node as we
                  3 warn npm can't make any promises that npm will work with this version.
                  4 warn npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
                  5 warn npm You can find the latest version at https://nodejs.org/
                  6 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
                  7 info using npm@5.8.0
                  8 info using node@v10.15.2
                  9 verbose run-script [ 'prestart', 'start', 'poststart' ]
                  10 info lifecycle magicmirror@2.9.0~prestart: magicmirror@2.9.0
                  11 info lifecycle magicmirror@2.9.0~start: magicmirror@2.9.0
                  12 verbose lifecycle magicmirror@2.9.0~start: unsafe-perm in lifecycle true
                  13 verbose lifecycle magicmirror@2.9.0~start: PATH: /usr/share/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
                  14 verbose lifecycle magicmirror@2.9.0~start: CWD: /home/pi/MagicMirror
                  15 silly lifecycle magicmirror@2.9.0~start: Args: [ '-c', 'sh run-start.sh' ]
                  16 info lifecycle magicmirror@2.9.0~start: Failed to exec start script
                  17 verbose stack Error: magicmirror@2.9.0 start: `sh run-start.sh`
                  17 verbose stack spawn ENOENT
                  17 verbose stack     at ChildProcess.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
                  17 verbose stack     at ChildProcess.emit (events.js:189:13)
                  17 verbose stack     at maybeClose (internal/child_process.js:970:16)
                  17 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
                  18 verbose pkgid magicmirror@2.9.0
                  19 verbose cwd /home/pi/MagicMirror
                  20 verbose Linux 4.19.75-v7l+
                  21 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
                  22 verbose node v10.15.2
                  23 verbose npm  v5.8.0
                  24 error file sh
                  25 error code ELIFECYCLE
                  26 error errno ENOENT
                  27 error syscall spawn
                  28 error magicmirror@2.9.0 start: `sh run-start.sh`
                  28 error spawn ENOENT
                  29 error Failed at the magicmirror@2.9.0 start script.
                  29 error This is probably not a problem with npm. There is likely additional logging output above.
                  30 verbose exit [ 1, true ]
                  

                  If someone have an idea ?

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

                    @Ayos53 said in The latest Install Guide (MM w/ Google Assistant):

                    /home/pi/MagicMirror

                    seems a file is missing, please do

                    ls /home/pi/MagicMirror/run-start.sh
                    

                    you should see this result

                    pi@raspberrypi:~ $ ls /home/pi/MagicMirror/run-start.sh
                    /home/pi/MagicMirror/run-start.sh
                    

                    it is part of the git clone distribution and never changed

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    A 1 Reply Last reply Reply Quote 0
                    • A Offline
                      Ayos53 @sdetweil
                      last edited by

                      @sdetweil
                      i do

                      ls /home/pi/MagicMirror/run-start.sh
                      

                      and yes i have this result

                      pi@raspberrypi:~ $ ls /home/pi/MagicMirror/run-start.sh
                      /home/pi/MagicMirror/run-start.sh
                      

                      but always crash after 1 seconde

                      i see this :

                      > magicmirror@2.9.0 start /home/pi/MagicMirror
                      > sh run-start.sh
                      
                      Starting MagicMirror: v2.9.0
                      Loading config ...
                      Loading module helpers ...
                      No helper found for module: alert.
                      Initializing new module helper ...
                      Module helper loaded: updatenotification
                      No helper found for module: clock.
                      No helper found for module: currentweather.
                      No helper found for module: weatherforecast.
                      Initializing new module helper ...
                      Module helper loaded: newsfeed
                      Initializing new module helper ...
                      Module helper loaded: MMM-NetworkConnection
                      Initializing new module helper ...
                      Module helper loaded: MMM-Hotword
                      Initializing new module helper ...
                      Module helper loaded: MMM-AssistantMk2
                      All module helpers loaded.
                      Starting server on port 8080 ... 
                      Server started ...
                      Connecting socket for: updatenotification
                      Connecting socket for: newsfeed
                      Starting module: newsfeed
                      Connecting socket for: MMM-NetworkConnection
                      MMM-NetworkConnection helper started ...
                      Connecting socket for: MMM-Hotword
                      [HOTWORD] MMM-Hotword starts
                      Connecting socket for: MMM-AssistantMk2
                      Sockets connected & modules started ...
                      Launching application.
                      Create new news fetcher for url: https://www.francetvinfo.fr/titres.rss - Interval: 300000
                      [AMK2] Recipe is loaded: hide_and_show_all_modules.js
                      [AMK2] Recipe is loaded: reboot.js
                      [AMK2] Recipe is loaded: screen_onoff.js
                      [AMK2] Recipe is loaded: shutdown.js
                      [HOTWORD] No model to load
                      [AMK2] Temporal storage directory is clearing.
                      [AMK2] assistant ready
                      /home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js: symbol lookup error: /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm-glibc/grpc_node.node: undefined symbol: __atomic_store_8
                      npm ERR! file sh
                      npm ERR! code ELIFECYCLE
                      npm ERR! errno ENOENT
                      npm ERR! syscall spawn
                      npm ERR! magicmirror@2.9.0 start: `sh run-start.sh`
                      npm ERR! spawn ENOENT
                      npm ERR! 
                      npm ERR! Failed at the magicmirror@2.9.0 start script.
                      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                      
                      npm ERR! A complete log of this run can be found in:
                      npm ERR!     /home/pi/.npm/_logs/2019-12-04T14_51_36_364Z-debug.log
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @Ayos53
                        last edited by

                        @Ayos53 said in The latest Install Guide (MM w/ Google Assistant):

                        home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js: symbol lookup error: /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm-glibc/grpc_node.node: undefined symbol: __atomic_store_8

                        that is the error

                        this is a known problem, one of the services the module depends on has a bug,

                        @Sean will need to give the answer, as I don’t see a specific set of steps to resolve it

                        the ‘fix’ is to downgrade the grpc module to version 1.23 (from 1.24 u are on now)

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        A 1 Reply Last reply Reply Quote 0
                        • A Offline
                          Ayos53 @sdetweil
                          last edited by

                          @sdetweil

                          the ‘fix’ is to downgrade the grpc module to version 1.23 (from 1.24 u are on now)

                          ok no problem but, i don’t know how do this

                          S ? 2 Replies Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @Ayos53
                            last edited by sdetweil

                            @Ayos53 me either… there are a number of steps, but I don’t know them all
                            thats why we need @Sean help

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

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

                              @Ayos53
                              read this
                              https://github.com/eouia/MMM-AssistantMk2/tree/master#some-more-troubleshooting

                              first part of “some more troubleshooting”

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                Ayos53 @sdetweil
                                last edited by

                                @sdetweil
                                Its ok now i follow this post :
                                https://github.com/eouia/MMM-AssistantMk2/issues/231

                                Now the mirror start without error.
                                I have a new problem : the assistant not respond when i say “jarvis”
                                but if i click on the logo, it’s ok.
                                Problem with Hotword ?

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  jims
                                  last edited by

                                  Hello ! I have a problem with this topic haha I install all in my magic mirror, but I don’t have a icon google assistant on my screen…
                                  Everythings is ok until step 7. I test with the command “node auth_and_test.js” and it’s okay. I don’t understand why I don’t have icon google on my screen…
                                  Can you help me please? how can I check ?
                                  Sorry for my english, I’m french :P

                                  			module: "MMM-Hotword",
                                  			config: {
                                  				record: {
                                  					recordProgram : "arecord",  
                                  					device        : "plughw:1"
                                  				},
                                  				autostart:true,
                                  				onDetected: {
                                  					notification: (payload) => {
                                  					return "ASSISTANT_ACTIVATE"
                                  					},
                                  					payload: (payload) => {
                                  						return {
                                  						  profile: payload.hotword
                                  						}
                                  					}
                                  				},
                                  			},
                                  		},
                                  		{
                                  			module: "MMM-AssistantMk2",
                                  			position: "bottom_bar",
                                  			config: {
                                  				deviceLocation: {
                                  					coordinates: { // set the latitude and longitude of the device to get localized information like weather or time. (ref. mygeoposition.com)
                                  					latitude: 45.5662672, // -90.0 - +90.0
                                  					longitude: 5.9203636, // -180.0 - +180.0
                                  					},
                                  				},
                                  				record: {
                                  					recordProgram : "arecord",  
                                  					device        : "plughw:1",
                                  				},
                                  				notifications: {
                                  					ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
                                  					ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
                                  				},
                                  				useWelcomeMessage: "brief today",
                                  				profiles: {
                                  					"default" : {
                                  						lang: "en-US"
                                  					}
                                  				},
                                  			}
                                  		},
                                  
                                  ? 1 Reply Last reply Reply Quote 0
                                  • ? Offline
                                    A Former User @jims
                                    last edited by A Former User

                                    @jims
                                    You are using V2 configuration. It was updated recently to V3. Read the docs of MMM-Hotword and MMM-AssistantMk2.

                                    J K 2 Replies Last reply Reply Quote 0
                                    • J Offline
                                      jims @Guest
                                      last edited by

                                      @Sean said in The latest Install Guide (MM w/ Google Assistant):

                                      MMM-Hotword

                                      Ok thanks for your reply. So I have to install Hotword and AssistantMk2 in V3. I have to remove the older before ?
                                      Thanks!

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

                                        @jims
                                        For AMK2, backup your credentials.json and profiles. Then, remove old one, reinstall freshly. (Don’t worry, It becomes easier with new installer)
                                        For Hotword, I think git pull would be enough, but if you want, reinstall freshly.

                                        J 1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          jims @Guest
                                          last edited by

                                          @Sean Thanks! I test and I will tell you if everithings it’s okay!

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

                                            Hi Huys, I am trying to follow this guide however I have trouble finding some of the folders after the install.

                                            In Step 5: The path ~/MagicMirror/modules/MMM-Hotword/node_modules/snowboy does not exist. I found Snowboy in ~/MagicMirror/modules/MMM-Hotword/snowboy instead.

                                            In Step 5 after installing the assistant, I cannot find the folder scripts in ~/MagicMirror/modules/MMM-AssistantMk2 to make them executable.

                                            Does anyone have an idea why that could be? I am running the latest Rasbian Buster distribution.

                                            Best Regards
                                            MilkShake

                                            ? 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
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • 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