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 …
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;
Mycroft should —
remove the clock from the MagicMirror display
Mycroft has a number of different “system action keywords”
go to sleep
When these system action keywords are combined with “System Keywords” like
Reboot Pifor example or
Turn Off Monitoror
You should see the action taken, and get an audible response from Mycroft.
There are also actions that can be directed at modules:
That need to be coupled with “Module Keywords” like:
google traffic map
remote control repository
on screen menu
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 weatherfor 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:
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.”