MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Last bit of issue with MirrorMirrorOnTheWall...

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    2 Posts 1 Posters 1.5k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      subminimal
      last edited by

      So the Alexa skill is working, it gives me the correct responses, I’m pretty sure I installed the module correctly (using git clone), and I set the key paths in MirrorMirror.js, but I’m getting an error in the console when I run MagicMirror.

      Any help would be greatly appreciated. I’m so close here and I’m sure its something silly. I ran npm install from the MirrorMirrorOnTheWall folder and the Magic Mirrorfolder as well as added the entry to config.js for the module. Alexa is responding just fine, the mirror looks good, just this error, and nothing on the mirror during responses.

      Whoops! There was an uncaught exception...
      Error: Invalid connect options supplied.
          at new DeviceClient (/home/pi/MagicMirror/modules/MMM-MirrorMirrorOnTheWall/node_modules/aws-iot-device-sdk/device/index.js:406:13)
          at Object.DeviceClient [as device] (/home/pi/MagicMirror/modules/MMM-MirrorMirrorOnTheWall/node_modules/aws-iot-device-sdk/device/index.js:201:14)
          at Object.app.setup (/home/pi/MagicMirror/modules/MMM-MirrorMirrorOnTheWall/MirrorMirror.js:12:23)
          at Class.alexa_start (/home/pi/MagicMirror/modules/MMM-MirrorMirrorOnTheWall/node_helper.js:12:18)
          at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-MirrorMirrorOnTheWall/node_helper.js:35:12)
          at Socket. (/home/pi/MagicMirror/modules/node_modules/node_helper/index.js:103:11)
          at emitTwo (events.js:106:13)
          at Socket.emit (events.js:191:7)
          at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:514:12
          at _combinedTickCallback (internal/process/next_tick.js:67:7)
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      
      
      1 Reply Last reply Reply Quote 0
      • S Offline
        subminimal
        last edited by

        Ok, so I added the custom endpoint line to the Mirror.js file I had in the MMM-MirrorMirrorOnTheWall folder, and now it displays text when asked, but when I ask “play a video by radiohead” it simply shows the text “radiohead”, though alexa does say she is playing a video by radiohead. The console seems to connect to MirrorOnTheWall images video and text just fine… I’m so close here…lol.

        app.setup = function() {
          app.device = awsIot.device({
            keyPath: __dirname + "/certs/MagicMirror.private.key",
            certPath: __dirname + "/certs/MagicMirror.cert.pem",
            caPath: __dirname + "/certs/root-CA.crt",
            clientId: "MirrorMirror" + (new Date().getTime()),
            region: "us-east-1",
        #add the line below
            host: "your-custom-endpoint",
          });
        
        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy