EventGhost

Ad blocker detected:
Our software and support is 100% free. This website is not.
You can donate in 2 ways, by turning off your ad blocker or by pressing the Donate button.

************ NOTICE ************

UPDATE YOUR BOOKMARKS!!!

We have an issue that there is no way around as of yet.
I have done all I can to try and prevent this from happening.
We are going to be losing the .com, .org and .de domains.
We have not been able to contact the original author of EventGhost
(the person that owns those domains) to redirect them to the new web server.
I set in motion when we first moved a redirection from the old server to the new server.
I also put in markers so that search engines would see this change and update any pointers
they have. We still have the .net domain for the production site. and the .rocks for the test site.
For the past few months you have been getting redirected to the .net site if you used one of the 3
domains mentioned above. I just wanted to tell everyone so they can make any changes needed.

m19brandon wrote:I have been using the basic auth for about a week now with no issue. The Alexa make a great entry and exit point but I prefer to code in EG.

Voice commands can be a bear to code but when it works it makes life easy.

I've been playing with the python scripting to run commands based off the words I get from Alexa. For instance when I tell her to set itunes volume to 22 I have a script that looks for the word itunes in the response once it sees that it looks for the command (volume in this case) based on it seeing volume it looks at the numeric value and converts that to a digit to pass along to itunes. It also sends the words back to alexa telling em the itunes volume was set to ##.

I figure if I just look for base word for things like itunes or hue I can use that to direct my scripts in the direction they need to go.

When I said if that's even possible I was referring to the fact that every time I get one small piece done a little light bulb goes off and I start thinking of ten other things I'd like to do. And for every ten things I come up with my wife throws in one or two. In the effort to keep the funding for my projects her suggestions take priority... My project list seems to grow faster than it shrinks.

Ok so first I wanted to thank you for providing this code. I eagerly want to get it working and I think I am hung up on something stupid. I am not sure what I am doing wrong with it. I have the amazon skill communicating with eventghost and the command is coming through. Eventghost is making communication with alexa but I can't seem to get a grasp on the jump to the python script that handles the commands. I thought it should be easy but I am constantly getting errors and at this point getting pretty frustrated. I tried editing your sample from this thread down to something simple and I can't get anywhere with that. Pretty much everything I have tried has resulted in failure at that point.

One of the errors I am getting a lot: In EG I am getting an error of AttributeError: 'Bunch' object has no attribute 'bb_get_intent'

Would anyone mind sharing an example for me so I can try to sort this all out. Also is there any plugins or requirements I need to have besides the barebones eventghost to get everything running properly? Thank you

Don't worry about the python script to start. Do you have the webserver plugin installed? Has that been configured correctly in the lamda function. If everything is working correctly and you call your skill in the Echo it should relay that word or phrase to EventGhost.

For example, if I say Alexa tell "Computer" to play cable, it will come through in as an Event EventGhost like EchoToEG.playcable or EchoToEG.play cable

Ok, I am getting the data from the echo formatted like that. I was just trying to figure out the script the way it was intended. If I just set it up the way you mean won't that mean I have to say the exact phrase to get the trigger working? I guess I am really confused as to what is the basic core script I would need so I can have specific python commands to my TV or wmc based on keywords and not the exact condition. For some reason if I trim out the example on here to remove the channels and other things I still can't get it working.

Ok, I can get that working for now, but I would like a more elegant solutions. I am still trying to figure out your code as I am obviously not a programmer nor am I very familiar with eventghost which doesn't help. In the top section you have the following code.

I see later that you are querying the entities for channel numbers and other things like that. To do something like that do I need to have another file that this script is reading from? I am trying to figure out how to get it working similarly with windows media center channels, but I can't get the code to run like it is below and I am not sure where I am messing up. What plugins should I have installed and do I need to install python 3 or anything separate from eventghost to get this code working?

1. Rename "EchoToEG.js" to "index.js" follow the instructions for Creating a Lambda Function for an Alexa Skill, using the "index.js" code rather than the template code.

What runtime do I pick, as pictured? If you just copy the code to replace the 'color game demo', why do you need to rename the file, or is it uploaded? Speaking of which, there's 2 color blueprints, as you can see attached, which one do you use?

Edit: I used the middle one the nodejs, or a runtime of Node.js 4.3

Also, add the applicationId to Echo_App_ID.

Where can I find this, please?

Edit: OK, I was missing a big step, you need to create a custom skill in the alexa developer portal first to be able to use this:https://developer.amazon.com/edw/home.html#/
Alexa Skills Kit
Get Started
Add a new skill
custom interaction model

Interaction model:
This where I presume you copy and paste the SampleUtterances & intentschema files.

Configuration:
Where you paste the Function ARN number you got from the Lambda management console function page.

5. Make sure you add the Alexa skill in the AWS Function.

The blueprint 'alexa-smart-home-skill-adapter'? It asks for an application ID. Is it the same one as above?

Edit: this blueprint seems unrelated.

6. Use the sample the two sample files for the IntentSchema and Utterances.

Where abouts to I put them?

Edit: alexa developer portal / skills / configuration

8. Add the index.html to your Webserver path. Note the {{bb_response}} in the text is for a Temporary variable that needs to be set in an EG Macro

Is this the 'HTML documents root' in the webserver config box?

Sorry for all the questions, but as you can see I'm lost. Thanks a lot.

Attachments

2Capture.PNG (10.01 KiB) Viewed 2887 times

Capture.PNG (6.2 KiB) Viewed 2887 times

Last edited by blaher on Sun Jun 26, 2016 4:06 am, edited 1 time in total.