• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Voice Control on MagicMirror Synology Docker

Scheduled Pinned Locked Moved Hardware
14 Posts 3 Posters 2.9k Views 4 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.
  • E Offline
    Egnos @sdetweil
    last edited by Aug 9, 2021, 2:05 PM

    @sdetweil said in Voice Control on MagicMirror Synology Docker:

    @egnos I think u don’t use the pi hardware in this

    I would use an RPi connected to a monitor just to view the web page…

    @sdetweil said in Voice Control on MagicMirror Synology Docker:

    without the pi hardware there are no gpio pins.
    so PIR becomes a problem.

    I think so too.

    @sdetweil said in Voice Control on MagicMirror Synology Docker:

    I don’t know how u assign the USB mic to the container. maybe u don’t have to.

    Why don’t I have to?
    How would I send voice commands to the MM contained in the Synology?

    My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

    S 1 Reply Last reply Aug 9, 2021, 2:23 PM Reply Quote 0
    • S Offline
      sdetweil @Egnos
      last edited by sdetweil Aug 9, 2021, 2:25 PM Aug 9, 2021, 2:23 PM

      @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=1

      then 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)

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • E Offline
        Egnos
        last edited by Aug 9, 2021, 2:46 PM

        @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

        My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

        S 1 Reply Last reply Aug 9, 2021, 3:18 PM Reply Quote 0
        • S Offline
          sdetweil @Egnos
          last edited by sdetweil Aug 9, 2021, 3:19 PM Aug 9, 2021, 3:18 PM

          @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…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          E 1 Reply Last reply Aug 10, 2021, 10:10 AM Reply Quote 0
          • E Offline
            Egnos @sdetweil
            last edited by Aug 10, 2021, 10:10 AM

            @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?

            My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

            S 1 Reply Last reply Aug 10, 2021, 11:12 AM Reply Quote 0
            • S Offline
              sdetweil @Egnos
              last edited by Aug 10, 2021, 11:12 AM

              @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

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C E 2 Replies Last reply Aug 10, 2021, 1:24 PM Reply Quote 0
              • C Offline
                cyberphox @sdetweil
                last edited by Aug 10, 2021, 1:24 PM

                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.

                Full time Dad, DJ and entertainer and lover of technology.

                S E 2 Replies Last reply Aug 10, 2021, 1:26 PM Reply Quote 0
                • S Offline
                  sdetweil @cyberphox
                  last edited by Aug 10, 2021, 1:26 PM

                  @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?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  C 1 Reply Last reply Aug 12, 2021, 10:48 AM Reply Quote 0
                  • E Offline
                    Egnos @sdetweil
                    last edited by Aug 10, 2021, 1:52 PM

                    @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 …

                    My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                    S 1 Reply Last reply Aug 10, 2021, 2:01 PM Reply Quote 0
                    • S Offline
                      sdetweil @Egnos
                      last edited by Aug 10, 2021, 2:01 PM

                      @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

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        7/14
                        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