requirements.txt should install kodipydent and requests, alternatively you can pip install.
pip install kodipydent
pip install requests
Prepare Kodi by …
Configure Kodi to “allow remote control via HTTP”, under the Kodi settings:services
Configure Kodi to “allow remote control from applications on other systems”, under the Kodi settings:services
Under Kodi settings:services note the port number (8080)
How to test Kodi Skill
Kodi Skill connects to a single instance of Kodi on your network …
After installation your mycroft.ai home page should have default settings for your kodi instance.
You will need to update these to reflect your kodi instance.
Username and Password are a WIP.
Example Intents
“turn kodi notifications on”
“turn kodi notifications off”
“move the cursor up / down / left / right / back / select / cancel” (Conversational Context)
“play film {film name}”
“play the movie {movie name}”
“show the movie information”
“hide the movie information”
“pause the movie”
“re-start the movie”
“stop the movie”
Conversational Context
If mycroft.ai locates more than one movie that matches your request it will permit you to itterate through your requests using conversational context.
eg. “hey mycroft:”
Request: “play the move Iron Man”
Response: “I have located 3 movies with the name Iron Man, would you like me to list them?”
Request: “yes” / “no”
Response: “Iron Man, to Skip, say Next, say play, to play, or Cancel, to stop”
Request: “next” / “skip”
Response: “Iron Man 2”
Request: “play” / “select”
Response: “o-k, attempting to play, Iron Man 2”
Feedback can be via this topic or via issues on Github.
I installed it but I’m not sure if the skill is working.
Here’s a transcript:
play film bullit
I’m not sure I understood you.
resume kodi
kodi find bullet
You might have to say that a different way.
kodi connect to 192.168.1.199
Sorry, I didn’t catch that.
Based on your update I’m not sure if these commands are working. Can you list which words should work or work best so I can test?
Did the skill install correctly?
I ran the msm install command it seemed to work.
Were you able to configure the skill from the microft.ai home page?
I was able to see and set the ip and port from the home page.
Is your Kodi configured to “allow remote control via HTTP”, under the Kodi settings: services?
Yes.
Is Your Kodi set to “allow remote control from applications on other systems”, again under settings: services?
I now have it have enabled.
Make sure that you correctly specify the port number in the Mycroft home page. Some systems are 80 and others are 8080.
Mine is 8080 running the chorus interface I can access the web interface this way.
Lastly, try some of the commands from the “Example Intents” above.
It doesn’t seem to recognize the commands. Should it say can’t reach kodi or something?
@sanderant,
I appreciate you testing this. “play film bullet” and “turn kodi notifications on” should work if the skill is running as expected. The last command “connect to Kodi on 192.168.1.199” would not be a valid command.
Are you comfortable looking at the log file?
What platform are you running on?
Thanks again.
I am not 100% certain of the location on the Mark 1 but on the Rpi it is located in
/var/log/mycroft-skills.log
if you search the log for kodi-skill you should see if there is an error. Feel free to send me the relevant part of the log to investigate.
I think the skill isn’t being recognized or something, I’m assuming the intent_failure means it’s not finding “play film”, but just a guess. It looks like it tries the home assistant and wolframalpha skilll after failing to figure it out.
This is the only thing I see, which is happening fairly frequently.
22:08:30.411 - mycroft.skills.settings:_request_my_settings:440 - DEBUG - getting skill settings from server for KodiSkill
22:09:30.598 - mycroft.skills.settings:_request_my_settings:440 - DEBUG - getting skill settings from server for KodiSkill
22:10:30.786 - mycroft.skills.settings:_request_my_settings:440 - DEBUG - getting skill settings from server for KodiSkill
22:11:30.988 - mycroft.skills.settings:_request_my_settings:440 - DEBUG - getting skill settings from server for KodiSkill
22:12:31.168 - mycroft.skills.settings:_request_my_settings:440 - DEBUG - getting skill settings from server for KodiSkill
22:13:31.353 - mycroft.skills.settings:_request_my_settings:440 - DEBUG - getting skill settings from server for KodiSkill
This is strange, it looks to me that the skill is having trouble accessing the home.mycroft.ai settings page. I could be wrong on this but I think that is the error you are getting. @KathyReid do you know what the 440 error is above?
@sanderant
Are you able to check the skills directory for the name of the kodi skill folder and it’s permission? There is an issue with MSM that appends the github hub username to the skill directory name and incorrectly sets the folder permission to root instead of mycroft.
Sorry for taking a while to come back to you on this one.
The 440 error is not common one; I had to go digging into the HTTP documentation to figure out what it was for. It looks like it’s some sort of authentication timeout error
I don’t think so. I believe the issue had something to do with the fact that the msm install appended my github username .pcwii to the installation that the member performed. This was an issue with msm that we discussed under another topic a while ago. Once the skill directory was renamed without the .pcwii the skill began to function as expected.
OK that’s interesting. The name of the Skill directory itself doesn’t have any direct dependency on the Skill functioning unless there’s some sort of hard-coded file path that the Skill uses - for instance to save or access files?