sakirtemel / MMM-alexa

MIT License
51 stars 8 forks source link

Parsing feedback from alexa #4

Open bartalluyn opened 7 years ago

bartalluyn commented 7 years ago

Hi,

thank you for this great piece of code. I'm trying to wrap my head around it, and I wonder if you know if it is possible to do something else with alexa's response?

Now it's : you as a question, send the question, receive the answer, output the answer through the speaker.

But if for example I want to ask "Show me a picture of george michael". I would want it to just send an "OK here you go" back, and I would write functionality to get the picture from google and display it on the mirror.

Is that at all possible, and how would I have to do that?

I presume I would have to use skill kit? But how do I parse alexa's answer to know that it's "george michael" I have to search for?

thanks!

cowboysdude commented 7 years ago

Now that you no longer need a button to make Alexa work I'd be very interested in how to do this... the instructions need some serious work LOL

sakirtemel commented 7 years ago

@bartalluyn I was also looking for that solution, if the skill is yours there is a way to send the response with other way, but for all the skills I'm still researching about that. I'll update here if I find anything, please feel free to inform if you also find some solutions.

@cowboysdude yeah I've managed to do that, but I'll update the code when it's solid. About the instructions, soon we'll prepare a workshop with using this library, at that time I may have a chance to update the documentation. Also feel free to create a PR for updating the instructions, or create wiki pages.

bartalluyn commented 7 years ago

Hi, thanks for the response. I'm currently looking into a way to start the Java Client for Alexa on my Pi (alongside the mirror app) and adjusting the java code of the client to sent post requests to the magic mirror electron app whenever it processes a request. That way I can leverage the existing Java code provided by amazon with little code adjustments to the mirror.

I have to do a lot more fiddling, but I'm sure that could be a low impact way to add more functionality integration between the mirror and alexa.

sakirtemel commented 7 years ago

@bartalluyn but the java client has the response as text? the reason of this library is actually avoiding to use any other library, so if java client support more feature it should be also included in here.

cowboysdude commented 7 years ago

Just keeping my eye on this. There's SO much magic mirror stuff out there ... too much really. For non-programmers it's difficult to know what to use and/or why. Personally I'm trying to pick the best thing for my project and then I'll take some time and learn it. I think this one is truly awesome!! I'm no programmer but I think logically and put 1+1 together so figuring it out just takes a bit of time. NOW if they wrote this in php I'd be golden LOL. I'm trying to create a big mirror that basically runs functions in my house.. lights, furnace, door locks etc so I'm thinking of it more as a control center then just a bathroom mirror. My goals are big and probably beyond my abilities but I think I'll be able to pull it off. Not looking to create something to make money on just trying to create something that works for me and I can share. In the end what I'd like is to speak to the mirror have it run my command and output it to the screen for x seconds then fade away... or have it address me personally when I give it a command or walk up to it... People freak out because they think having Alexa or Google as part of this is bad. I think that as long as you aren't doing illegal things then what's the issue? LOL There are voice modules out there but they aren't where they need to be to pull this off...yet.