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

MMM-AssistantMk2

Scheduled Pinned Locked Moved System
421 Posts 61 Posters 513.9k Views 57 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.
  • M Offline
    mirror.master
    last edited by Sep 24, 2018, 8:40 AM

    dude try a: pm2 stop mm while ssh and then check your config. you are never stranded lol

    1 Reply Last reply Reply Quote 0
    • ? Offline
      A Former User @mirror.master
      last edited by A Former User Sep 24, 2018, 8:43 AM Sep 24, 2018, 8:41 AM

      @mirror-master said in MMM-AssistantMk2 & MMM-GAction:

      Dying to use this module, but im stuck on node auth_and_test.js i keep getting the GLIBBCXX_3.4.21 not found error. tried the solutions found on the module page and a few others spots. but to no avail. any suggestions?

      GLIBCXX problem shows your RPI doesn’t be running on Raspbian Stretch or proper dev-modules are not installed. My suggestion is… to use Stretch

      M 1 Reply Last reply Sep 29, 2018, 6:13 AM Reply Quote 0
      • M Offline
        mirror.master
        last edited by Sep 24, 2018, 8:44 AM

        upgrading now in hopes. thanks my friend. i have several pi’s with diff versions . when i was paranoid and less exp’d i was cloning my pie config, but forgot that one was jessie , one is stretch and another is whatever the hell i installed. Im pretty sure this is the older OS. Thanks again

        1 Reply Last reply Reply Quote 0
        • C Offline
          cola0927
          last edited by Sep 25, 2018, 3:12 AM

          @sean Keyboard input or mouse clicking had no effect, maybe because I missed the “rebuild binaries” step.

          So I started over again today and this time the microphone icon appeared after MMM-AssistantMk2 was installed, but couldn’t detect the voice, even after installed MMM-Hotword and MMM-NotificationTrigger.

          Here is my config.js, basically used default values.

          {
                                  module: "MMM-AssistantMk2",
                                  position: "lower_third",
                                  config: {
                                  }
                          },
                          {
                                  module: "MMM-Hotword",
                                  config: {
                                  }
                          }, 
                          {
                                  module: "MMM-NotificationTrigger",
                                  config: {
                                    triggers:[
                                      {
                                       trigger: "ASSISTANT_ACTION",
                                       triggerSenderFilter: (sender) => {
                                         console.log(sender)
                                         if (sender.name == 'MMM-AssistantMk2') {
                                           return true
                                         } else {
                                           return false
                                         }
                                        },
                                       triggerPayloadFilter: (payload) => {
                                         console.log(payload)
                                         return true
                                       },
                                       fires: [
                                         {
                                           fire:"SHOW_ALERT",
                                           payload: (payload) => {
                                             return {
                                               type: "notification",
                                               title: payload.type,
                                               message: payload.command
                                             }
                                           },
                                         },
                                       ],
                                     },
                                   ]
                                 }
          
                          },
          

          Could you please let me know which part(s) I should modify? Thank you!

          ? 1 Reply Last reply Sep 25, 2018, 7:53 AM Reply Quote 0
          • ? Offline
            A Former User @cola0927
            last edited by Sep 25, 2018, 7:53 AM

            @cola0927
            Your MMM-NotificationTrigger configuration is wrong.

            {
                  module: "MMM-NotificationTrigger",
                  config: {
                    triggers:[
                      {
                        trigger: "HOTWORD_DETECTED",
                        fires: [
                          {
                            fire:"HOTWORD_PAUSE",
            
                          },
                          {
                            fire:"ASSISTANT_ACTIVATE",
            		delay: 200,
                            payload: function(payload) {
                              return {
                                "profile": payload.hotword
                              }
                            }
                          },
                        ]
                      },
                      {
                        trigger: "ASSISTANT_DEACTIVATED",
                        fires: [
                          {
                            fire:"HOTWORD_RESUME"
                          }
                        ]
                      },
                    ]
                  }
            },
            

            Try this.

            C 1 Reply Last reply Sep 25, 2018, 5:37 PM Reply Quote 0
            • C Offline
              cola0927 @Guest
              last edited by Sep 25, 2018, 5:37 PM

              @sean Thank you for your prompt reply. I replaced my MMM-NotificationTrigger configuration, but still not working.

              In the terminal, it shows that

              assistant ready
              Conversation Error: { Error: 14 UNAVAILABLE: Service unavailable.
                  at Object.exports.createStatusError (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/common.js:87:15)
                  at ClientDuplexStream._emitStatusIfDone (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client.js:235:26)
                  at ClientDuplexStream._receiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client.js:213:8)
                  at Object.onReceiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:1290:15)
                  at InterceptingListener._callNext (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:564:42)
                  at InterceptingListener.onReceiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:614:8)
                  at /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:1110:18
                code: 14,
                metadata: Metadata { _internal_repr: {} },
                details: 'Service unavailable.' }
              
              

              Does it mean that something is incorrect in MMM-AssistantMk2?

              ? 2 Replies Last reply Sep 26, 2018, 7:09 AM Reply Quote 0
              • ? Offline
                A Former User @cola0927
                last edited by Sep 26, 2018, 7:09 AM

                @cola0927
                I think that might be the same issue with this;
                https://github.com/eouia/MMM-AssistantMk2/issues/16

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User @cola0927
                  last edited by A Former User Sep 26, 2018, 9:10 AM Sep 26, 2018, 8:48 AM

                  @cola0927
                  Or most of those cases are caused by your mic setup. Check your configuration whether record.device has a proper name. (If your mic is default device, leave that field as null but when your mic has another name like plughw:1, set that field with it.

                  C 1 Reply Last reply Sep 27, 2018, 3:43 AM Reply Quote 0
                  • C Offline
                    cola0927 @Guest
                    last edited by Sep 27, 2018, 3:43 AM

                    @sean After I changed the device name in both MMM-AssistantMk2 and MMM-Hotword, the module worked partially. I had to hit microphone icon to let its start listen to me, but that was a one-time response.
                    0_1538019668172_屏幕快照 2018-09-26 下午10.21.38.png
                    Do you have any idea what the problem is? Thank you so much.

                    ? 1 Reply Last reply Sep 27, 2018, 7:20 AM Reply Quote 0
                    • ? Offline
                      A Former User @cola0927
                      last edited by Sep 27, 2018, 7:20 AM

                      @cola0927
                      Show me your configuration related with MMM-NotificationTrigger. I think MMM-NotificationTrigger cannot relay the connection between Hotword and Assistant.

                      C 1 Reply Last reply Sep 27, 2018, 2:43 PM Reply Quote 0
                      • 1
                      • 2
                      • 7
                      • 8
                      • 9
                      • 10
                      • 11
                      • 42
                      • 43
                      • 9 / 43
                      9 / 43
                      • First post
                        87/421
                        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