Skip to content
Branch: master
Find file History
Latest commit fde179e Feb 16, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information. Update Dec 30, 2018
config.js.en Update config.js.en Feb 16, 2019


This example is about how to install google assistant and magic mirror on raspbian.

Dependency Versions

  1. OS : 2018-11-13-raspbian-stretch-full.img
  2. MagicMirror2 : 2.5.0
  3. MMM-Hotword : 1.1.0
  4. MMM-AssistantMk2 : 2.1.2


STEP1. Rasbian installation

  1. Download the latest image from the RazBian website. (2018-11-13-raspbian)
  2. Download Rufus to write images to SD card.
  3. Run Rufus and select the downloaded image to burn the SD card.

STEP2. Insert SD card + LCD + Power connection

  1. Insert SD card and keyboardㆍmouse dongle into raspberry pi.
  2. Connect LCD to raspberry pi on HDMI.

STEP3. First Boot

  1. Connect the USB power cable to the raspberry pi
  2. After boot is done, connect to the Internet with WIFI
  3. Update packages
sudo apt-get update

STEP4. Installing a Magic Mirror

  1. Install the Magic Mirror using a script on the Internet
sudo apt-get install npm
sudo npm install -g npm@latest
bash -c "$(curl -sL"

STEP5. Installing Magic Mirror Modules

  1. Go to modules directory and install the MMM-Hotword
cd ~/MagicMirror/modules/
sudo apt-get install libmagic-dev libatlas-base-dev sox libsox-fmt-all
git clone
cd MMM-Hotword
npm install

cd ~/MagicMirror/modules/MMM-Hotword/node_modules/snowboy
npm install --save-dev electron-rebuild
npm install nan
  1. Install MMM-AssistantMk2
cd ~/MagicMirror/modules/
sudo apt-get install mpg321 libasound2-dev
git clone
cd MMM-AssistantMk2
npm install
cd scripts
chmod +x *.sh
cd ~/MagicMirror/modules/MMM-AssistantMk2
npm install --save-dev electron-rebuild

STEP6. Configure Google Assistant Module

  1. Open the Google Action Console and create a new project
  1. Open the Google Cloud Platform Console and select the generated project
  1. Search for the Google Assistant API and click Enable.
  2. Click CONFIGURE ... of Credentials and put the name and e-mail.
  3. Generate Other credentials with the OAuth Client ID in Create Credentials
  4. Download generated OAuth client ID in json format
  5. Move the downloaded OAuth client ID to modules/MMM-AssistantMk2/credentials.json
mv ~/Download/cre.... credentials.json
  1. Run auth_and_test.js to verify the generated client ID
node auth_and_test.js
  1. Accept the client verification process and copy and enter your Google account key
  2. Move the generated token.json
mv token.json ./profiles/default.json

STEP7. Edit Google assistant module config

  1. Open the Magic Mirror configuration file with TextEditor and modify it with the contents of github

Install USB Mic. and Speaker

vi ~/.asoundrc
  type asym
    type hw
    card 0
    type plug
    slave.pcm "hw:1, 0"

  type hw
  card 0

And, change audio output from hdmi to analog.


Go to the location where the Magic Mirror is and start the application

cd ~/MagicMirror
npm start

Video Tutorial

Watch the video

You can’t perform that action at this time.