Read the statement by Michael Teeuw here.
Voice Control on MagicMirror Synology Docker
-
@egnos ok, so you would run MM in server mode… no UI locally
where would mic be located? where pi is located?
— someone posted a while back about using server side voice reco …
https://forum.magicmirror.builders/topic/14499/mmm-googleassistant-in-server-mode/10?page=1then PIR would be here too… don’t know how to remote this from UI PI to server on the synology server
‘assign’ usb to docker container was what I said maybe you don’t have to do, the container might see it…
but the mic is on the front end and the server is on the other side of the room (or upstairs, ie, not side by side with PI running UI)
-
@sdetweil said in Voice Control on MagicMirror Synology Docker:
@egnos ok, so you would run MM in server mode… no UI locally
Yes!
Thanks @sdetweil for the post, I just read but in my opinion @martinhood’s solution is not very stable.
At this point I was thinking of a solution like this:
- With Google Home / Alexa Echo Dot positioned near the RPi Client, I send voice commands to the MM Server in the Synology (I don’t know how to do it …)
- MM Server in Synology respond to requests (MM switch page, MM turn on, MM turn off, MM youtube, etc …).
- MM Server, MM Client and Google Home / Alexa Echo Dot connected in the same network with router
-
@egnos said in Voice Control on MagicMirror Synology Docker:
MM Server in Synology respond to requests (MM switch page, MM turn on, MM turn off, MM youtube, etc …).
no… in server mode that code is not running. those are web page components of the modules, so only running on the PI browser…
-
@sdetweil said in Voice Control on MagicMirror Synology Docker:
no… in server mode that code is not running. those are web page components of the modules, so only running on the PI browser…
If I understand correctly, when the MM is in “Server Mode” inside the Synology, it is not possible to send requests and therefore not receive replies? Correct?
-
@egnos well, voice reco and PIR support run on the server side of mm.
their module design assumes the hardware is near the user, which makes the server side near the user. PIR requires use of the gpio pins on pi, or physical connections on an Arduino processor.
so to have the input devices near the user (mm browser only) and processing on the synology server (mm server in docker) somewhere else will require quite a bit of re-engeneering, and still some additional hardware for PIR type sensors
-
I run mine in Docker on my Synology. Use a pi behind the mirror for viewing with PIR hooked up to it.
As for voice, yeah you might be outta luck there.
-
@cyberphox said in Voice Control on MagicMirror Synology Docker:
Use a pi behind the mirror for viewing with PIR hooked up to it.
so you use a python script to handle PIR screen on/off, not a MagicMirror module, right?
-
@sdetweil said in Voice Control on MagicMirror Synology Docker:
esign assumes the hardware is near
To solve the PIR problem I could wire the sensor to the GPIO of the Raspberry connected to the monitor (away from the Raspberry Server on the Synology) and turn the monitor off / on using a few lines of code (something I should find on the internet … do you have any advice ?) that run externally to the MM.
For voice commands I would like to use GoogleHome/EchoDot Alexa (better quality of voice recognition, integrated speaker, google/alexa functions, etc …) to send commands to the MM Server.
This last part is still being studied … I see that someone on the forum has tried the GH-MM combination but I don’t see many results … -
@egnos alexa, use MMM-AlexaControl, but it sends to the server side.
so you could run FULL MM on synology and view on pi same as before.
PIR … quick search turns up lots of python based solutions
-
@cyberphox said in Voice Control on MagicMirror Synology Docker:
I run mine in Docker on my Synology. Use a pi behind the mirror for viewing with PIR hooked up to it.
Very Good
@cyberphox said in Voice Control on MagicMirror Synology Docker:
As for voice, yeah you might be outta luck there.
I know it! Someone on the forum has done something … but there is no feedback !