ibrewster / AlexaiTunes

iTunes control server for Alexa skill
0 stars 0 forks source link

Alexa iTunes skill not available #1

Open iamharbie opened 5 years ago

iamharbie commented 5 years ago

Searched for the Alexa iTunes skill but can't find it

ibrewster commented 5 years ago

Unfortunately that is correct. I tried three times to get it certified, but each time Amazon delayed for about a month before coming back with various objections. I'd fix their objections, and they come back (a month later) with more. I finally just gave up - it works for me in my development account, but if they're going to make it that hard to get certified, it's not worth my time and effort. Sorry!

iamharbie commented 5 years ago

Oh, I am so sorry you had to go through all that. I believe they have some outrageous policies regarding skills activation.

Is it possible you share the source code with me so I can make it work in my development environment too?

ibrewster commented 5 years ago

I added an AmazonLambda directory to the repository containing the code I use via two AmazonLambda services to register the controller with the database and to respond to the actual Alexa commands and pass them on to the proper controller. A couple of things to note:

1) there are various modules, such as requests and psycopg2 that are required by these scripts, and will have to be uploaded to Amazon Lambda (assuming you are using that service) with the scripts. 2) The system relies on a database which must be accessible from both lambda functions to store the associations between Alexa devices and a controller's ngrok tunnel. The scripts are written for a PostgreSQL database, but could be easily modified for your favorite DB or storage format. 3) The iTunes script should be set up as an Alexa skill, while the register is just a standard API.

I hope this helps. Good luck!