Charmed Quark Systems, Ltd. - Support Forums and Community

Full Version: New Amazon Echo Support
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Woohoo! I got it, and it was easy, but very, very frustrating -

The CQCRun.js that you had posted initially showed this:

Code:
var CQC_TarAddr = "http://myaddr.com";
var CQC_TarPort = "80";
var CQC_HTTPType = "http";
var CQC_IdKey = "ABCDEF";

And so I had included the "http:// in front of my domain. On your new file that you sent out, it was listed as this:

Code:
var CQC_TarAddr = "1.2.3.4;
var CQC_TarPort = "80";
var CQC_HTTPType = "http";
var CQC_IdKey = "ABCDEF";

I noticed that the second quote wasn't listed on the IP address, so I thought I had missed something, when I tried that, it didn't work, but then noticed that you didn't have the "http://" on your new one. When I took that off and included the quote, it worked.

All is well now. You may want to include that quote at the end of the CQCRun.js file and repost it, or you may get some questions back like mine.

Sorry for all the posts, but at least its all working now.
Oops, sorry. I updated that post to both include a .js with the correct trailing quote. I accidentally erased it when I changed my public IP to the example one. And I updated the text of the post to make it clear it should just be address and nothing else.
Has anyone tried this with a security certificate and secure connection? Or is that just an imaginary concern?

Accuracy wise how does this compare to say Siri? It's probably as much me as anything else but I find Siri more aggravating than useful. Hate to go through the set up to find Echo in the same category.
It's not imaginary definitely. If you feel comfortable setting up the certificates and setting up the CQC web server appropriately, it's very much wroth doing.
kblagron Wrote:Woohoo! I got it, and it was easy, but very, very frustrating -

The CQCRun.js that you had posted initially showed this:

Code:
var CQC_TarAddr = "http://myaddr.com";
var CQC_TarPort = "80";
var CQC_HTTPType = "http";
var CQC_IdKey = "ABCDEF";

And so I had included the "http:// in front of my domain. On your new file that you sent out, it was listed as this:

Code:
var CQC_TarAddr = "1.2.3.4;
var CQC_TarPort = "80";
var CQC_HTTPType = "http";
var CQC_IdKey = "ABCDEF";

I noticed that the second quote wasn't listed on the IP address, so I thought I had missed something, when I tried that, it didn't work, but then noticed that you didn't have the "http://" on your new one. When I took that off and included the quote, it worked.

All is well now. You may want to include that quote at the end of the CQCRun.js file and repost it, or you may get some questions back like mine.

Sorry for all the posts, but at least its all working now.

It's always the trivial stuff....glad it's working Smile
LesAuber Wrote:Has anyone tried this with a security certificate and secure connection? Or is that just an imaginary concern?
.

Let me know how that works. I tried it early on but ran into issues.
The first thing to do is get the CQC Web Server set up with a certificate, such that you can use a browser to load a path from it using an https:// URL. Of course you basically have to have a dynamic DNS name or permanent public domain name, because the certificate must match the path used to connect to the server. And you'll need to get the certificate from an authority that Amazon's servers recognize.
Dean Roddey Wrote:. And you'll need to get the certificate from an authority that Amazon's servers recognize.

That's the costly part, but Amazon has submitted to be a Certificate Authority, so perhaps it will be cheaper....
Thanks everyone for your help on getting mine up and running.

A couple of things I have noticed - I first started playing with the queries, very simple - I have a global query for all queries, and it does If/End statements based on what is coming in. What I have noticed is that there is a leading space on everything that has to be accounted for. I tried using the strip function but couldn't get it to work, but it looks like for at least my setup, if I have an If statement, I need to assume there is a space in front of it. Has anyone else seen this? And is this something related to the code?