• 1
  • 104
  • 105
  • 106(current)
  • 107
  • 108
  • 176
Release Kanzi: Amazon Alexa skill for Kodi
Yes, it should, assuming you're forwarding port 8080 on your router correctly to the machine on which Kodi is running.

Try first to connect to it over your LAN to make sure Kodi's JSON-RPC interface is actually enabled and working. In a browser on your LAN, use the local address of the machine for Kodi with port 8080.
Reply
I am able to view the web interface using 192.168.1.110:8080
However I am unable to view the same web interface when using public.ip:8080
I am gonna start working on my firewall... probably thats the reason?
Reply
I just loaded the latest update. Overall it works fine and it does seem to find albums easier. However, a new problem cropped up. Since I am running Kodi 18 that could be involved. Changing the volume result in "there was a problem with the requested skills response" The volume does change in spite of the error.

Can someone test this using Kodi 17? I am thinking its another Kodi 18 issue.

15:35:49
START RequestId: 4bd58359-5b4e-11e7-8f17-09ce4b00f532 Version: $LATEST

15:35:49
Adjusting volume

15:35:49
Sending request to http://redacted
amzn1.ask.device.redacted
15:35:49
[2017-06-27 15:35:49,902] ERROR in c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app: Exception on / [POST]

15:35:49
Traceback (most recent call last):

15:35:49
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1982, in wsgi_app

15:35:49
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1614, in full_dispatch_request

15:35:49
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1517, in handle_user_exception

15:35:49
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1612, in full_dispatch_request

15:35:49
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1598, in dispatch_request

15:35:49
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\flask-ask\flask_ask\core.py", line 563, in _flask_view_func

15:35:49
File "/var/task/alexa.py", line 1073, in alexa_volume_set_pct

15:35:49
vol = kodi.VolumeSet(int(Volume))['result']

15:35:49
TypeError: 'NoneType' object has no attribute '__getitem__'

15:35:49
[INFO] 2017-06-27T15:35:49.903Z 4bd58359-5b4e-11e7-8f17-09ce4b00f532 72.21.217.134 - - [27/Jun/2017:15:35:49 +0000] "POST / HTTP/1.1" 500 291 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/283.363

15:35:49
END RequestId: 4bd58359-5b4e-11e7-8f17-09ce4b00f532

15:35:49
REPORT RequestId: 4bd58359-5b4e-11e7-8f17-09ce4b00f532 Duration: 283.93 ms Billed Duration: 300 ms Memory Size: 512 MB Max Memory Used: 54 MB

15:35:50
START RequestId: 4c26fe1d-5b4e-11e7-aa3d-45a150692e4f Version: $LATEST

15:35:50
[INFO] 2017-06-27T15:35:50.190Z 4c26fe1d-5b4e-11e7-aa3d-45a150692e4f 72.21.217.134 - - [27/Jun/2017:15:35:50 +0000] "POST / HTTP/1.1" 200 0 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/36.599

15:35:50
END RequestId: 4c26fe1d-5b4e-11e7-aa3d-45a150692e4f

15:35:50
REPORT RequestId: 4c26fe1d-5b4e-11e7-aa3d-45a150692e4f Duration: 37.03 ms Billed Duration: 100 ms Memory Size: 512 MB Max Memory Used: 54 MB
No newer events found at the moment. Retry.
Reply
@bill-orange, what are you saying exactly to change the volume?
Reply
"Alexa, ask kodi media to set the volume to 75%" The volume sets correctly, then the error "there was a problem with the requested skills response" . So the volume command JSON works but the Skill chokes on the return string. It worked up until now. There have also been new Kodi nightly builds.
Reply
What does it say she heard in the Alexa App?
Reply
Nothing, except "there was a problem with the requested skills response".

P.S. Album recognition is much better. I used to get a timeout on "Alexa ask kodi media to play the Emerson, Lake and Palmer album Works vol 2" about 75% of the time. It is now selected correctly in a couple of seconds.

Marriage of Figaro used to also be problematic. It is found and played in a couple of seconds now.

Bill
Reply
@bill-orange, go to Settings->History in the Alexa App. It will say what she heard there.
Reply
Voice feedback
Alexa heard: "alexa ask kodi media to set the volume to seventy percent"
Reply
Sorry, I mistakenly added an optimization to the volume commands that I shouldn't have. I've fixed it upstream. If you want to update, you don't need to update the skill on the skill builder -- just update the skill code.
Reply
No problem. I loaded up the revised update. Unfortunately now I am still seeing the same issue.


Looks like the same error. Nothing odd on the reload to Lambda. Everything seemed to "take".

[INFO] 2017-06-27T20:06:07.164Z 0e229261-5b74-11e7-aff6-03a64cc3417e 72.21.217.166 - - [27/Jun/2017:20:06:07 +0000] "POST / HTTP/1.1" 200 203 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/156.124

20:06:07
END RequestId: 0e229261-5b74-11e7-aff6-03a64cc3417e

20:06:07
REPORT RequestId: 0e229261-5b74-11e7-aff6-03a64cc3417e Duration: 156.78 ms Billed Duration: 200 ms Memory Size: 512 MB Max Memory Used: 52 MB

20:06:10
START RequestId: 102ba8b8-5b74-11e7-ac20-f52eaac122ef Version: $LATEST

20:06:10
END RequestId: 102ba8b8-5b74-11e7-ac20-f52eaac122ef

20:06:10
REPORT RequestId: 102ba8b8-5b74-11e7-ac20-f52eaac122ef Duration: 0.37 ms Billed Duration: 100 ms Memory Size: 512 MB Max Memory Used: 52 MB

20:06:13
START RequestId: 122d6beb-5b74-11e7-aa38-b5c97c96a3e3 Version: $LATEST

20:06:13
Adjusting volume



20:06:13
[2017-06-27 20:06:13,892] ERROR in c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app: Exception on / [POST]

20:06:13
Traceback (most recent call last):

20:06:13
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1982, in wsgi_app

20:06:13
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1614, in full_dispatch_request

20:06:13
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1517, in handle_user_exception

20:06:13
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1612, in full_dispatch_request

20:06:13
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\Flask\flask\app.py", line 1598, in dispatch_request

20:06:13
File "c:\users\william\appdata\local\temp\pip-build-_pp9vb\flask-ask\flask_ask\core.py", line 563, in _flask_view_func

20:06:13
File "/var/task/alexa.py", line 1073, in alexa_volume_set_pct

20:06:13
vol = kodi.VolumeSet(int(Volume))['result']

20:06:13
TypeError: 'NoneType' object has no attribute '__getitem__'

20:06:13
[INFO] 2017-06-27T20:06:13.893Z 122d6beb-5b74-11e7-aa38-b5c97c96a3e3 72.21.217.166 - - [27/Jun/2017:20:06:13 +0000] "POST / HTTP/1.1" 500 291 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/128.049

20:06:13
END RequestId: 122d6beb-5b74-11e7-aa38-b5c97c96a3e3

20:06:13
REPORT RequestId: 122d6beb-5b74-11e7-aa38-b5c97c96a3e3 Duration: 128.67 ms Billed Duration: 200 ms Memory Size: 512 MB Max Memory Used: 52 MB

20:06:14
START RequestId: 126e6d1e-5b74-11e7-947d-555efff7143d Version: $LATEST

20:06:14
[INFO] 2017-06-27T20:06:14.240Z 126e6d1e-5b74-11e7-947d-555efff7143d 72.21.217.166 - - [27/Jun/2017:20:06:14 +0000] "POST / HTTP/1.1" 200 2 "" "Apache-HttpClient/4.5.x (Java/1.8.0_112)" 0/47.913

20:06:14
END RequestId: 126e6d1e-5b74-11e7-947d-555efff7143d

20:06:14
REPORT RequestId: 126e6d1e-5b74-11e7-947d-555efff7143d Duration: 48.63 ms Billed Duration: 100 ms Memory Size: 512 MB Max Memory Used: 52 MB

Reply
Kodi-Voice was updated to 0.9.1 for you, right? Did you do:

Code:
pip install -r requirements.txt

Before updating?
Reply
Nope. Funny thing It works fine when I did it just now. Thanks!

Bill
Reply
Hi,

This looks like a great skill.

I do feel uncomfortable opening my Kodi box up to the internet though, are there any plans to implement WebSockets via a Kodi addon for the external connection? Would make it much more secure.

Thanks
Reply
(2017-06-28, 15:05)Tabclear Wrote: I do feel uncomfortable opening my Kodi box up to the internet though, are there any plans to implement WebSockets via a Kodi addon for the external connection? Would make it much more secure.

Not currently, sorry. For now, your options to secure things are:

1) A reverse HTTPS proxy installed locally, or,
2) Host the skill locally (via Apache, nginx, etc).
Reply
  • 1
  • 104
  • 105
  • 106(current)
  • 107
  • 108
  • 176

Logout Mark Read Team Forum Stats Members Help
Kanzi: Amazon Alexa skill for Kodi15