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.

    Working Google-Assistant on Raspbian Buster and 4b

    Scheduled Pinned Locked Moved General Discussion
    19 Posts 4 Posters 4.3k Views 3 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
      MilkShake
      last edited by

      Hi,
      I think I got MMM-AssistantMk2 and Bugsounet’s https://github.com/bugsounet/addons installed successfully! Used the same credentials.json file as I used in the other Assistant setup and tested with node auth_and_test.js.

      It’s can become quite confusing with all these modules and addons. Can anyone elaborate on what is needed configuration wise, to allow for voice activation of AssistantMk2.

      I guess addons need to be activated for Assistant and HotWord needs a configuration of sorts. I will have a look at this later.

      Best
      MilkShake

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

        @MilkShake I tried editing my config.js with the following:

                    {
                    module: "MMM-Hotword",
                    position: "top_left",
                    config: {
                            recipes: ["with-AMk2v3_smart-mirror.js"],
        
                            }
                    },
        
        
                    {
                    module: "MMM-AssistantMk2",
                    position: "top_left",
                    config: {
                            assistantConfig: {
                                    latitude: 55.749842,
                                    longitude: 12.497128,
                            },
                            recipes: [ "with-MMM-Hotword.js" ],
                            addons: true,
                            },
                    },
        

        But it crashes my MagicMirror. If I remove “addons: true,” the mirror starts and the two top_left positions are empty.

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

          hi, i have a lot of time … [#StayInHome #COVID19]
          so i can help you to configure from begining

          1. what addons do you want to use ?
          2. AMk2 don’t show icon by default, just because default interface is like Google Nest
            so i will be showing only when activating by hotkey
          M 1 Reply Last reply Reply Quote 1
          • M Offline
            MilkShake @Guest
            last edited by

            @Bugsounet Hi. Thanks a bunch. Something good from the virus, hurray!

            So the mirror functions with a PIR sensor installed in the frame. It hangs where there is a lot of traffic, so a hand gesture along side the frame activates the screen using DPMS -> DISPLAY=:0 xset dpms force on (only way I could get the screen to turn on again was with DPMS). No movement and the mirror turns on again in x time.

            So what I would like to accomplish is, when the screen is activated, it should start listening for a google assistant hotword.

            Would that be Hotword and PIR? Depending on how Assistant2Display works, that could be interesting as well, but for now, I just want to get it working.

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

              actually, i can’t do this (not coded)

              I have coded this:

              • wake up screen with voice (when calling assistant)
              • delay turn off screen if mirror is not used
              • if used pir detector : wake up the screen
              • if used snowboy or MMM-Hotword and pi sensor : keyword activator is turn off when not used and need pir sensor to wake up

              you can do that what addon ;)

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

                @MilkShake
                You can emit HOTWORD_PAUSE and HOTWORD_RESUME notification when you need if your PIR module could emit these notifications. Or to translate different notifications through MMM-NotificationTrigger.

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

                  @Bugsounet

                  • if used snowboy or MMM-Hotword and pi sensor : keyword activator is turn off when not used and need pir sensor to wake up

                  you can do that what addon ;)

                  Does the keyword activator (I guess that is the code listening for a keyword?) pay a toll on the electrical bill and thus, you would like to turn it off?

                  Isn’t the snowboy/HotWord, PIR sensor and governor combo a means of achieving that?

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

                    @Sean So the python script that wakes up my screen along with the PIR, could potentially also emit a HOTWORD_RESUME and HOTWORD_PAUSE to the assistant along with executing a shellscript for turning on/off the screen. That sounds like the right way to go, but I have no clue how to do that and not enough time to figure it out :)

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

                      We solves the problem by instant messaging ;)

                      And all works

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

                        @Bugsounet
                        Share your works even briefly for others. :)

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

                          for resume :

                          @MilkShake have a misconfig MMM-Hotword and turn on all AMk2 addons (include snowboy and porcupine)

                          so i will never works like this.

                          We change like this:
                          desactived MMM-Hotword
                          used: snowboy addons with “computer” keyword, Assistant2Display addons

                          and works:
                          notes : he have an RPI 4 (4go) , he use pir sensor.

                          he send me his screen monitoring to add it in screen addon
                          I rewrite screen addon for solve screen issue
                          because actually only RPI3 is supported

                          we will try screen/pir addon with his config tomorrow for sync with all AMk2 addon (Assistant2Display inclued)

                          and he should have CPU less (and electricity) usage on screen sleeping:

                          • when screen is on (wake up by pir sensor) snowboy will be on and display on
                          • when screen if off (setting by inused delay) -> all module is hidden, display is off and snowboy is off

                          it’s actualy my personnal AMk2 config

                          Edit:
                          we finish the configuration and everything works ;)
                          now screen/pir are linked to snowboy and Assistant2Display for more cpu save (and electricity)

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

                            It works really well now. Mirror and assistant/addons turns on when the pir detects motion. Awesome combo of AssistantMk2 and Addons.

                            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 / 1
                            • 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