MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. subminimal
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 10
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MirrorMirrorOntheWall Alexa Skill trouble

      That did it nearly 100%!!! The videos play, everything is correct… the only thing is when I use MirrorMirrorOnTheWall to bring up an image… I’m getting the endpoint error again! So weird… Words and videos work just fine, but I can’t bring up images. I’ve checked the API key and CSE ID is correct in keys.json, but still the same. Weird. I mean, I suppose it’s not crazy important, just images… but you know, always striving for 100% functionality. Is there a place that host line needs to be added in google-images somewhere? Hmmm…

      Anyway, torresfm THANKYOU SO MUCH for getting me as far as you have!!! I think the author should be made aware of the endpoint issue. If you stumble across a fix for the images portion of the module let me know!

      posted in Troubleshooting
      S
      subminimal
    • RE: Last bit of issue with MirrorMirrorOnTheWall...

      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",
        });
      
      posted in Troubleshooting
      S
      subminimal
    • Last bit of issue with MirrorMirrorOnTheWall...

      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
      
      
      posted in Troubleshooting
      S
      subminimal
    • RE: MirrorMirrorOntheWall Alexa Skill trouble

      Thank you for the reply. This is my first 3rd party module (I picked a doozy lol) do I have to place the module master folder in /modules as well? Thanks again my friend you’re a lifesaver.

      posted in Troubleshooting
      S
      subminimal
    • RE: MMM-MirrorMirrorOnTheWall module problem?

      THAT DID IT! The skill is working fine! Thanks SO much! I feel like it’s the last part here Im a little unclear on as well… do I put the whole MirrorMirroronthewall folder into the modules folder with certs, then add the module to config.json file? What are the last few steps to get this puppy in gear? Its a little fuzzy in the docs. THANK YOU A MILLION TIMES!!!

      I’m SO close. Alexa does the “Yes my queen” intro, and says she is playing a video for me. But I don’t see a video, and I can’t make changes to the layout verbally either. I know I’m mucking up installing the actual module now that the skill is working.

      posted in Troubleshooting
      S
      subminimal
    • RE: MirrorMirrorOntheWall Alexa Skill trouble

      I’m SO close. Alexa does the “Yes my queen” intro, and says she is playing a video for me. But I don’t see a video, and I can’t make changes to the layout verbally either. I know I’m mucking up installing the actual module now that the skill is working.

      posted in Troubleshooting
      S
      subminimal
    • RE: MirrorMirrorOntheWall Alexa Skill trouble

      THAT DID IT! The skill is working fine! Thanks SO much! I feel like it’s the last part here Im a little unclear on as well… do I put the whole MirrorMirroronthewall folder into the modules folder with certs, then add the module to config.json file? What are the last few steps to get this puppy in gear? Its a little fuzzy in the docs. THANK YOU A MILLION TIMES!!!

      posted in Troubleshooting
      S
      subminimal
    • RE: MirrorMirrorOntheWall Alexa Skill trouble

      Anything? This is driving me nuts. I feel like I’ve tried everything I can think of. I’ve removed and rebuilt the lambda functions, skills, even my whole raspberry pi build. I saw somewhere that the raspberry pi needs TCP port 8883 (something like that) open for public intrernet connections… could that be something? I’m grasping at staws here. Is there a certain way I should be installing Alexa? I have it working on the pi… man I’m pulling my hair out here. Anybody?

      posted in Troubleshooting
      S
      subminimal
    • RE: MMM-MirrorMirrorOnTheWall module problem?

      Unfortunately no. I added the code to index.js like so:

      var handlers = {
          'Unhandled': function () {
              this.emit(':ask', HelpMessage, HelpMessage);
          },
      

      Saved it, zipped it, and re-uploaded to Lambda. This seems crazy to me because I am following the instructions to the letter. Originally I had my node_modules folder outside of the src folder, but fixing that didn’t do it.

      In the Lambda manager console I am getting:

      {
        "errorMessage": "Invalid connect options supplied.",
        "errorType": "Error",
        "stackTrace": [
          "Object.DeviceClient [as device] (/var/task/node_modules/aws-iot-device-sdk/device/index.js:201:14)",
          "Object.app.setup (/var/task/MirrorMirror.js:11:23)",
          "Object. (/var/task/index.js:21:14)",
          "Module._compile (module.js:409:26)",
          "Object.Module._extensions..js (module.js:416:10)",
          "Module.load (module.js:343:32)",
          "Function.Module._load (module.js:300:12)",
          "Module.require (module.js:353:17)",
          "require (internal/module.js:12:17)"
        ]
      }
      

      And in my Alexa skill testing I am getting

      The remote endpoint could not be called, or the response it returned was invalid.
      

      back for a Lambda response. I even noticed in the tutorial he uses Node.js 4.3 instead of using Node.js 6.10 for his Lambda runtime, but same problem either way.

      I’m a little confused as to the process of where I’m putting stuff as well. I’m downloading the MirrorMirrorontheWall skill, unzipping to my downloads folder, then running the start.sh in there. Do I then put the MMM-MirrorMirrorOnTheWall-master folder inside the modules folder in pi/MagicMirror? And does it matter where I run the start.sh from? I’m a little lost on where to place everything. I am pulling my hair out is there anyone out there that can help, please?

      posted in Troubleshooting
      S
      subminimal
    • MMM-MirrorMirrorOnTheWall module problem?

      Hey guys, this is my first “major” raspberry pi build, and so far I have alexa installed and working fine, a new skill for MMM-MirrorMirrorOnTheWall, but every time I go to test it(the skill), I get an “the remote endpoint could not be called or the response returned was invalid” errror. I’m going nuts. Ive started from scratch three times. I followed the guide precisely, and Im confident I didnt miss anything obvious, though its obvious I did… any help would be deeply appreciated as this is to be a birthday present.

      posted in Troubleshooting
      S
      subminimal
    • 1 / 1