• 1
  • 35
  • 36
  • 37(current)
  • 38
  • 39
  • 176
Release Kanzi: Amazon Alexa skill for Kodi
(2016-11-30, 04:32)jingai Wrote: I assume you're on Windows, so it'd be the quoting. I think this should work:

Code:
curl --data-binary "{""jsonrpc"":""2.0"", ""method"":""VideoLibrary.GetMovies"", ""id"":1}" -H "content-type: application/json;" -u username:password http://host:port/jsonrpc

looks like the same code
if not it gives me the same error:
curl: (6) Could not resolve host: method
curl: (3) [globbing] unmatched close brace/bracket in column 5
curl: (6) Could not resolve host: application


Quote:also tried -g
curl -g --data-binary '{"jsonrpc":"2.0", "method":"VideoLibrary.GetMovies", "id":1}' -H 'content-type: application/json;' -u user:pass http://url:8070/jsonrpc
curl: (6) Could not resolve host: method
curl: (6) Could not resolve host: id
curl: (6) Could not resolve host: application

Quote:then tried without space between content type and application:

curl -g --data-binary '{"jsonrpc":"2.0", "method":"VideoLibrary.GetMovies", "id":1}' -H 'content-type:application/json;' -u user:pass http://url:8070/jsonrpc
curl: (6) Could not resolve host: method
curl: (6) Could not resolve host: id

plus now for some reason alexa doesn't even see the commands I use for kodi. So if I say kodi or the living room (whatever I set it as) she says she can't find a app for that
Reply
I don't actually have a Windows box here, but I downloaded curl for Windows and ran it under WINE. The following worked for me:

Code:
curl --data-binary "{\"jsonrpc\":\"2.0\", \"method\":\"VideoLibrary.GetMovies\", \"id\":1}" -H "content-type: application/json;" -u username:password http://host:port/jsonrpc
Reply
(2016-11-30, 13:36)jingai Wrote: I don't actually have a Windows box here, but I downloaded curl for Windows and ran it under WINE. The following worked for me:

Code:
curl --data-binary "{\"jsonrpc\":\"2.0\", \"method\":\"VideoLibrary.GetMovies\", \"id\":1}" -H "content-type: application/json;" -u username:password http://host:port/jsonrpc
That worked. Here is log

Quote:{"id":1,"jsonrpc":"2.0","result":{"limits":{"end":399,"start":0,"total":399},"movies":[{"label":"13 Sins","movieid":1},{"label":"One Hundred and One Dalmatians","movieid":2},{"label":"101 Dalmatians","movieid":3},{"label":"101 Dalmatians II: Patch's London Adventure","movieid":4},{"label":"102 Dalmatians","movieid":5},{"label":"(500) Days of Summer","movieid":6},{"label":"A Bug's Life","movieid":7},{"label":"A Christmas Story","movieid":8},{"label":"A Goofy Movie","movieid":9},{"label":"A Walk in the Woods","movieid":10},{"label":"Against the Wild 2 Survive the Serengeti","movieid":11},{"label":"Aladdin","movieid":12},{"label":"Alexander and the Terrible, Horrible, No Good, Very Bad Day","movieid":13},{"label":"Alice in Wonderland","movieid":14},{"label":"Alice Through the Looking Glass","movieid":15},{"label":"Ooops! Noah is Gone...","movieid":16},{"label":"Almost Heroes","movieid":17},{"label":"Amélie","movieid":18},{"label":"American Sniper","movieid":19},{"label":"Amy","movieid":20},{"label":"Atlantis: The Lost Empire","movieid":21},{"label":"Avengers: Age of Ultron","movieid":22},{"label":"Bambi","movieid":23},{"label":"Barely Lethal","movieid":24},{"label":"Batman Unlimited: Monster Mayhem","movieid":25},{"label":"Batman vs. Robin","movieid":26},{"label":"Batman: The Dark Knight Returns, Part 1","movieid":27},{"label":"*batteries not included","movieid":28},{"label":"Beetlejuice","movieid":29},{"label":"Beverly Hills Ninja","movieid":30},{"label":"Big Hero 6","movieid":31},{"label":"Big Miracle","movieid":32},{"label":"Black Sheep","movieid":33},{"label":"Blackhat","movieid":34},{"label":"Blank Check","movieid":35},{"label":"Blended","movieid":36},{"label":"Bolt","movieid":37},{"label":"Boyhood","movieid":38},{"label":"Bride of Chucky","movieid":39},{"label":"Bridge of Spies","movieid":40},{"label":"Brink!","movieid":41},{"label":"Burlesque","movieid":42},{"label":"Burnt","movieid":43},{"label":"By the Sea","movieid":44},{"label":"Canadian Bacon","movieid":45},{"label":"Captain America: Civil War","movieid":46},{"label":"Captain America: The Winter Soldier","movieid":47},{"label":"Cars","movieid":48},{"label":"Cars 2","movieid":49},{"label":"Casa De Mi Padre","movieid":50},{"label":"Ip Man 3","movieid":51},{"label":"Central Intelligence","movieid":52},{"label":"Chappie","movieid":53},{"label":"Chef","movieid":54},{"label":"Child's Play 3","movieid":55},{"label":"National Lampoon's Christmas Vacation","movieid":56},{"label":"Cinderella","movieid":57},{"label":"Bongo: Killer Clown","movieid":58},{"label":"Clue: The Movie","movieid":59},{"label":"Concussion","movieid":60},{"label":"Coneheads","movieid":61},{"label":"Corner Gas: The Movie","movieid":62},{"label":"Creed","movieid":63},{"label":"Crimson Peak","movieid":64},{"label":"Critters","movieid":65},{"label":"Critters 2","movieid":66},{"label":"Critters 3","movieid":67},{"label":"Critters 4","movieid":68},{"label":"Curse of Chucky","movieid":69},{"label":"Dawn of the Planet of the Apes","movieid":70},{"label":"Deadpool","movieid":71},{"label":"Dear White People","movieid":72},{"label":"Death Valley","movieid":73},{"label":"Deathgasm","movieid":74},{"label":"Deep Blue Sea","movieid":75},{"label":"Dennis the Menace","movieid":76},{"label":"Despicable Me 2","movieid":77},{"label":"Dolls","movieid":78},{"label":"The Cat in the Hat","movieid":79},{"label":"The Cat in the Hat","movieid":80},{"label":"DuckTales: The Movie - Treasure of the Lost Lamp","movieid":81},{"label":"Dumb and Dumber To","movieid":82},{"label":"Dumbo","movieid":83},{"label":"E.T. the Extra-Terrestrial","movieid":84},{"label":"Escape from Planet Earth","movieid":85},{"label":"Escape from Tomorrow","movieid":86},{"label":"Evan Almighty","movieid":87},{"label":"Ex Machina","movieid":88},{"label":"Extraterrestrial","movieid":89},{"label":"F","movieid":90},{"label":"Fantasia","movieid":91},{"label":"Fantastic Four","movieid":92},{"label":"Ferris Bueller's Day Off","movieid":93},{"label":"Fifty Shades of Grey","movieid":94},{"label":"Finders Keepers","movieid":95},{"label":"Focus","movieid":96},{"label":"Frank","movieid":97},{"label":"Freddy Got Fingered","movieid":98},{"label":"Free Birds","movieid":99},{"label":"Friday","movieid":100},{"label":"From Up on Poppy Hill","movieid":101},{"label":"Frozen","movieid":102},{"label":"Frozen Fever","movieid":103},{"label":"Fun with Dick and Jane","movieid":104},{"label":"Furious 7","movieid":105},{"label":"Get Hard","movieid":106},{"label":"Going Clear: Scientology and the Prison of Belief","movieid":107},{"label":"Goodnight Mommy","movieid":108},{"label":"Goosebumps","movieid":109},{"label":"Grabbers","movieid":110},{"label":"Grave of the Fireflies","movieid":111},{"label":"Gremlins","movieid":112},{"label":"Grown Ups","movieid":113},{"label":"Grown Ups 2","movieid":114},{"label":"Guardians of the Galaxy","movieid":115},{"label":"Hardcore Henry","movieid":116},{"label":"Hardcore Henry","movieid":117},{"label":"Harry Potter and the Chamber of Secrets","movieid":118},{"label":"Harry Potter and the Deathly Hallows: Part 1","movieid":119},{"label":"Harry Potter and the Deathly Hallows: Part 2","movieid":120},{"label":"Harry Potter and the Half-Blood Prince","movieid":121},{"label":"Harry Potter and the Order of the Phoenix","movieid":122},{"label":"Harry Potter and the Prisoner of Azkaban","movieid":123},{"label":"Harry Potter and the Philosopher's Stone","movieid":124},{"label":"Heist","movieid":125},{"label":"Hercules","movieid":126},{"label":"Here Comes the Devil","movieid":127},{"label":"Hitman: Agent 47","movieid":128},{"label":"Hocus Pocus","movieid":129},{"label":"Home","movieid":130},{"label":"Home Alone","movieid":131},{"label":"Home Sweet Hell","movieid":132},{"label":"Homeward Bound II: Lost in San Francisco","movieid":133},{"label":"Homeward Bound: The Incredible Journey","movieid":134},{"label":"Hot Pursuit","movieid":135},{"label":"Hot Tub Time Machine 2","movieid":136},{"label":"Hotel Transylvania","movieid":137},{"label":"Hotel Transylvania 2","movieid":138},{"label":"Housebound","movieid":139},{"label":"How to Be Single","movieid":140},{"label":"How to Train Your Dragon","movieid":141},{"label":"How to Train Your Dragon 2","movieid":142},{"label":"Howl's Moving Castle","movieid":143},{"label":"I Am Chris Farley","movieid":144},{"label":"I Saw the Devil","movieid":145},{"label":"I Survived a Zombie Holocaust","movieid":146},{"label":"Indiana Jones and the Last Crusade","movieid":147},{"label":"Indiana Jones and the Temple of Doom","movieid":148},{"label":"Inside Out","movieid":149},{"label":"Insidious","movieid":150},{"label":"Insidious: Chapter 2","movieid":151},{"label":"Insidious: Chapter 2","movieid":152},{"label":"Insurgent","movieid":153},{"label":"Ip Man 3","movieid":154},{"label":"It Follows","movieid":155},{"label":"Jack","movieid":156},{"label":"Jason Bourne","movieid":157},{"label":"Jetsons: The Movie","movieid":158},{"label":"Joe Dirt","movieid":159},{"label":"John Wick","movieid":160},{"label":"Jungle Book","movieid":161},{"label":"Jurassic City","movieid":162},{"label":"Jurassic Park","movieid":163},{"label":"Jurassic Park III","movieid":164},{"label":"Jurassic Prey","movieid":165},{"label":"Jurassic World","movieid":166},{"label":"Just Before I Go","movieid":167},{"label":"Kevin and Perry Go Large","movieid":168},{"label":"Kiki's Delivery Service","movieid":169},{"label":"Killer Klowns from Outer Space","movieid":170},{"label":"Kingsman: The Secret Service","movieid":171},{"label":"Knights of Badassdom","movieid":172},{"label":"Krampus","movieid":173},{"label":"Kung Fu Panda","movieid":174},{"label":"Kung Fu Panda 2","movieid":175},{"label":"Kung Fu Panda 3","movieid":176},{"label":"Last Knights","movieid":177},{"label":"Late Phases","movieid":178},{"label":"Let Us Prey","movieid":179},{"label":"Let's Be Cops","movieid":180},{"label":"Lilo & Stitch","movieid":181},{"label":"Little Boy","movieid":182},{"label":"Little Dead Rotting Hood","movieid":183},{"label":"Little Shop of Horrors","movieid":184},{"label":"The Falkland Man","movieid":185},{"label":"Love Stinks","movieid":186},{"label":"Lucky 7","movieid":187},{"label":"Reunion","movieid":188},{"label":"Mad Max: Fury Road","movieid":189},{"label":"Maggie","movieid":190},{"label":"Magic Mike","movieid":191},{"label":"Maleficent","movieid":192},{"label":"Man of Steel","movieid":193},{"label":"Me and Earl and the Dying Girl","movieid":194},{"label":"Meet the Robinsons","movieid":195},{"label":"Minions","movieid":196},{"label":"Minuscule: Valley of the Lost Ants","movieid":197},{"label":"Mission: Impossible - Rogue Nation","movieid":198},{"label":"Mommie Dearest","movieid":199},{"label":"Monsters University","movieid":200},{"label":"Mortal Kombat","movieid":201},{"label":"Mozart's Sister","movieid":202},{"label":"Mr. Mom","movieid":203},{"label":"Mulan","movieid":204},{"label":"My Neighbor Totoro","movieid":205},{"label":"Neighbors 2: Sorority Rising","movieid":206},{"label":"Night at the Museum: Secret of the Tomb","movieid":207},{"label":"Nightcrawler","movieid":208},{"label":"No Way Jose","movieid":209},{"label":"Odd Thomas","movieid":210},{"label":"Oddball","movieid":211},{"label":"Oliver & Company","movieid":212},{"label":"Oliver & Company","movieid":213},{"label":"Ouija","movieid":214},{"label":"Our Brand Is Crisis","movieid":215},{"label":"Paddington","movieid":216},{"label":"Pan","movieid":217},{"label":"ParaNorman","movieid":218},{"label":"Paul Blart: Mall Cop 2","movieid":219},{"label":"Paul Blart: Mall Cop","movieid":220},{"label":"Pay the Ghost","movieid":221},{"label":"Pay the Ghost","movieid":222},{"label":"Penguins of Madagascar","movieid":223},{"label":"Pete's Dragon","movieid":224},{"label":"Peter Pan","movieid":225},{"label":"Phone Booth","movieid":226},{"label":"Pinocchio","movieid":227},{"label":"Pitch Perfect","movieid":228},{"label":"Pitch Perfect 2","movieid":229},{"label":"Pixels","movieid":230},{"label":"Planes","movieid":231},{"label":"Planes, Trains and Automobiles","movieid":232},{"label":"Pocahontas","movieid":233},{"label":"Poker Night","movieid":234},{"label":"Poltergeist","movieid":235},{"label":"Princess Mononoke","movieid":236},{"label":"Prison Break: The Final Break","movieid":237},{"label":"Problem Child","movieid":238},{"label":"Problem Child 2","movieid":239},{"label":"Project Almanac","movieid":240},{"label":"Radio Flyer","movieid":241},{"label":"Raiders of the Lost Ark","movieid":242},{"label":"Ranma ½: Nihao, My Concubine","movieid":243},{"label":"Rescue From Gilligan's Island","movieid":244},{"label":"Ride Along","movieid":245},{"label":"Ride Along 2","movieid":246},{"label":"Rise of the Guardians","movieid":247},{"label":"Rites of Spring","movieid":248},{"label":"Robin Hood","movieid":249},{"label":"Rock-A-Doodle","movieid":250},{"label":"Roll Bounce","movieid":251},{"label":"Rudolph, the Red-Nosed Reindeer","movieid":252},{"label":"Rugrats In Paris","movieid":253},{"label":"The Rugrats Movie","movieid":254},{"label":"Run All Night","movieid":255},{"label":"Sabotage","movieid":256},{"label":"San Andreas","movieid":257},{"label":"San Andreas","movieid":258},{"label":"Saving Mr. Banks","movieid":259},{"label":"Seed of Chucky","movieid":260},{"label":"Shaun the Sheep Movie","movieid":261},{"label":"Shaun the Sheep: The Farmer's Llamas","movieid":262},{"label":"Sleeping Beauty","movieid":263},{"label":"Snow White and the Seven Dwarfs","movieid":264},{"label":"Song of the South","movieid":265},{"label":"Space Jam","movieid":266},{"label":"Spectre","movieid":267},{"label":"Spirited Away","movieid":268},{"label":"Spy","movieid":269},{"label":"Stake Land","movieid":270},{"label":"Standoff","movieid":271},{"label":"Star Wars: Episode II - Attack of the Clones","movieid":272},{"label":"Star Wars: Episode III - Revenge of the Sith","movieid":273},{"label":"Star Wars: Episode I - The Phantom Menace","movieid":274},{"label":"Star Wars","movieid":275},{"label":"Return of the Jedi","movieid":276},{"label":"Star Wars: The Force Awakens","movieid":277},{"label":"Star Wars: The Clone Wars","movieid":278},{"label":"Steve Jobs","movieid":279},{"label":"Straight Outta Compton","movieid":280},{"label":"Street Fighter II: The Animated Movie","movieid":281},{"label":"Suicide Squad","movieid":282},{"label":"Superbad","movieid":283},{"label":"Superbad","movieid":284},{"label":"Superman III","movieid":285},{"label":"Superman Returns","movieid":286},{"label":"Taken","movieid":287},{"label":"Taken 2","movieid":288},{"label":"Taken 3","movieid":289},{"label":"Tale of Tales","movieid":290},{"label":"Tales from the Crypt: Demon Knight","movieid":291},{"label":"Tangled","movieid":292},{"label":"Tarzan","movieid":293},{"label":"Ted","movieid":294},{"label":"Ted 2","movieid":295},{"label":"Terminator Genisys","movieid":296},{"label":"Terminator 3: Rise of the Machines","movieid":297},{"label":"The Age of Adaline","movieid":298},{"label":"The Aristocats","movieid":299},{"label":"The Avengers","movieid":300},{"label":"The Babadook","movieid":301},{"label":"The Black Cauldron","movieid":302},{"label":"The Boy","movieid":303},{"label":"The Canal","movieid":304},{"label":"The Chosen","movieid":305},{"label":"The Cobbler","movieid":306},{"label":"The Devil's Hand","movieid":307},{"label":"The Fox and the Hound","movieid":308},{"label":"The Good Dinosaur","movieid":309},{"label":"The Goonies","movieid":310},{"label":"The Great Mouse Detective","movieid":311},{"label":"The Hateful Eight","movieid":312},{"label":"The Hobbit: The Battle of the Five Armies","movieid":313},{"label":"The Horde","movieid":314},{"label":"The Hunchback of Notre Dame","movieid":315},{"label":"The Incredibles","movieid":316},{"label":"The Interview","movieid":317},{"label":"The Intruders","movieid":318},{"label":"The Judge","movieid":319},{"label":"The Jungle Book","movieid":320},{"label":"The Jungle Book","movieid":321},{"label":"The Jungle Book","movieid":322},{"label":"The Jungle Book - The Movie","movieid":323},{"label":"The Jungle Book","movieid":324},{"label":"The Jungle Book 2","movieid":325},{"label":"The Karate Kid","movieid":326},{"label":"The Karate Kid, Part II","movieid":327},{"label":"The Karate Kid, Part III","movieid":328},{"label":"The Lazarus Effect","movieid":329},{"label":"The Little Mermaid","movieid":330},{"label":"The Lost World: Jurassic Park","movieid":331},{"label":"The Martian","movieid":332},{"label":"The Maze Runner","movieid":333},{"label":"The Next Karate Kid","movieid":334},{"label":"The Nice Guys","movieid":335},{"label":"The Nightmare","movieid":336},{"label":"The Nightmare Before Christmas","movieid":337},{"label":"The Outsiders","movieid":338},{"label":"The Pack","movieid":339},{"label":"The Princess and the Frog","movieid":340},{"label":"The Pursuit of Happyness","movieid":341},{"label":"The Pyramid","movieid":342},{"label":"The Rescuers","movieid":343},{"label":"The Rescuers","movieid":344},{"label":"The Rescuers Down Under","movieid":345},{"label":"The Revenant","movieid":346},{"label":"The Revenant","movieid":347},{"label":"The Ridiculous 6","movieid":348},{"label":"The Road","movieid":349},{"label":"The Sandlot","movieid":350},{"label":"The Santa Clause","movieid":351},{"label":"The Santa Clause 2","movieid":352},{"label":"The Santa Clause 3: The Escape Clause","movieid":353},{"label":"The Secret World of Arrietty","movieid":354},{"label":"The SpongeBob Movie: Sponge Out of Water","movieid":355},{"label":"The Sword in the Stone","movieid":356},{"label":"The Terminator","movieid":357},{"label":"The Three Caballeros","movieid":358},{"label":"The Town that Dreaded Sundown","movieid":359},{"label":"The Tree of Life","movieid":360},{"label":"The Way Way Back","movieid":361},{"label":"The Wedding Ringer","movieid":362},{"label":"The Wind Rises","movieid":363},{"label":"Time Out of Mind","movieid":364},{"label":"Tinker Bell and the Legend of the NeverBeast","movieid":365},{"label":"Toilet Stories","movieid":366},{"label":"Tommy Boy","movieid":367},{"label":"Tomorrowland","movieid":368},{"label":"Torment","movieid":369},{"label":"Toy Story","movieid":370},{"label":"Toy Story 2","movieid":371},{"label":"Toy Story 3","movieid":372},{"label":"Trainwreck","movieid":373},{"label":"Trainwreck","movieid":374},{"label":"Trash","movieid":375},{"label":"Tremors 4: The Legend Begins","movieid":376},{"label":"Tremors 5: Bloodlines","movieid":377},{"label":"Turbo Kid","movieid":378},{"label":"Unfriended","movieid":379},{"label":"Up","movieid":380},{"label":"V for Vendetta","movieid":381},{"label":"Very Bad Things","movieid":382},{"label":"The Curse of the Were-Rabbit","movieid":383},{"label":"A Close Shave","movieid":384},{"label":"A Grand Day Out","movieid":385},{"label":"A Matter of Loaf and Death","movieid":386},{"label":"The Wrong Trousers","movieid":387},{"label":"WALL·E","movieid":388},{"label":"Wayne's World","movieid":389},{"label":"Wayne's World 2","movieid":390},{"label":"We Are Still Here","movieid":391},{"label":"Winnie the Pooh","movieid":392},{"label":"Wolf Children","movieid":393},{"label":"Woman in Gold","movieid":394},{"label":"Wreck-It Ralph","movieid":395},{"label":"X-Men: Days of Future Past","movieid":396},{"label":"Zenon: Girl of the 21st Century","movieid":397},{"label":"Zenon: Girl of the 21st Century","movieid":398},{"label":"Zootopia","movieid":399}]}}
Reply
That is the expected output.

The skill should be working, provided:

1) Your credentials and address/port (the KODI_* vars) in .env are absolutely, positively correct,
2) The port is open on your router and forwarding to the machine where Kodi is running.

If you cannot get it to work at least via the test function on amazon's site, one or both of the above has to be false.

edit: If you can try the curl command from outside your LAN, that would help confirm it.
Reply
(2016-11-30, 17:46)jingai Wrote: That is the expected output.

The skill should be working, provided:

1) Your credentials and address/port (the KODI_* vars) in .env are absolutely, positively correct,
2) The port is open on your router and forwarding to the machine where Kodi is running.

If you cannot get it to work at least via the test function on amazon's site, one or both of the above has to be false.

edit: If you can try the curl command from outside your LAN, that would help confirm it.

I can hit it from another computer outside my network

Here is .env file:
Quote:# The Kodi webserver only supports HTTP.
# Uncomment KODI_SCHEME to tell the skill to use https between AWS and your local network
# (only use if you have already set this up with your own certificates)
#
# KODI_SCHEME = https

# If using a reverse proxy you might need to add an extra bit to the url before "jsonrpc"
# You can do this with KODI_SUBPATH (don't use slashes before or after)
#
# KODI_SUBPATH =

KODI_ADDRESS = http://URL.homeip.net
KODI_PORT = 8070
KODI_USERNAME = admin
KODI_PASSWORD = pass

SKILL_APPID =

# Your local time zone for responses that include absolute times.
# See https://en.wikipedia.org/wiki/List_of_tz...time_zones
#
# For example, if you are in the Eastern US time zone, you would use:
# SKILL_TZ = US/Eastern
#
# Leave empty or undefined (commented out) if you don't need or want absolute
# time responses. An example is asking when the currently playing item will
# end. If you have SKILL_TZ defined, it will also tell you the wall-clock
# time when the item will conclude.
SKILL_TZ =

LAMBDA_ENV_VARS = KODI_SCHEME,KODI_ADDRESS,KODI_PORT,KODI_SUBPATH,KODI_USERNAME,KODI_PASSWORD,SKILL_APPID,SKILL_TZ

AWS_DEFAULT_REGION = us-east-1
LAMBDA_TIMEOUT = 60
LAMBDA_MEMORY_SIZE = 128
LAMBDA_HANDLER = wsgi.lambda_handler

AWS_ACCESS_KEY_ID = AKIAJV.....
AWS_SECRET_ACCESS_KEY = 0FZiYkVend......
LAMBDA_ROLE = arn:aws:iam::02******1:role/predator04

is the spacing correct? Should SKILL_APPID = be blank
Is.env file the only file I mess with?
I live in california should SKILL_TZ = be US/Pacific ?
Reply
The spaces are fine.

You only need to specify SKILL_APPID if you want the skill to verify that the requests are coming from your own 'copy' of the skill; that is, it will reject anything coming from someone else's skill deployment.

And yes, for California you'd use US/Pacific or America/Los_Angeles for SKILL_TZ, though this won't prevent anything from working.

Let me know if the curl command works from outside your network. If it does, please verify that the following are absolutely correct:

Code:
KODI_ADDRESS = http://URL.homeip.net
KODI_PORT = 8070
KODI_USERNAME = admin
KODI_PASSWORD = pass

Do note that if you change anything in your .env file, you must re-deploy.
Reply
(2016-11-30, 18:05)jingai Wrote: The spaces are fine.

You only need to specify SKILL_APPID if you want the skill to verify that the requests are coming from your own 'copy' of the skill; that is, it will reject anything coming from someone else's skill deployment.

And yes, for California you'd use US/Pacific or America/Los_Angeles for SKILL_TZ, though this won't prevent anything from working.

Let me know if the curl command works from outside your network. If it does, please verify that the following are absolutely correct:

Code:
KODI_ADDRESS = http://URL.homeip.net
KODI_PORT = 8070
KODI_USERNAME = admin
KODI_PASSWORD = pass

Do note that if you change anything in your .env file, you must re-deploy.
yea everything is absolutely correct. What are some test commands I can try? I will re deploy to see
Reply
Some example utterances:

"Alexa, ask Kodi if there are any new movies to watch?"

"Alexa, ask Kodi if we have any new episodes of {show}?"

"Alexa, ask Kodi how much time is left on this?"

"Alexa, ask Kodi what is currently playing?"


When using the test function on the web, don't include the "Alexa, ask Kodi" part, btw.
Reply
I'm going to retry everything again. I am creating a user: its asking what type. Either Programmatic access or AWS Management Console access or do I select both?



Access type

Programmatic access
Enables an access key ID and secret access key for the AWS API, CLI, SDK, and other development tools.

AWS Management Console access
Reply
I just noticed: your KODI_ADDRESS is wrong. You are not supposed to include the "http://" there, as that is added by the skill automatically. The reason is we allow you to change that prefix with KODI_SCHEME.

Sorry I didn't notice that earlier.. I wasn't actually at a computer much yesterday, so I was using my phone.. reading logs on a tiny screen makes it easy to miss things Tongue
Reply
Re: the Access Type, I'm actually not sure. From the description I'd say Programmatic Access for sure, but not sure about management access.
Reply
(2016-11-30, 18:16)jingai Wrote: I just noticed: your KODI_ADDRESS is wrong. You are not supposed to include the "http://" there, as that is added by the skill automatically. The reason is we allow you to change that prefix with KODI_SCHEME.

Sorry I didn't notice that earlier.. I wasn't actually at a computer much yesterday, so I was using my phone.. reading logs on a tiny screen makes it easy to miss things Tongue

Hopefully that is it. I am going to retry the whole thing and then maybe make a guide for others to follow. I really appreciate the help!!
Reply
Rather than making a guide, maybe submit a PR with changes to the README on github Wink Help is always welcome, especially for documentation.
Reply
OK so I'm stuck at AWS Lambda ARN (Amazon Resource Name)
I check : North America correct?
Then do I use:
There you should see your function. Click on it and go to the triggers tab. Click on "Add Trigger" and select "Alexa Skills Kit". At the top right of this page, you'll see text that will say something like "ARN - arn:aws:lambda:us-east-1:11111111111:function:kodi-alexa". Copy this, as we'll need it in when you setup the skill.

That part to past into there? For Endpoint
Reply
Yes, North America.

Add the trigger and then select Alexa Skills Kit like it says. Copy the ARN and keep it somewhere for the next part.
Reply
  • 1
  • 35
  • 36
  • 37(current)
  • 38
  • 39
  • 176

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