joanaz / MirrorMirrorOnTheWallSkill

Alexa skill for controlling a MagicMirror²
MIT License
44 stars 35 forks source link
alexa-skill aws-iot aws-lambda google-images magic-mirror-modules magicmirror youtube

Mirror Mirror On The Wall Alexa Skill

An AWS Lambda function of an Alexa skill for communicating and controlling a MagicMirror using AWS IoT Device Gateway. It is complementary to the Magic Mirror Module Mirror Mirror On The Wall.

Please follow the Instructions to setup and deploy this Alexa skill.

Example Voice Commands

User: "Alexa, start magic mirror"
Alexa: "Hello my Queen, what can I do for you? "

If you are running AlexaPi on Raspberry Pi, or using a wake word engine like Snowboy, you can change the wake word from "Alexa" to "Mirror Mirror", you can also change the Alexa Skill invocation name to "on the wall". So together, you just say:

User: "Mirror Mirror on the Wall, say Hello"
Alexa: "Yes, my Queen. Hello."

If you enabled the complementary Magic Mirror Module, the word "hello" will also be displayed on your Magic Mirror.

Full List of Voice Commands

After you invoked this Alexa skill, you can say any of the following commands to trigger different actions on the Magic Mirror.

Display text

The text in {} will be displayed on Magic Mirror in bold.

Display images

The text in {} will be searched by Google Image Search API, and the returned images will be displayed on Magic Mirror, with the text.

Display video

The text in {} will be searched by Youtube Data API, and the returned video will be played on Magic Mirror, with the text.

Turn on/off Magic Mirror Modules

To turn on/off a Magic Mirror Module, it has to be installed and configured in the main project already. You also have to map its official module name to a transcribable spoken name in ModuleNames.json. For example, "MMM-Globe" maps to "globe", "currentweather" maps to "current weather".

Note: To clear the text/images/video displayed by this module, you can simply turn this module off. The spoken name for this module is tentatively "magic mirror"

To turn on a Magic Mirror Module, say:

To turn off a Magic Mirror Module, say:

To turn on all Magic Mirror Module, say:

To turn off all Magic Mirror Module, say: