Solved RunScript not working after upgrade to Gotham - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: Solved RunScript not working after upgrade to Gotham (/showthread.php?tid=190726) |
RunScript not working after upgrade to Gotham - pitpat - 2014-03-29 I used the setup below to have the volume up & down keys send volume commands to my Onkyo receiver, and it was working fine in Frodo. No luck with Gotham Beta 2 however. ~/.xbmc/userdata/keymaps/keyboard.xml Code: <keymap> ~/.xbmc/userdata/volume_down.py Code: #!/usr/bin/python The volume control scripts work correctly when executed locally, and the debug prints get appended to the test.txt file. When I look at the debug log, I see the keypresses, the correct action, and no errors. Code: 12:07:49 T:140340192778112 DEBUG: Keyboard: scancode: 0x7a, sym: 0x00ae, unicode: 0x0000, modifier: 0x0 The debug prints are not written to "test.txt", which leads me to belive the scripts aren't being run at all. RE: RunScript not working after upgrade to Gotham - drewcovi - 2014-04-20 did you ever find a solution to this? RE: RunScript not working after upgrade to Gotham - pitpat - 2014-07-15 Nope. RE: RunScript not working after upgrade to Gotham - doug - 2014-07-15 Have you tested with only a simplified myfile.write (none of the eiscp stuff) or some other method to log if the script is actually run? Could be your keyboard.xml. Here's mine: Code: <keymap> My volume down script for my Denon is a bit simpler: Code: import urllib RE: RunScript not working after upgrade to Gotham - pitpat - 2014-07-16 Got it working! I had to give the scripts '.py' extensions. Before the scripts had no extension w/a shebang pointing to /usr/bin/python. |