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-Hotword,MMM-AssistanMk2 Hotword no Funktion

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    50 Posts 5 Posters 16.5k Views 5 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 @guongthongminh
      last edited by

      @guongthongminh
      Do you mean, you want to show specific web page when you say hotword?
      In that case, which module are you using to show web page?

      G 1 Reply Last reply Reply Quote 0
      • G Offline
        guongthongminh @Guest
        last edited by

        @Sean Can I use the default browser, Chromium?
        MMM-PageReader is also possible.
        Sorry for not good at english!

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

          @guongthongminh
          First, using default Browser(Chromium) is not so good idea. You could lose control.
          I’m reading MMM-PageReader(https://github.com/dgburr/MMM-PageReader) now, it seems possible to use.

          models: [
            {
              hotwords    : "smart_mirror",
              file        : "smart_mirror.umdl",
              sensitivity : "0.5",
            },
            // You can add more models here.
          ],
          commands: {
            "smart_mirror": {
              notificationExec: {
                notification: "PAGE_READER_LOAD",
                payload: "https://forum.magicmirror.builders/topic...."
              }
            },
          // You can add more commands here
          }
          

          In this example, you can activate MMM-PageReader with hotword “smart mirror”. Not tested, but ideally working like this.

          G S 3 Replies Last reply Reply Quote 0
          • G Offline
            guongthongminh @Guest
            last edited by

            @Sean Thank you very much!
            Let me try and see how I hope it will look perfect

            1 Reply Last reply Reply Quote 0
            • G Offline
              guongthongminh @Guest
              last edited by

              @Sean Is my config file ok?
              I think it’s almost not working, please help me!
              alt text

              ? 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Guest
                last edited by

                @Sean said in MMM-Hotword,MMM-AssistanMk2 Hotword no Funktion:

                First, using default Browser(Chromium) is not so good idea. You could lose control.

                on the armv6 processors (pi 0, 1 and some 3), the electron browser is no longer available at the newer node versions (>8) we are running on 10, so they have to use some other browser and serveronly split mode

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                G 1 Reply Last reply Reply Quote 0
                • G Offline
                  guongthongminh @sdetweil
                  last edited by

                  @sdetweil Can you be more specific? Can you help me finish my project because I’m interested in it !!!

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @guongthongminh
                    last edited by

                    @guongthongminh I dont think this is your problem

                    you have two models: [] sections above

                    one that says the hotword is smart_mirror

                    and one that says “tin_tuc”

                    I don’t know which became active…
                    just take the

                    {   
                        hotwords: "tin tuc", 
                        file:   .., 
                        sensitivity: "0.5"
                    },
                    

                    and put it into the the models array above

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    G 1 Reply Last reply Reply Quote 0
                    • G Offline
                      guongthongminh @sdetweil
                      last edited by

                      @sdetweil The hot word is “hotword” for using mmm-asisstantMK2
                      hot word “tun tuc” to call mmm-pagereader
                      The result I want it like this https://www.youtube.com/watch?v=xdLz0bdxO58
                      Can you help me because I don’t know much about this!

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @guongthongminh
                        last edited by

                        @guongthongminh sorry, I cannot help…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          guongthongminh
                          last edited by

                          @Sean
                          I really need your support !!! Please

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

                            @guongthongminh
                            You did define models twice, so previous one (“smart_mirror”) is ignored.
                            do like this; (I wrote You can add more models here but you might not see.)

                            models: [
                              {
                                hotwords: "smart_mirror",
                                ...
                              },
                              {
                                hotwords: "tin_tuc",
                                ...
                              },
                            ],
                            
                            G 1 Reply Last reply Reply Quote 0
                            • G Offline
                              guongthongminh @Guest
                              last edited by

                              @Sean I fixed this but still could not get the MMM-PageReader module to appear on the screen. Could the cause be from the MMM-PageReader modules?
                              alt text

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

                                @guongthongminh
                                Don’t do what you can’t understand.

                                I wrote in my earlier answer, payload was something like this;

                                payload: "URL TO OPEN",
                                

                                But in your last post, you did like this;

                                payload: (detected, afterRecord) => { ... }
                                

                                It doesn’t make sense.

                                G 1 Reply Last reply Reply Quote 0
                                • G Offline
                                  guongthongminh @Guest
                                  last edited by

                                  @Sean Sorry, I tried this but the result is still the same
                                  alt text

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

                                    @guongthongminh
                                    Let’s check. See the backend logs and the frontend logs.

                                    1. Hotword tin_tuc was caught normally? (You can check the result on backend log)
                                      1. If so, notification was emitted normally? (You can check it on frontend log)
                                        1. if so, well, that’s not my business. Maybe MMM-PageReader has some issue about using notification.
                                        2. If not, you probably have some error(s) on frontend to prevent working of module. Solve them first.
                                      2. If not, you should solve the hotword issue first. maybe your tin_tuc.pmdl was not catchable.
                                    G 1 Reply Last reply Reply Quote 0
                                    • G Offline
                                      guongthongminh @Guest
                                      last edited by

                                      @Sean The mirror receives and answers like this: “This feature is not yet supported on this device”. I cannot determine the cause.

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

                                        @guongthongminh ??? where did you see that message?

                                        G 1 Reply Last reply Reply Quote 0
                                        • G Offline
                                          guongthongminh @Guest
                                          last edited by

                                          @Sean google assistant said

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

                                            @guongthongminh
                                            ??? You are working about MMM-Hotword, not MMM-AssistantMk2 right?
                                            If Google says something, you’ve activated MMM-AssistantMk2. It means…
                                            You played like this? "smart mirror, tin tuc!"? This is not the usage you are doing.
                                            I answered How to use hotword to control other modules until now, and your current approach is totally wrong.
                                            So what you want exactly? Using Google Assistant to tin tuc? (I think its not needed because you’ve already your .pmdl made)

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