2015-11-05, 19:15
I got a python script to control my Denon AVR's volume, which reads
When calling the script in the CLI, it works perfectly fine, but when mapping it to a keyboard press, the script still works, but it seems to be really slow, and Kodi's reaction to the keyboard press is heavily delayed. I'm on Kodi 15.2, Ubuntu 15.04, python 2.7. Any ideas on how this could be improved?
Code:
#!/usr/bin/python
import urllib
feed=urllib.urlopen("http://192.168.178.2/goform/formiPhoneAppDirect.xml?MVDOWN")
When calling the script in the CLI, it works perfectly fine, but when mapping it to a keyboard press, the script still works, but it seems to be really slow, and Kodi's reaction to the keyboard press is heavily delayed. I'm on Kodi 15.2, Ubuntu 15.04, python 2.7. Any ideas on how this could be improved?