m0ngr31 / kanzi

Alexa skill for controlling Kodi
https://lexigr.am
MIT License
427 stars 149 forks source link

Quit does not work using POST #157

Closed vtebano closed 7 years ago

vtebano commented 7 years ago

With the current code I can not get the quit kodi command to work. I did however get the Application.Quit to work using a Get command in postman. The command below works: http://:/jsonrpc?request={"jsonrpc": "2.0", "method": "Application.Quit", "id":1}

I tried to update the kodi.py file to use this but my python is up to par yet.

jingai commented 7 years ago

Set SHUTDOWN_MEANS_QUIT=1 in .env for this. You cannot tell Alexa to "tell Kodi to quit" because she interprets that to mean you want the skill to quit. After you set the variable above, you can say, "tell Kodi to shut down" and Kodi will quit.

vtebano commented 7 years ago

I have SHUTDPWN_MEANS_QUIT=1. Alexa says its shutting down but nothing happens.

jingai commented 7 years ago

"Alexa, tell Kodi to shut down" should respond with, "Are you sure?"

If you answer with an affirmative, it will send Application.Quit to Kodi. If it's not actually doing it, you need to first check that Alexa heard you properly in the history in the Alexa app.

Also, github is not really the place for technical support. As the README states, please post questions to the forum.