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 632.1k 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.
    • ? Offline
      A Former User @tanvir586
      last edited by

      @tanvir586

      Read this doc.
      https://developers.google.com/assistant/sdk/guides/service/python/embed/register-device

      1 Reply Last reply Reply Quote 0
      • T Offline
        tanvir586
        last edited by

        Ive already registered. But now i can’t find the model id.

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

          @tanvir586
          0_1575297171747_ef28bbf2-1619-4e91-9491-e5a4aa58b08a-image.png

          T J 2 Replies Last reply Reply Quote 0
          • T Offline
            tanvir586 @Guest
            last edited by

            @Sean thanks for reply.
            My screen is like this.!0_1575303692872_Screenshot_20191202-162015_Samsung Internet.jpg
            I don’t have registration section.

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

              @tanvir586 back a couple pages, you created an application, right?

              at https://console.actions.google.com/u/0/?pli=1

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • T Offline
                tanvir586
                last edited by

                Sorry guys i think i didn’t register it.
                I followed this video https://youtu.be/UBgH5hejYtM.

                1 Reply Last reply Reply Quote 0
                • K Offline
                  Keith @Guest
                  last edited by

                  @Sean I’ll give that a try and let you know. Thanks

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    Keith @Guest
                    last edited by

                    @Sean I got it working, thanks for your help. The code that worked for me is below

                    command: {
                          "HIDECALENDAR": {
                              moduleExec: {
                                   module:()=>{
                          return []
                        }, // For all modules,
                                  exec: (module, params, key) => {
                                      if (module.name == "MMM-GooglePhotos") { // if module name is...
                                          module.show()
                                      }
                                      if (module.name == "MMM-CalendarExt2") {
                                          module.hide()
                                      }
                                  }
                              }
                          },
                          "SHOWCALENDAR": {
                              moduleExec: {
                                   module:()=>{
                          return []
                        }, // For all modules,
                                  exec: (module, params, key) => {
                                      if (module.name == "MMM-GooglePhotos") { // if module name is...
                                          module.hide()
                                      }
                                      if (module.name == "MMM-CalendarExt2") {
                                          module.show()
                                      }
                                  }
                              }
                    
                          }
                      }
                    
                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tanvir586
                      last edited by

                      Is it possible to make AssistantMk2 to show my ip camera feed? If i ask AssistantMk2 to show my front door, it says to select output display.

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

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          juantata
                          last edited by

                          Good. I have a problem, it has started happening today.

                          pi@raspberrypi:~/MagicMirror $ npm start

                          magicmirror@2.8.0 start /home/pi/MagicMirror
                          sh run-start.sh

                          Starting MagicMirror: v2.8.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.
                          Initializing new module helper …
                          Module helper loaded: calendar
                          No helper found for module: compliments.
                          No helper found for module: currentweather.
                          No helper found for module: weatherforecast.
                          Initializing new module helper …
                          Module helper loaded: MMM-GoogleMapsTraffic
                          No helper found for module: MMM-YouTube.
                          No helper found for module: MMM-connection-status.
                          Initializing new module helper …
                          Module helper loaded: newsfeed
                          Initializing new module helper …
                          Module helper loaded: MMM-Remote-Control
                          Initializing new module helper …
                          Module helper loaded: MMM-Hotword
                          Initializing new module helper …
                          Module helper loaded: MMM-AssistantMk2
                          Initializing new module helper …
                          Module helper loaded: MMM-Spotify
                          All module helpers loaded.
                          Starting server on port 8080 …
                          You’re using a full whitelist configuration to allow for all IPs
                          Server started …
                          Connecting socket for: updatenotification
                          Connecting socket for: calendar
                          Starting node helper for: calendar
                          Connecting socket for: MMM-GoogleMapsTraffic
                          Starting node_helper for module: MMM-GoogleMapsTraffic
                          Connecting socket for: newsfeed
                          Starting module: newsfeed
                          Connecting socket for: MMM-Remote-Control
                          Starting node helper for: MMM-Remote-Control
                          Connecting socket for: MMM-Hotword
                          [HOTWORD] MMM-Hotword starts
                          Connecting socket for: MMM-AssistantMk2
                          Connecting socket for: MMM-Spotify
                          [SPOTIFY_AUTH] Token is fresh.
                          Sockets connected & modules started …
                          Launching application.
                          ERROR! Could not find main module js file for pir
                          Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/juanan+++ioiglesias21%40gmail.com/private-225241cce3b9ecf***011ef3193f0934/basic.ics - Interval: 300000
                          Working notification system. Notification: MMM-GOOGLE_MAPS_TRAFFIC-GET payload: { style: ‘standard’ }
                          Create new news fetcher for url: https://okdiario.com/feed - Interval: 300000
                          [AMK2] Recipe is loaded: hide_and_show_all_modules.js
                          [AMK2] Recipe is loaded: reboot.js
                          [AMK2] Recipe is loaded: recipe.template.js
                          [AMK2] Recipe is loaded: screen_onoff.js
                          [AMK2] Recipe is loaded: shutdown.js
                          [AMK2] Recipe is loaded: spotify.js
                          [AMK2] Temporal storage directory is clearing.
                          [HOTWORD] begins.
                          [HOTWORD] Detector starts listening.
                          [HOTWORD] stops.
                          [HOTWORD] Final Result: { detected: false }
                          [AMK2] assistant ready
                          [AMK2] Conversation starts.
                          [AMK2] Started with text query: brief today
                          { requestId: ‘5deab96c-0000-2e12-9cee-f403043d40d8’ } { profileFile: ‘default.json’, lang: ‘es-ES’ }
                          [AMK2] Device Action: { requestId: ‘5deab96c-0000-2e12-9cee-f403043d40d8’ }
                          [AMK2] Assistant Text Response:
                          [AMK2] Conversation Completed
                          [HOTWORD] begins.
                          [HOTWORD] Detector starts listening.
                          [HOTWORD] Final Result: { detected: false }
                          [AMK2] assistant ready
                          [AMK2] Conversation starts.
                          [AMK2] Assistant Text Response:
                          [AMK2] Conversation Error: { Error: 14 UNAVAILABLE: Service unavailable.
                          at Object.exports.createStatusError (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/common.js:91:15)
                          at ClientDuplexStream._emitStatusIfDone (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client.js:233:26)
                          at ClientDuplexStream._receiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client.js:211:8)
                          at Object.onReceiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:1306:15)
                          at InterceptingListener._callNext (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:568:42)
                          at InterceptingListener.onReceiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:618:8)
                          at /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:1123:18
                          code: 14,
                          metadata:
                          Metadata { _internal_repr: { ‘content-disposition’: [Array] }, flags: 0 },
                          details: ‘Service unavailable.’ }
                          [HOTWORD] begins.
                          [HOTWORD] Detector starts listening.
                          [HOTWORD] Final Result: { detected: false }
                          [AMK2] assistant ready
                          [AMK2] Conversation starts.
                          [AMK2] Assistant Text Response:
                          [AMK2] Conversation Error: { Error: 14 UNAVAILABLE: Service unavailable.
                          at Object.exports.createStatusError (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/common.js:91:15)
                          at ClientDuplexStream._emitStatusIfDone (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client.js:233:26)
                          at ClientDuplexStream._receiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client.js:211:8)
                          at Object.onReceiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:1306:15)
                          at InterceptingListener._callNext (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:568:42)
                          at InterceptingListener.onReceiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:618:8)
                          at /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:1123:18
                          code: 14,
                          metadata:
                          Metadata { _internal_repr: { ‘content-disposition’: [Array] }, flags: 0 },
                          details: ‘Service unavailable.’ }
                          [HOTWORD] begins.
                          [HOTWORD] Detector starts listening.
                          [HOTWORD] Final Result: { detected: false }
                          ^C
                          pi@raspberrypi:~/MagicMirror $

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

                            @Sean
                            Good. I have a problem, it has started happening today.

                            Today’s summary works perfectly, but then the microphone does not listen and therefore there is no conversation.

                            pi@raspberrypi:~/MagicMirror $ npm start

                            magicmirror@2.8.0 start /home/pi/MagicMirror
                            sh run-start.sh

                            Starting MagicMirror: v2.8.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.
                            Initializing new module helper …
                            Module helper loaded: calendar
                            No helper found for module: compliments.
                            No helper found for module: currentweather.
                            No helper found for module: weatherforecast.
                            Initializing new module helper …
                            Module helper loaded: MMM-GoogleMapsTraffic
                            No helper found for module: MMM-YouTube.
                            No helper found for module: MMM-connection-status.
                            Initializing new module helper …
                            Module helper loaded: newsfeed
                            Initializing new module helper …
                            Module helper loaded: MMM-Remote-Control
                            Initializing new module helper …
                            Module helper loaded: MMM-Hotword
                            Initializing new module helper …
                            Module helper loaded: MMM-AssistantMk2
                            Initializing new module helper …
                            Module helper loaded: MMM-Spotify
                            All module helpers loaded.
                            Starting server on port 8080 …
                            You’re using a full whitelist configuration to allow for all IPs
                            Server started …
                            Connecting socket for: updatenotification
                            Connecting socket for: calendar
                            Starting node helper for: calendar
                            Connecting socket for: MMM-GoogleMapsTraffic
                            Starting node_helper for module: MMM-GoogleMapsTraffic
                            Connecting socket for: newsfeed
                            Starting module: newsfeed
                            Connecting socket for: MMM-Remote-Control
                            Starting node helper for: MMM-Remote-Control
                            Connecting socket for: MMM-Hotword
                            [HOTWORD] MMM-Hotword starts
                            Connecting socket for: MMM-AssistantMk2
                            Connecting socket for: MMM-Spotify
                            [SPOTIFY_AUTH] Token is fresh.
                            Sockets connected & modules started …
                            Launching application.
                            ERROR! Could not find main module js file for pir
                            Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/juanan+++ioiglesias21%40gmail.com/private-225241cce3b9ecf***011ef3193f0934/basic.ics - Interval: 300000
                            Working notification system. Notification: MMM-GOOGLE_MAPS_TRAFFIC-GET payload: { style: ‘standard’ }
                            Create new news fetcher for url: https://okdiario.com/feed - Interval: 300000
                            [AMK2] Recipe is loaded: hide_and_show_all_modules.js
                            [AMK2] Recipe is loaded: reboot.js
                            [AMK2] Recipe is loaded: recipe.template.js
                            [AMK2] Recipe is loaded: screen_onoff.js
                            [AMK2] Recipe is loaded: shutdown.js
                            [AMK2] Recipe is loaded: spotify.js
                            [AMK2] Temporal storage directory is clearing.
                            [HOTWORD] begins.
                            [HOTWORD] Detector starts listening.
                            [HOTWORD] stops.
                            [HOTWORD] Final Result: { detected: false }
                            [AMK2] assistant ready
                            [AMK2] Conversation starts.
                            [AMK2] Started with text query: brief today
                            { requestId: ‘5deab96c-0000-2e12-9cee-f403043d40d8’ } { profileFile: ‘default.json’, lang: ‘es-ES’ }
                            [AMK2] Device Action: { requestId: ‘5deab96c-0000-2e12-9cee-f403043d40d8’ }
                            [AMK2] Assistant Text Response:
                            [AMK2] Conversation Completed
                            [HOTWORD] begins.
                            [HOTWORD] Detector starts listening.
                            [HOTWORD] Final Result: { detected: false }
                            [AMK2] assistant ready
                            [AMK2] Conversation starts.
                            [AMK2] Assistant Text Response:
                            [AMK2] Conversation Error: { Error: 14 UNAVAILABLE: Service unavailable.
                            at Object.exports.createStatusError (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/common.js:91:15)
                            at ClientDuplexStream._emitStatusIfDone (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client.js:233:26)
                            at ClientDuplexStream._receiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client.js:211:8)
                            at Object.onReceiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:1306:15)
                            at InterceptingListener._callNext (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:568:42)
                            at InterceptingListener.onReceiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:618:8)
                            at /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:1123:18
                            code: 14,
                            metadata:
                            Metadata { _internal_repr: { ‘content-disposition’: [Array] }, flags: 0 },
                            details: ‘Service unavailable.’ }
                            [HOTWORD] begins.
                            [HOTWORD] Detector starts listening.
                            [HOTWORD] Final Result: { detected: false }
                            [AMK2] assistant ready
                            [AMK2] Conversation starts.
                            [AMK2] Assistant Text Response:
                            [AMK2] Conversation Error: { Error: 14 UNAVAILABLE: Service unavailable.
                            at Object.exports.createStatusError (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/common.js:91:15)
                            at ClientDuplexStream._emitStatusIfDone (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client.js:233:26)
                            at ClientDuplexStream._receiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client.js:211:8)
                            at Object.onReceiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:1306:15)
                            at InterceptingListener._callNext (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:568:42)
                            at InterceptingListener.onReceiveStatus (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:618:8)
                            at /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:1123:18
                            code: 14,
                            metadata:
                            Metadata { _internal_repr: { ‘content-disposition’: [Array] }, flags: 0 },
                            details: ‘Service unavailable.’ }
                            [HOTWORD] begins.
                            [HOTWORD] Detector starts listening.
                            [HOTWORD] Final Result: { detected: false }
                            ^C
                            pi@raspberrypi:~/MagicMirror $

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

                              @juantata
                              Just remove useWelcomeMessage. That feature needs more configuration when using together MMM-Hotword. Not difficult but if you don’t understand what’s going on, just remove it.

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

                                @Sean
                                Thanks for the reply. But one question, if there has never been a problem with the daily summary, why now?

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

                                  @juantata
                                  Just random.
                                  When using useWelcomMessage, MMM-Hotword’s Mic should be closed. But by physical limitation, Sometimes MMM-Hotword’s mic was not completely closed when MMM-AssistantMk2 activation started. It’s not unpredictable. On the next version, it will be solved.

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

                                    @Sean
                                    Hi. Thanks for the reply, but I still have the same error

                                    0_1575896747628_b9dad2a7-35d5-4bf8-9275-a101f9d2b060-image.png

                                    0_1575896630454_096f2712-ed50-404c-a95d-0c7f7de20357-image.png

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

                                      @Sean
                                      Hi. Sorry for the insistence. I also show you the MMM-Hotword

                                      0_1575897391196_b438bb00-0321-498f-9dd9-52bc118b0cf8-image.png

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

                                        @juantata
                                        What are you using as Mic? That error happens when your mic is not working properly.
                                        Show me the result of arecord -l. Did you something on ALSA setup?

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

                                          @Sean
                                          Hi. Thank you for your interest in solving my problem. I realized that what didn’t work was the usb extension cable. Now what goes wrong is the connection between the MMM-Hotword keyword and the questions that can be asked.

                                          0_1575905110988_01ad4bb6-e448-4c4c-b0f4-2944f2a160fb-image.png

                                          I send you an image, so you can see it. I have to click with the mouse to put the microphone image

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

                                            @juantata
                                            I need log when it is executed. To make things simple, remove all other modules from config.js except MMM-Hotword, MMM-AssistantMk2 and clock. Then try again and show me the logs.

                                            J 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
                                            • 17
                                            • 18
                                            • 19
                                            • 20
                                            • 21
                                            • 22
                                            • 19 / 22
                                            • 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