MagicMirror² Module that sends MM commands from a MQTT message
- Navigate into your MagicMirror's
modulesfolder and executegit clone https://github.com/plangdon/MMM-mqtt_command.git. A new folder will appear, likely calledMMM-mqtt_command. Navigate into it. - Execute
npm installto install the node dependencies.
To use this module, add it to the modules array in the config/config.js file:
modules: [
{
module: 'MMM-mqtt_command',
position: 'top_right', // This can be any of the regions. Best results in left or right regions.
header: 'Alexa Commands', // This is optional
config: {
// See 'Configuration options' for more information.
}
}
]The following options can be configured:
| Option | Description |
|---|---|
mqttServer |
Connection string for the server to connect to (mqtt://localhost) |
loadingText |
Text to display while waiting for data to load |
topic |
MQTT Topic to subscribe to on the server (alexa/mmm/display) |
showTitle |
Boolean to show/hide a title (default: false) |
title |
Title to show if showTitle is true |
interval |
Refresh interval, not including MQTT subscription deliveries. (default: 300000) |
postText |
Text to append after the data received from MQTT (default: '') |
- Currently only supports unencrypted/unauthenticated MQTT connections.
- mqtt (installed via
npm install)