@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 :)
Read the statement by Michael Teeuw here.
Posts
-
RE: Working Google-Assistant on Raspbian Buster and 4b
-
RE: Working Google-Assistant on Raspbian Buster and 4b
- 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?
-
RE: Working Google-Assistant on Raspbian Buster and 4b
@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.
-
RE: Working Google-Assistant on Raspbian Buster and 4b
@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.
-
RE: Working Google-Assistant on Raspbian Buster and 4b
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 -
RE: Working Google-Assistant on Raspbian Buster and 4b
@Bugsounet That seems like a good way to go! I’m mostly just after the voice activation for the Assistant, but I’ll go with anything that works. So would the process be:
- Install MMM-AssistantMk2 from https://github.com/eouia/MMM-AssistantMk2/wiki/Installation
- Install MMM-AssistantMk2 Plugins embedded with addons.js from https://github.com/bugsounet/addons
?
Thanks for all the help guys!
-
RE: Working Google-Assistant on Raspbian Buster and 4b
@Sean said in Working Google-Assistant on Raspbian Buster and 4b:
@MilkShake
Hotword is just one method to activate amk2. If you prefer, any other methods can be used. - touchscreen button, hw button, sensors like pir, 3d gesture detector, touchscreen gesture, finger snapping, or Any module can emit some notifications of MagicMirror.Yes ok :) I would like to be able to enable the Assistant using voice, so HotWord seems like the way to go. The mirror has a pir sensor also for turning on the screen, built into the side of the frame, so it can be activated by hand movement.
Since I managed to get the regular assistant working on the PI, I will have a go at Assistant-Mk2 and HotWord tonight. Hopefully it will just install :)
-
RE: Working Google-Assistant on Raspbian Buster and 4b
@Chris Hey, thanks man! A little bit disheartening after getting it to work on the pi, but I will definitely restore the pi once again and give it a try. Am I right in understanding that you need some software to listen for an activation command, e.i. HotWord? I think I succeeded in installing MMM-AssistantMk2 earlier, but I did not get HotWord to work, after which I gave up.
-
Working Google-Assistant on Raspbian Buster and 4b
Hi All,
I have a Magic Mirror installation running on the new Rasp4b and Rasbian Buster. I tried getting MMM-AssistantMk2 and MMM-Hotword working using various documents on here, but could not get it to work, so I tried another route -> getting Google Assistant to work on the Raspberry. It works now.Is there any way from going from a working google assistant to implement it into the Magic Mirror and can anyone point me in the right direction?
Best Regards and thanks!
Milkshake -
RE: The latest Install Guide (MM w/ Google Assistant)
@Sean Ok, Thank you dude. I will put more effort into it :)