Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tadly/kodi-rpc
Simple shell wrapper for kodis jsonrpc
https://github.com/tadly/kodi-rpc
bash jsonrpc kodi remote script shell
Last synced: 2 days ago
JSON representation
Simple shell wrapper for kodis jsonrpc
- Host: GitHub
- URL: https://github.com/tadly/kodi-rpc
- Owner: tadly
- License: gpl-3.0
- Created: 2017-04-21T21:11:43.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-11T13:17:08.000Z (about 1 year ago)
- Last Synced: 2023-11-11T14:26:24.350Z (about 1 year ago)
- Topics: bash, jsonrpc, kodi, remote, script, shell
- Language: Shell
- Size: 18.6 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
kodi-rpc
========
Simple shell wrapper for kodis jsonrpc## Usage
```
$ kodi-rpc --help
usage: kodi-rpc [options] [method] [params [...]]
-H [host] Host kodi is running on
-P [port] Port kodi is running on
-u [user] User for authentication
-p [pass] Password for authentication
-c [config] Config file to use instead of supplying
connection infos via cli
--install Install to system (/usr/bin/kodi-rpc)
--uninstall Uninstall from system (/usr/bin/kodi-rpc)
-v, --version Print version and exit
-h, --help Show this help message and exitNotes:
- If connection-infos AND a config are omitted,
"./kodi-rpc.conf" or "/home/tadly/.config/kodi-rpc.conf" will be used if it exists- For playerid you may use "active" as value.
kodi-rpc Player.PlayPause playerid active- Kodis jsonrpc documentation can be found here:
http://kodi.wiki/view/JSON-RPC_API/v8Examples:
$ kodi-rpc Application.SetMute mute toggle
$ kodi-rpc Application.SetVolume volume increment
$ kodi-rpc Player.PlayPause playerid active
$ kodi-rpc Player.GetItem playerid active properties '["artist", "album", "title"]'
```## Installation
### Manual
```sh
git clone https://github.com/Tadly/kodi-rpc
./kodi-rpc/kodi-rpc --install
rm -rf ./kodi-rpc# To uninstall it again
kodi-rpc --uninstall
```