JosefJantzen / MMM-AlexaControl

Control your MagicMirror with Alexa
MIT License
45 stars 10 forks source link

MMM-AlexaControl with MMM-Podcast2 #39

Closed Dimasua closed 3 years ago

Dimasua commented 3 years ago

Hello! I'm trying to control the MMM-Podcast2 with Alexa but can't figure out how the MMM-Podcast2 will find out that the notification configured in MMM-AlexaControl is for MMM-Podcast2? Hence can't understand where to put its notification part, whether in MMM-AlexaControl or in MMM-Podcast2 configuration array. Thank you.

JosefJantzen commented 3 years ago

Hi! First of all all the configurations you read in my README are for the config part of this module. So, the notifications array has to be there. I have a short explanation for MMM-Podcast2 in the Wiki here. So you have to put this part in the config of this module like this:

{
        module: 'MMM-AlexaControl',
        position: 'middle_center',
        config:{
            image: true,
            pm2ProcessName: "mm",
            vcgencmd: "vcgencmd",
            notifications:[
                {
                    name: '<Your Name>',
                    port: 11100,
                    OnOff: false,
                    notification: ["BUTTON_PRESSED_LONG", 'payload']
                }
            ]
        }
    }

If you don't have more custom devices you only have to change the name. If you have other custom devices change the port to an unused.