https://github.com/grimpy/koditools
Set of tools to interface with Kodi
https://github.com/grimpy/koditools
Last synced: 8 months ago
JSON representation
Set of tools to interface with Kodi
- Host: GitHub
- URL: https://github.com/grimpy/koditools
- Owner: grimpy
- License: other
- Created: 2012-10-15T20:47:00.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2020-01-04T13:28:41.000Z (over 6 years ago)
- Last Synced: 2023-03-10T20:47:49.515Z (over 3 years ago)
- Language: Python
- Homepage:
- Size: 59.6 KB
- Stars: 12
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# Kodi Tools
This contains some tools to play with Kodi written in python
## kodiremote
A CLI tool to control Kodi
Uses keyboard to control Kodi all keys will be sent as is to Kodi and will be passed trough keymaps.xml
Exceptions are the arrows keys which will be used for navigation.
### Config ~/.config/koditools/remote.conf
Used to configure shortcuts to actions http://kodi.wiki/view/Action_IDs
Or remap keys to others or configure macros http://kodi.wiki/view/Keymap
The config file should have a section called keybindings.
The key represents the key you want to bind (either numeric acsii value or the character itself or KEY_CHARACTER (can be used for numbers)).
The value should be a json string containing the action that should be performmed
```ini
[keybindings]
f = {"action": "ActivateWindow(favourite)"} # map f key to open favourites
v = {"key": "m"} # remap key v to m
45 = {"tv": {"control": "media", "command": "volume_down"}}
61 = {"tv": {"control": "media", "command": "volume_up"}}
q = {"tv": {"control": "system", "command": "power_off"}}
s = {"tv": {"control": "source", "command": "set_source", "args": [{"id": "HDMI_1"}]}}
[server]
host = 192.168.1.3
port = 8080
[plugin.tv]
class = lgtv.TV
args = ["192.168.1.252"]
```
## kodipidgin
Forwards message from pidgin to the notification system of Kodi