MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

MMM-GoogleAssistant - MMM-Assistant2Display


  • Module Developer

    MMM-GoogleAssistant (v2)

    MMM-GoogleAssistant is an embedded Google assistant on MagicMirror.

    Screenshot

    Installation, update & Guides

    Read the docs in wiki

    Description

    • @bugsounet/snowboy activator embedded
    • build from GoogleAssitant library
    • builded for performance response


    MMM-Assistant2Display (v2)

    MMM-Assistant2Display is an addons for MMM-GoogleAssistant.

    It allows to display the links, photos, YouTube video and spotify music found by your assistant with native response.

    You can control MagicMirror sound volume, screen, detector, pir sensor, casted YouTube video, radio and more

    Needed: MMM-GoogleAssistant v2.0.0 and more

    Screenshot



    Installation, Configuration & Guides

    Read the docs in wiki


    Video demo:

    Last Tested (01/06/2020)

    • MagicMirror : 2.11.0
    • RPI 4 / raspbian 10 (buster)
    • debian 10

    Credits

    • Author :
    • License : MIT
      • By terms of Google Assistant SDK, You are not allowed to use or provide this module for commercial purpose.


  • @Bugsounet First big thanks for sharing this with the community. I just love your work and cannot be grateful.
    I just updated the old Mk2 to this module but I have some issues, maybe you can help me.
    Steps to repro:

    1. Activate Assistant and asking for time for example.

    Actual results:

    1. the time is displayed but no audio. Also I’m able to hear the chime when the assistant is waked up.

    Notes:

    • The lastResponse.mp3 is created ok, I played it and I can hear it
    • no errors (I set the module on debug)
    • if i play an youtube video I can hear the audio. So the problem seems to be only the Assistant audio output. Since The youtube video works, I assume the audio settings are fine on the module config. Any idea?
      Thank you in advance.

  • Module Developer

    Hi, Read this


  • Project Sponsor

    @Bugsounet first I would like to thank you for this wonderful module, it works much better than the old one.
    During the installation, everything went well except for the sound, the same problems as for other colleagues around here. But I would like to share with you what I discovered about sound. It seems that with the latest version of raspbian released at the end, they changed something to the sound because “MMM-Volume” doesn’t change the sound either. Before, I just installed it and it worked without any modification with “ALSA”. Now I had to modify the script for “ALSA” and instead of “PCM” I put “Headphones” to make it work with the speakers connected on the 3.5mm jack. This way I can adjust the sound through GoogleAssistant and MMM-Volume but I can’t do that with A2D.
    Thank you again for your work and I hope this can help you.


  • Module Developer

    @electros: I have modified it, it’s on dev repos … but I have some other change to do before releasing


  • Module Developer

    @electros :

        this.volumeScript= {
          "OSX": "osascript -e 'set volume output volume #VOLUME#'",
          "ALSA_PCM": "amixer sset -M 'PCM' #VOLUME#%",
          "ALSA_HEADPHONE": "amixer sset -M 'HEADPHONE' #VOLUME#%",
          "ALSA_HDMI": "amixer sset -M 'HDMI' #VOLUME#%",
          "HIFIBERRY-DAC": "amixer sset -M 'Digital' #VOLUME#%",
          "PULSE": "amixer set Master #VOLUME#% -q",
          "RESPEAKER_SPEAKER": "amixer -M sset Speaker #VOLUME#%",
          "RESPEAKER_PLAYBACK": "amixer -M sset Playback #VOLUME#%"
        }
    

    Right ?



  • @Bugsounet
    sincèrement c’est super le boulot que tu fais, continue pour ceux qui te remercie.
    Du coup je comprend mieux mes erreurs avec MMM-Volume je commençait à me tirer les cheveux.

    sincerely it’s great the job you do, continue for those who thank you.
    suddenly I understand better my mistakes with MMM-Volume I started to pull my hair.

    0|MagicMirror  | [VOLUME] Set Volume Error: Error: Command failed: amixer sset -M 'PCM' 50%
    0|MagicMirror  | amixer: Unable to find simple control 'PCM',0
    0|MagicMirror  |     at ChildProcess.exithandler (child_process.js:303:12)
    0|MagicMirror  |     at ChildProcess.emit (events.js:200:13)
    0|MagicMirror  |     at maybeClose (internal/child_process.js:1021:16)
    0|MagicMirror  |     at Socket. (internal/child_process.js:430:11)
    0|MagicMirror  |     at Socket.emit (events.js:200:13)
    0|MagicMirror  |     at Pipe. (net.js:586:12) {
    0|MagicMirror  |   killed: false,
    0|MagicMirror  |   code: 1,
    0|MagicMirror  |   signal: null,
    0|MagicMirror  |   cmd: "amixer sset -M 'PCM' 50%"
    0|MagicMirror  | }
    
    

  • Module Developer

    @kelly97129: je ne me sert pas de MMM-Volume



  • @Bugsounet

       this.volumeScript= {
          "OSX": "osascript -e 'set volume output volume #VOLUME#'",
          "ALSA_PCM": "amixer sset -M 'PCM' #VOLUME#%",
          "ALSA_HEADPHONE": "amixer sset -M 'HEADPHONE' #VOLUME#%",
          "ALSA_HDMI": "amixer sset -M 'HDMI' #VOLUME#%",
          "HIFIBERRY-DAC": "amixer sset -M 'Digital' #VOLUME#%",
          "PULSE": "amixer set Master #VOLUME#% -q",
          "RESPEAKER_SPEAKER": "amixer -M sset Speaker #VOLUME#%",
          "RESPEAKER_PLAYBACK": "amixer -M sset Playback #VOLUME#%"
        }
    

    Donc tu mets cela où ? Si je peux virer MMM-Volume cela n’est pas plus mal.
    So where do you put it? If I can transfer MMM-Volume it is not worse.


  • Module Developer

    pour le moment nul part,
    je demandais simplement @electros, si cela lui semblais correct selon les modifs qu’il avait fait.

    je suis en train de revoir le module volume pour le rendre compatible avec le dernier firmware


Log in to reply