ndg63276 / alexa-sky-hd

A smart home skill for Alexa to control a Sky+HD or SkyQ box
33 stars 15 forks source link

Cannot find SkyQ Box #8

Closed AndreaC3p0 closed 4 years ago

AndreaC3p0 commented 4 years ago

I read your Readme file and put on works your instruction but after successfully installed my Developer skills, I can't list the sky q box on Alexa.

ndg63276 commented 4 years ago

Very hard to debug remotely. I suggest you look at the logs. Go to lambda, click on your SkyBox function, click Monitoring, then click "View logs in Cloudwatch". Look at the top log in cloudwatch and see if you can see any errors.

AndreaC3p0 commented 4 years ago

`I've some records with this error: START RequestId: 22030ca2-afe2-4685-a4d0-3cbccf9085de Version: $LATEST Unable to import module 'lambda_function': No module named lambda_function

END RequestId: 22030ca2-afe2-4685-a4d0-3cbccf9085de`

ndg63276 commented 4 years ago

Well that's the problem. My guess is you've uploaded the wrong zip file.

Download this file https://github.com/ndg63276/alexa-sky-hd/raw/master/Alexa-Skybox.zip

Then upload that zip file to lambda.

AndreaC3p0 commented 4 years ago

Thanks. Now it's working! I've a trouble just with the channel names. They are not in sync

ndg63276 commented 4 years ago

Can you give me an example?

AndreaC3p0 commented 4 years ago

Yes, I asked some commands in Italian language: "Alexa, cambia canale a Sky Tg24", digit wrong channel "Alexa, cambia canale a Italia1", wrong channel.

ndg63276 commented 4 years ago

Haha! This is an English skill! It won't work for Italian channel names.

AndreaC3p0 commented 4 years ago

Yes I know, but the problem I think is only the channel names. The command was correctly interpreted. It's possible replace a channel list?

ndg63276 commented 4 years ago

Yes it is possible, there are 2 ways:

  1. This is where it finds the UK channels: http://epgservices.sky.com/5.1.1/api/2.1/region/json/4101/1/ - If you can find an Italian version, then I can put that in

  2. If you want to make it yourself, you need to make a file like this one: https://github.com/ndg63276/alexa-sky-hd/blob/master/channels-hd.json

AndreaC3p0 commented 4 years ago

Ok, so I'll make myself a epg list for italian region. After, how can I use this file? I need to change your code?

ndg63276 commented 4 years ago

If you make the epg list, I can do the coding.

AndreaC3p0 commented 4 years ago

Ok ndg63276! I suggest to introduce a new environment variable to check a location of epg file ;) sky-channell-ita.txt

ndg63276 commented 4 years ago

Ok, I've added that file, and some code to use it. You need to re-download https://github.com/ndg63276/alexa-sky-hd/raw/master/Alexa-Skybox.zip, then re-upload it to lambda, then add an Environment Variable with a key of Italia and a value of 1.

AndreaC3p0 commented 4 years ago

@ndg63276 I checked my list and it works properly in italian! If you want i maked some changes in your code to manage dynamic Channel List. In attach you can find a new version of code, beacuse i'm not able to make a pull request in your repo ;) README.txt lambda_function.txt

ndg63276 commented 4 years ago

Glad it works!