2016-09-09, 05:13
So if anyone wants to set this up on their own, here are the full start to finish instructions. I made these after spending 2 hours pulling my hair out only to realize I was missing a python module. Primary thanks to @astro14 who had most of this put together in a small comment.
Feel free to share as needed or to add to any walkthrough/guide/even the opening post.
Install Prereqs:
Install python modules:
Sync repo to folder:
Modify Personal KODI info:
Modify the following entries to match your setup:
Enable SSL:
Create Certs: (if further help needed https://www.digitalocean.com/community/t...untu-14-04)
Modify SSL Conf File:
Verify DocumentRoot and add path to WSGIScriptAlias:
Modify the SSLCertificate paths:
Exit and Save
Enable the Site:
Restart Apache:
Copy contents of SSL certificate for Amazon:
(copy everything in file)
Configure Amazon Developer Portal Skill:
Follow instructions here: https://github.com/m0ngr31/kodi-alexa for most configuration walk through. Mind you that the address you use will be different, and you will need to generate your show/movie/music lists (custom slots).
Set your IP as https://YOUR_ADDRESS/kodi-alexa
SSL: paste copied cert
Save - this should do it. Even started over and followed this guide to the T and it worked for me in minutes.
EDIT: Updated 1/22/2017
Feel free to share as needed or to add to any walkthrough/guide/even the opening post.
Install Prereqs:
Code:
sudo apt install apache2 apache2-utils libexpat1 ssl-cert python-pip libapache2-mod-wsgi git-core
Install python modules:
Code:
sudo pip install requests yaep pytz pycountry fuzzywuzzy python-Levenshtein
Sync repo to folder:
Code:
cd /var/www/html
sudo git clone https://github.com/m0ngr31/kodi-alexa.git
Modify Personal KODI info:
Code:
sudo nano /var/www/html/kodi-alexa/kodi.py
Modify the following entries to match your setup:
Code:
KODI_ADDRESS
KODI_PORT
KODI_USERNAME
KODI_PASSWORD
Enable SSL:
Code:
sudo a2enmod ssl
Create Certs: (if further help needed https://www.digitalocean.com/community/t...untu-14-04)
Code:
sudo mkdir /etc/apache2/ssl
sudo openssl req -x509 -nodes -days 999 -newkey rsa:2048 -sha256 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt
Modify SSL Conf File:
Code:
sudo nano /etc/apache2/sites-available/default-ssl.conf
Verify DocumentRoot and add path to WSGIScriptAlias:
Code:
DocumentRoot /var/www/html
WSGIScriptAlias /kodi-alexa /var/www/html/kodi-alexa/wsgi.py
Modify the SSLCertificate paths:
Code:
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
Exit and Save
Enable the Site:
Code:
sudo a2ensite default-ssl.conf
Restart Apache:
Code:
sudo service apache2 restart
Copy contents of SSL certificate for Amazon:
Code:
nano /etc/apache2/ssl/apache.crt
Configure Amazon Developer Portal Skill:
Follow instructions here: https://github.com/m0ngr31/kodi-alexa for most configuration walk through. Mind you that the address you use will be different, and you will need to generate your show/movie/music lists (custom slots).
Set your IP as https://YOUR_ADDRESS/kodi-alexa
SSL: paste copied cert
Save - this should do it. Even started over and followed this guide to the T and it worked for me in minutes.
EDIT: Updated 1/22/2017