Skip to main content

interactive tty-based remote control for Kodi

Project description

https://pepy.tech/badge/kodi-control/month https://img.shields.io/pypi/v/kodi-control.svg https://img.shields.io/pypi/pyversions/kodi-control.svg
Author:

Ken Kundert

Version:

0.1.0

Released:

2021-08-13

Kodi Control can be used to control a running instance of Kodi from a terminal. You can use it to interactively control the app and the players by opening a terminal and typing individual characters to perform various actions.

Getting Started

Install using:

pip3 install --user kodi-control

Then, you need to create a file containing the settings. In ~/.config/kodi-control/settings.nt (a NestedText file) that takes the following form:

hostname: localhost
port: 8080
username: kodi
password: password

All the values are optional with the defaults shown (except for password which is empty by default).

Before using Kodi Control you must first enable the JSONRPC over HTTP interface. To do so, open Kodi and navigate to Settings*→*Services*→*Control and enable “Allow remote control via HTTP”. While there you can add a username and password if desired. Do not enable SSL.

You can run Kodi Control on a different from the one that runs Kodi, you just need to give the hostname for the machine that is running Kodi, and of course that machine must be accessible over the network from the machine running Kodi Control. In this case, some functionality, such as volume control, is not available. Alternately, Kodi can be run locally or you can open an SSH terminal and run Kodi Control on the Kodi host. In this case all functionality is available.

However you choose to do it, you would start Kodi Control in a terminal:

> kodi-control
Enter desired actions, use 'q' to terminate.
     : toggle play/pause       ENT: select                h: move left
    ': literal text            ESC: go to to home screen  i: show info
    0: go to 0%                H: go to to home screen    j: move down
    1: go to 10%               K: kill player             k: move up
    2: go to 20%               M: temporary mute          l: move right
    3: go to 30%               P: toggle player on top    m: toggle mute
    4: go to 40%               S: start player            n: toggle navigation
    5: go to 50%               T: show subtitles          p: toggle play/pause
    6: go to 60%               b: skip backward           s: go to start
    7: go to 70%               c: context menu            t: hide subtitles
    8: go to 80%               d: volume down             u: volume up
    9: go to 90%               e: go to end               x: stop
    BS: go back                f: skip forward

As it starts, it immediately prints a list of available commands. Then you simply type individual characters to run the available commands.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kodi-control-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kodi_control-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file kodi-control-0.1.0.tar.gz.

File metadata

  • Download URL: kodi-control-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

File hashes

Hashes for kodi-control-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ea5d5229870b3eb13d6633c274ad5244b823fcd0011ad86411c31034314ab642
MD5 9c9a1a049f3f1a4a72efe148f72a90d9
BLAKE2b-256 370d04dcdfd9c506edd3a9b57d56312b3211bfcb7625e4f7a6d861eac61460ef

See more details on using hashes here.

File details

Details for the file kodi_control-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kodi_control-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

File hashes

Hashes for kodi_control-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7e23d5d1f04ee2724af7e97cfe3f0b81f5539970400e6306e3414ae7a76b5bc
MD5 dbda1aaaa4434ad6812f74e3d74212bd
BLAKE2b-256 288a5a7f68bd5315a1698787a40e3ea7f5e85316f60f7793636778de83dd19c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page