Build an open future with us.

Invest in Mycroft and become a community partner.

Testing and Feedback for Magic-Mirror-Voice-Control-Skill


#1

How to install magic-mirror-voice-control-skill

  • Install magic-mirror-voice-control-skill by …

    • git clone https://github.com/dmwilsonkc/magic-mirror-voice-control-skill.git

    • When you first activate the skill, Mycroft will attempt to find the ip.json which will hold the ip address of your MagicMirror. If that file does not exist Mycroft will say

      "To activate the magic-mirror-voice-control-skill I need to know the I P address of the magic mirror. What is the I P address of the magic mirror you would like to control with your voice?"

    • Be ready, because Mycroft will expect an answer, and you will hear the listening chirp as soon as Mycroft finishes speaking. Be ready with the response “Set IP Address 192 dot 168 dot X dot XXX”. Replace the X’s with your MagicMirror’s IP Adress. It can be finicky. So if it doesn’t work, just say ‘Hey Mycroft’… 'Set IP Adress 192 dot 168 dot X dot XXX again. Be careful not to say ‘Set IP Adress to’ because Mycroft tries to add the word ‘to’ into the IP Adress.

  • magic-mirror-voice-control-skill connects to a working install of MagicMirror from …

    • https://magicmirror.builders/

    • which can be installed by 'git clone https://github.com/MichMich/MagicMirror.git'

    • WARNING!!! IF YOU PLAN TO HAVE BOTH MAGIC MIRROR AND MYCROFT OPERATING ON THE SAME RASPBERRY PI, YOU MUST USE MAGIC MIRROR V2.3.1 AND NOT THE LATEST VERSION 2.4.1 BECAUSE THE V2.4.1 HAS A NEWER VERSION OF ELECTRON WHICH WILL CAUSE EXTREMELY HIGH CPU USAGE AND WILL OVERHEAT YOUR RPi.

    • you can use git checkout 60b9a5b

    • in the config.js you will need to modify your ip whitelist like so:

      address: "0.0.0.0", port: 8080, ipWhitelist: ["127.0.0.1", "192.168.X.1/24"],

      where 192.168.X.1/24 -----------X is your local network address

    • In addition to the default modules the MMM-Remote-Control module and my fork of the MMM-kalliope module must be installed for the skill to function as it does in the video. To add the modules to the config.js follow the instructions for each module.

    • If you would like to see the steps I took to have both a working copy of MagicMirror and Mycroft operating on the same RPi you can check out these two links Creating my first skill… and Trying to install both…

How to test magic-mirror-voice-control-skill

Specify the steps the user should take to test the Skill, such as;

  • Speak —hey mycrofthide clock

  • Mycroft should —remove the clock from the MagicMirror display

  • Mycroft has a number of different “system action keywords”
    refresh
    restart
    reboot
    shutdown
    show
    hide
    turn on
    turn off
    update
    conceal
    display
    wake up
    go to sleep
    save

    When these system action keywords are combined with “System Keywords” like

    article details
    mirror
    monitor
    raspberry pi
    pi
    modules
    screen

    You can Reboot Pi for example or Turn Off Monitor or Save Pi or Update Mirror
    You should see the action taken, and get an audible response from Mycroft.

  • There are also actions that can be directed at modules:
    hide
    show
    display
    conceal
    install
    add
    turn on
    turn off
    update

    That need to be coupled with “Module Keywords” like:
    alert
    update notification
    clock
    calendar
    compliments
    wunder ground
    traffic
    google traffic map
    email
    remote control
    news feed
    page indicator
    remote control repository
    button
    buttons
    carousel
    carousel navigation
    connection status
    hide all
    glance
    module scheduler
    on screen menu
    tabulator
    bitcoin
    ethereum
    lice
    stock
    stocks

    In all, Mycroft can interact with 340 different modules. But the only commands that Mycroft will take action are on modules that are actually installed on the MagicMirror. Like hide clock, or show email, or turn off weather for example.

Mycroft will respond to every intent that is recognized with an action which you will see on the mirror and a verbal response from the success.dialog:
done
complete
success
as you wish
by your command

If the command doesn’t make sense, like install raspberry pi, Mycroft should respond with incrorrect.dialog.
‘That command is not valid, please restate it’ or
‘I cannot follow that command, please say it a different way’
‘That command does not make sense, please try again’

If a module is not installed, Mycroft will respond:
“That module does not appear to be installed.” or
“I cannot find that module installed on the magic mirror.”

Where feedback on magic-mirror-voice-control-skill should be directed to:

Feedback is preferred here on this post, or via [Mycroft Chat] -> @dmwilsonkc (https://chat.mycroft.ai


Creating my first skill with essentially no experience - Mycroft MagicMirror skill
Trying to install both Mycroft-Core and MagicMirror on the same PI
#2

@dmwilsonkc,
Very interested in this project but currently don’t have the hardware to make it happen. It is on my wish list though. Few questions (unrelated to the skill).

  1. How big is the mirror and display?
  2. Did you use Glass or Acrylic?
  3. Could you have a larger mirror with smaller display in one region of the mirror?
  4. Can the MM be a separate installation (hardware) to mycroft?

Looks great by the way.


#3

@pcwii I have not built the physical mirror yet. My plan is to use an old 32” LCD monitor and acrylic mirror. As far as using a smaller display with a larger mirror, it is all up to you and your personal preference. You can use separate installations of Mycroft and Magic Mirror. You can even use this skill with a Mark 1 and a MagicMirror as long as it is on the same network, and the mirror has the proper modules installed and the IP whitelist is configured in the mirror’s config.js