• 1
  • 136
  • 137
  • 138(current)
  • 139
  • 140
  • 176
Release Kanzi: Amazon Alexa skill for Kodi
"continue last show" does this.
Reply
This is still a difficult setup for a non-coder.
Will this become a a skill that can be "enabled" soon?
Reply
(2017-11-28, 22:33)jingai Wrote: "continue last show" does this.
 That's great, thank you!
Reply
(2017-11-29, 17:56)melons2 Wrote: This is still a difficult setup for a non-coder.
Will this become a a skill that can be "enabled" soon?
 I'm a 'non-coder' & I managed it.

Yes, it's not straightforward, & yes, it takes time, but I wouldn't say it was difficult (the trickiest thing was re-ordering the steps cos Amazon have changed their end so things go in a different order to the guide).

I did struggle a bit when adding a new echo & trying to link it to another kodi device as it wasn't clear which steps to re-do, & I've actually started to write a brief step by step on how to do that, which I'm happy to post here if it will help anyone.
Reply
Need Help!
I have set up everything according to the this youtube video  which is slightly different for the how to geek tutorial. So got everything set up but when I try and run the test I get this error "The remote endpoint could not be called, or the response it returned was invalid".  And when I try to talk to Alexa I get this "Is there a problem in the required skill response?" Check the log and I get "Skill Response Was Marked As Failure Request Identifier: amzn1.echoapi.request.1xxxxxxxxx-xxxxx-xxx ect. the target lambda application returned a failure response." So I figured there is a problem with the endpoint or communication with the server. So tried how to geek latest tutorial and I can't get past step four. error in the command prompt when i run this "C:\Python27\Scripts\virtualenv venv". I get

:\Users\Antjuan\Desktop\Kodialexa\kodi-alexa-master\kodi-alexa-master>C:\Python27\Scripts\virtualenv venv
Traceback (most recent call last):
  File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27\Scripts\virtualenv.exe\__main__.py", line 9, in <module>
  File "c:\python27\lib\site-packages\virtualenv.py", line 713, in main
    symlink=options.symlink)
  File "c:\python27\lib\site-packages\virtualenv.py", line 925, in create_environment
    site_packages=site_packages, clear=clear, symlink=symlink))
  File "c:\python27\lib\site-packages\virtualenv.py", line 1132, in install_python
    copy_required_modules(home_dir, symlink)
  File "c:\python27\lib\site-packages\virtualenv.py", line 1063, in copy_required_modules
    copyfile(filename, dst_filename, symlink)
  File "c:\python27\lib\site-packages\virtualenv.py", line 357, in copyfile
    copyfileordir(src, dest, symlink)
  File "c:\python27\lib\site-packages\virtualenv.py", line 331, in copyfileordir
    shutil.copy2(src, dest)
  File "c:\python27\lib\shutil.py", line 144, in copy2
    copyfile(src, dst)
  File "c:\python27\lib\shutil.py", line 97, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: 'C:\\Users\\Antjuan\\Desktop\\Kodialexa\\kodi-alexa-master\\kodi-alexa-master\\venv\\lib\\os.py'

Im Stumped. Be at it for hours. Any help would be appreciated.
Side note: Does it matter that I did the tutorials on a my laptop vs HTPC even tho my htpc is running kodi? I used the correct port forwarding ip for my htpc.
Reply
(2017-11-30, 13:35)FoxForceFive Wrote: Yes, it's not straightforward, & yes, it takes time, but I wouldn't say it was difficult (the trickiest thing was re-ordering the steps cos Amazon have changed their end so things go in a different order to the guide).

I did struggle a bit when adding a new echo & trying to link it to another kodi device as it wasn't clear which steps to re-do, & I've actually started to write a brief step by step on how to do that, which I'm happy to post here if it will help anyone. 
would be very much appreciated - I am thinking about to integrate this skill but it seems pretty much time consuming and complicated especially when you are mentioning that the guide is partially outdated.
Reply
Which guide are you guys referring to? The official README on Github should be current, and that's what you should be using. We can never guarantee that third party guides will be up-to-date with the changes we make in the code.
Reply
Ok. My IP address changed. Will Netgear's service work as a dynamic dns? Also the guide says I will have to redo the skill. Does that mean from scratch? Is there anyplace farther along I can start from? Do I input the ddns in the config file also? Man I screwed this one up!
Reply
(2017-12-01, 14:54)jingai Wrote: Which guide are you guys referring to? The official README on Github should be current, and that's what you should be using. We can never guarantee that third party guides will be up-to-date with the changes we make in the code.
 In the readme the skill setup part was in a different order to the way amazon is displayed now. It just had the fields in a slightly changed order. It was still easy enough to follow as soon as I realised.
Reply
(2017-12-01, 09:02)laola Wrote:
(2017-11-30, 13:35)FoxForceFive Wrote: Yes, it's not straightforward, & yes, it takes time, but I wouldn't say it was difficult (the trickiest thing was re-ordering the steps cos Amazon have changed their end so things go in a different order to the guide).

I did struggle a bit when adding a new echo & trying to link it to another kodi device as it wasn't clear which steps to re-do, & I've actually started to write a brief step by step on how to do that, which I'm happy to post here if it will help anyone. 
would be very much appreciated - I am thinking about to integrate this skill but it seems pretty much time consuming and complicated especially when you are mentioning that the guide is partially outdated. 
 The step by step I've written only refers to adding a new echo device to the setup to talk to another kodi. Not the entire thing. 

The part of the guide dealing with the skill setup just has the fields in a slightly different order to the way amazon did. Provided you've read through the guide once before following it (my golden rule for following guides) then you'll realise & just be able to skip forward then back, all the fields are named the same thing, just one or two are in slightly different places. 

Until/if kodi decide to create an official skill, this is your only option, so just clear a couple of hours & give it a go.
Reply
Has anyone 'official' with kodi been approached about getting this skill set up officially for kodi? 

Reason I ask is that plex now have an official alexa skill doing this for them, & as plex is kind of a competitor (I know both products are free & plex tailors more for transcoding, but there's a large overlap & many people will use either or) & I would assume kodi want to match their feature list as much as possible.
Reply
We actually are trying to publish the skill, but there's a lot of pieces that may prevent it from being accepted and even if it is accepted, it will probably be a little while. Amazon is slow to certify even simple skills, and this one is definitely not small or simple.

However, even if they don't accept, we do have bits written up to make the process easier and to host it for you guys. But m0ngr31 would probably have to charge for this, as hosting for a bunch of people won't be free for him.
Reply
I am having some trouble getting this set up on a self hosted server.  I believe I have all the right things installed but when I go to hit the code from a web browser or through the tester on developer.amazon I am getting a 500 error.  I think it has something to do with my apache .conf file setup but I am not sure...  I am not a python person and don't know how to debug it to find out what the issue is or even where it is setting it's log files.

In my apache conf file I have:

<VirtualHost 192.168.0.19:443>
#    WSGIDaemonProcess kodi user=kodi group=kodi threads=5 home=/home/kodi/public_html/
#    WSGIScriptAlias / /home/kodi/public_html/alexa.py
WSGIScriptAlias /kodi-alexa /home/kodi/public_html/kodi-alexa/alexa.wsgi

SuexecUserGroup "#1001" "#1001"
ServerName x.x.x.x
DocumentRoot /home/kodi/public_html
ErrorLog /var/log/virtualmin/kodi_error_log
CustomLog /var/log/virtualmin/kodi_access_log combined
ScriptAlias /cgi-bin/ /home/kodi/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5 alexa.py
<Directory /home/kodi/public_html/>

#        WSGIProcessGroup kodi
#        WSGIApplicationGroup %{GLOBAL}
#        WSGIScriptReloading On
#        Order deny,allow

Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddType application/x-httpd-php7.0 .php7.0
AddType application/x-httpd-php7.0 .php
Action application/x-httpd-php7.0 /cgi-bin/php7.0.cgi
AddHandler cgi-script .py
</Directory>


<Directory /home/kodi/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
SetHandler cgi-script
</Directory>
RewriteEngine on
RemoveHandler .php
RemoveHandler .php7.0
SSLEngine on
SSLCertificateFile /home/kodi/ssl.cert
SSLCertificateKeyFile /home/kodi/ssl.key
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLCACertificateFile /home/kodi/ssl.ca
</VirtualHost>

I tried accessing this both remotelly and locally by all these:
https://192.168.0.19/alexa.py   -  I get an error 500 internal server error
​​​​​​​https://192.168.0.19/alexa.wsgi  -  displays the text inside the apexa.wsgi file
​​​​​​​https://192.168.0.19/kodi-alexa/alexa.py  -  I get an error 400 file not found
​​​​​​​https://192.168.0.19/kodi-alexa/alexa.wsgi   -  I get an error 400 file not found

On the 500 error my apache error log says : End of script output before headers: alexa.py


I have duplicated the file structure in both the web root and the kodi-alexa folder that is created when copying git.

Anyone have any suggestions or where i can find an updated self host instructions document covering the setup of the self host server (preferable running ubuntu)?
Reply
(2017-12-04, 03:23)adenicol Wrote: I am having some trouble getting this set up on a self hosted server.  I believe I have all the right things installed but when I go to hit the code from a web browser or through the tester on developer.amazon I am getting a 500 error.  I think it has something to do with my apache .conf file setup but I am not sure...  I am not a python person and don't know how to debug it to find out what the issue is or even where it is setting it's log files.

In my apache conf file I have:

<VirtualHost 192.168.0.19:443>
#    WSGIDaemonProcess kodi user=kodi group=kodi threads=5 home=/home/kodi/public_html/
#    WSGIScriptAlias / /home/kodi/public_html/alexa.py
WSGIScriptAlias /kodi-alexa /home/kodi/public_html/kodi-alexa/alexa.wsgi

SuexecUserGroup "#1001" "#1001"
ServerName x.x.x.x
DocumentRoot /home/kodi/public_html
ErrorLog /var/log/virtualmin/kodi_error_log
CustomLog /var/log/virtualmin/kodi_access_log combined
ScriptAlias /cgi-bin/ /home/kodi/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5 alexa.py
<Directory /home/kodi/public_html/>

#        WSGIProcessGroup kodi
#        WSGIApplicationGroup %{GLOBAL}
#        WSGIScriptReloading On
#        Order deny,allow

Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddType application/x-httpd-php7.0 .php7.0
AddType application/x-httpd-php7.0 .php
Action application/x-httpd-php7.0 /cgi-bin/php7.0.cgi
AddHandler cgi-script .py
</Directory>


<Directory /home/kodi/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
SetHandler cgi-script
</Directory>
RewriteEngine on
RemoveHandler .php
RemoveHandler .php7.0
SSLEngine on
SSLCertificateFile /home/kodi/ssl.cert
SSLCertificateKeyFile /home/kodi/ssl.key
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLCACertificateFile /home/kodi/ssl.ca
</VirtualHost>

I tried accessing this both remotelly and locally by all these:
https://192.168.0.19/alexa.py   -  I get an error 500 internal server error
https://192.168.0.19/alexa.wsgi  -  displays the text inside the apexa.wsgi file
​​​​​​​https://192.168.0.19/kodi-alexa/alexa.py  -  I get an error 400 file not found
​​​​​​​https://192.168.0.19/kodi-alexa/alexa.wsgi   -  I get an error 400 file not found

On the 500 error my apache error log says : End of script output before headers: alexa.py


I have duplicated the file structure in both the web root and the kodi-alexa folder that is created when copying git.

Anyone have any suggestions or where i can find an updated self host instructions document covering the setup of the self host server (preferable running ubuntu)?
Try hitting https://192.168.0.19/kodi-alexa

You've mapped that there with the WSGIScriptAlias command
Reply
(2017-12-03, 16:17)jingai Wrote: We actually are trying to publish the skill, but there's a lot of pieces that may prevent it from being accepted and even if it is accepted, it will probably be a little while. Amazon is slow to certify even simple skills, and this one is definitely not small or simple.

However, even if they don't accept, we do have bits written up to make the process easier and to host it for you guys. But m0ngr31 would probably have to charge for this, as hosting for a bunch of people won't be free for him.

If they don't accept it then it may be worth contacting the plex dev who did their skill, it must use very similar processes.

Good to hear there's something happening in that direction though, & once again, thank you guys for all your hard work.
Reply
  • 1
  • 136
  • 137
  • 138(current)
  • 139
  • 140
  • 176

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