Creating shortcut for kodi on mac
- CREATING SHORTCUT FOR KODI ON MAC HOW TO
- CREATING SHORTCUT FOR KODI ON MAC CODE
- CREATING SHORTCUT FOR KODI ON MAC DOWNLOAD
CREATING SHORTCUT FOR KODI ON MAC HOW TO
In addition you could then go on to program your universal remote control to send these keyboard shortcuts to your Kodi HTPC and you could then run scenes or control devices from your remote control handset via the Kodi HTPC etc.This tutorial is about How to Install Kodi on Windows PC. This is a fairly easy way to be able to use Kodi keyboard shortcuts to run scenes in Vera and also to be able to control devices in Vera. You need to specifiy the correct IP address of your Vera controller and specify the correct device number in DeviceNum= 192.168.1.10:3480/data_request?id=lu_action&output_format=xml&DeviceNum= 50&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue= 1 For exmaple this HTTP command turns ON my FAN device. You can also use HTTP commands to turn on or off Vera devices, rather than running scenes. So you would then create the lounge-off.py file and the lounge-off.vbs file etc. In this example pressing Ctrl+Alt+B would run a python script file called lounge-off.py RunScript(C:\Users\Stuart\AppData\Roaming\Kodi\userdata\Scripts\lounge-off.py) So for example add a new line in to the keyboard.xml file like: Repeat the process to be able to run more scenes. That’s it the setup is completed, now open Kodi and enter your keyboard shortcut, in this example it was Ctrl+Alt+A and your Vera scene should then be run and you should see no command windows popping up over the top of the Kodi user interface. You need to change the IP address to the IP address of your Vera controller and the SceneNum needs to be changed to the scene number you want to run. OXmlHttp.open “GET”, “ 192.168.1.10:3480/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum= 14“, false Set oXmlHttp = CreateObject(“MSXML2.XMLHTTP”) Now right click the lounge-on.vbs file and edit it in your text editor. txt extension to lounge-on.vbs in this example. Right click and from the menu select New –> Text Document I am going to call mine lounge-on.vbs.Ĭ:\Users\Stuart\AppData\Roaming\Kodi\userdata\Scripts\ So my lounge-on.py file now looks like this:
CREATING SHORTCUT FOR KODI ON MAC CODE
Paste in this code and change the path as required:Ĭhild = subprocess.Popen(“wscript C:\Users\Stuart\AppData\Roaming\Kodi\userdata\Scripts\lounge-on.vbs”) py file and select to edit it in your text editor. Then rename the text file in this example I am calling my python script file lounge-on.pyĮnsure you have removed the. To do this right click in Windows Explorer and on the menu select New –> Text Document. In here I now need to create a new python. So in Windows Explorer I need to navigate to the Kodi\Userdata folder and I need to create a new sub-folder called “Scripts” Now the path I specified in the keyboard.xml file for my python script was:Ĭ:\Users\Stuart\AppData\Roaming\Kodi\userdata\Scripts\lounge-on.py py script file that Kodi calls when you press your keyboard shortcutīefore you start this step ensure you can see file extensions in Windows Explorer. Note: Anytime you edit the keyboard.xml file you need to close and reopen Kodi for the changes to take affect. So now the Keyboard.xml file looks like this, save and close the file. RunScript(C:\Users\Stuart\AppData\Roaming\Kodi\userdata\Scripts\lounge-on.py) In my example here I want my keyboard shortcut to be Ctrl+Alt+A and I want this to run a python script called lounge-on.py Now this is where we enter our new keyboard shortcut and specify the python script file it should run. Now open the Keyboard.xml file in with your preferred text editor application.
CREATING SHORTCUT FOR KODI ON MAC DOWNLOAD
If you do not have a keyboard.xml file in this folder, you can download the master keyboard.xml file, to do this right click on this link here and select “Save Link As” (Chrome browser) and save the file Keyboard.xml in to the correct folder.Ĭ:\Users\ Username\AppData\Roaming\Kodi\userdata\keymaps If you have an existing keyboard.xml file in this folder then great we can just edit this in a text editor program. Obviously browse to your own “username” folder what ever that is called, mine is called “Stuart” The keyboard.xml file should be located in this folder:Ĭ:\Users\ Stuart\AppData\Roaming\Kodi\userdata\keymaps vbs script is so we don’t have pop up command windows appearing over the top of the Kodi user interface and the HTTP request will be sent to Vera invisibly in the background. vbs script which sends the HTTP command to the Vera controller to run the scene. In turn the python script calls a Windows. py script file that Kodi calls when you press your keyboard shortcut in Kodi. Step 1: Create or Edit the Kodi keyboard.xml file to create your desired keyboard shortcuts. Here is a brief overview of the steps required: If you wish to do this in Kodi / OpenElec (Linux) then read this article here instead. This question came up on the Vera forums, how to use Kodi media center keyboard shortcuts to run scenes in the Vera home automation controller.