Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vdloo/kodictl
Control Kodi from the command-line
https://github.com/vdloo/kodictl
Last synced: 2 months ago
JSON representation
Control Kodi from the command-line
- Host: GitHub
- URL: https://github.com/vdloo/kodictl
- Owner: vdloo
- License: other
- Created: 2015-08-29T20:28:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-10-22T17:31:52.000Z (over 3 years ago)
- Last Synced: 2024-08-03T22:04:56.028Z (6 months ago)
- Language: Racket
- Size: 38.1 KB
- Stars: 17
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-racket-and-scheme - kodictl - line (Racket / Tools/lib)
README
kodictl
=======
Command-line interface for the Kodi JSON-RPCMake your Kodi/XBMC do things from the commandline.
Usage
-----List all available JSON-RPC commands on the Kodi host with ```list```
```
$ kodictl list
Addons.ExecuteAddon : Executes the given addon with the given parameters (if possible)
Addons.GetAddonDetails : Gets the details of a specific addon
Addons.GetAddons : Gets all available addons
Addons.SetAddonEnabled : Enables/Disables a specific addon
Application.GetProperties : Retrieves the values of the given properties
Application.Quit : Quit application
Application.SetMute : Toggle mute/unmute
Application.SetVolume : Set the current volume
AudioLibrary.Clean : Cleans the audio library from non-existent items
AudioLibrary.Export : Exports all items from the audio library
...
```Specify host with ```-r```, defaults to ```http://localhost:8080/jsonrpc```
```
$ kodictl -r http://localhost:8080/jsonrpc" list
```Some built-in shortcuts:
- Player.GoTo next in playlist for all active players
```
$ kodictl next
```- Player.GoTo previous in playlist for all active players
```
$ kodictl previous
```- Player.PlayPause for all active players
```
$ kodictl playpause
```- Player.Stop for all active players
```
$ kodictl stop
```- Player.GetItem for all active players
```
$ kodictl nowplaying
```- Start music partymode playlist (shuffle)
```
$ kodictl shuffle
```- List all available shortcuts
```
$ kodictl help
```- Mute/Unmute
```
$ kodictl mute
```- Increase/Decrease volume by 10 points
```
$ kodictl volumeup
$ kodictl volumedown
```- Send a GUI Notification
```
$ kodictl notify title "The message to display"
```Installation
------------
```
git clone https://github.com/vdloo/kodictl && cd kodictl
```Install the pkg
```
raco pkg install
```You can run the program like
```
racket main.rkt --help
```Or build a binary and run that. For global execution put that somewhere in
your path.
```
raco exe -o kodictl.bin main.rkt
```