Giter Club home page Giter Club logo

kodicmd's Introduction

kodicmd

kodicmd is an interactive commandline tool for kodi mediacenter. Its main purpose is to manage one or more kodi installations remote via commandline. With the current version it's possible to remotecontrol kodi, browse movies also you can gather or change video library. Settings can be managed too and Library-Scan can be triggered. The main goal of the tool is a easy way to automate tasks on kodi and to bring it into monitoring. With this tool in background you are/will be able to create scripts to make special configurations and or setup a new installed kodi.

Installation

  1. check out the code
$ git clone https://github.com/tobias-d-oe/kodicmd.git
  1. install it
$ cd kodicmd
$ sudo python setup.py install

Usage

There are multiple ways to use kodicmd. The easyest way is to start kodi without any parameter and use the interactive shell. Within this interactive shell you can use the tab-key to autocomplete commands and content.

Example

$ kodicmd
Welcome to kodicmd, a command-line interface to kodi.

Type: 'help' for a list of commands
      'help <cmd>' for command-specific help
      'quit' to quit

kodicmd> whoamitalkingto
osmc @ 192.168.0.40 (http://192.168.0.40:80/jsonrpc)
kodicmd> system_getplatform
RaspberryPi
kodicmd> system_setvolume 77
kodicmd> system_getvolume
77
kodicmd> settings_getsettings locale.timezone
locale.timezone = Europe/Berlin
kodicmd> settings_getsettings debug.extralogging
debug.extralogging = True
kodicmd> settings_setsettings debug.extralogging false
{"id":1,"jsonrpc":"2.0","result":true}
kodicmd> settings_getsettings debug.extralogging
debug.extralogging = False
kodicmd> system_getproperty Window(home).Property(NewsCenter.Bundesland)
Bayern
kodicmd> exit

An other way is to start kodicmd with commandline optinons:

Example

$ kodicmd system_setvolume 55
$ kodicmd system_getvolume
55
$

Third way is to pipe in commands

Example

$ echo -e "system_setvolume 63\nsystem_getvolume\nexit\n" | kodicmd

It is still in developement state, comitters are welcome!

Already implemented subcommands

  • addon_count
  • addon_detail
  • addon_enabled
  • addon_execute
  • addon_getnamebyid
  • addon_getpropertybyid
  • addon_list
  • addon_listbroken
  • addon_listdisabled
  • gui_activatewindow
  • gui_getproperty
  • media_exportvideolibrary
  • media_scanvideosources
  • media_sourceslist
  • movie_count
  • movie_getdetails
  • movie_list
  • movie_listgenre
  • movie_play
  • movie_setdetail
  • player_getactiveplayer
  • player_playpause
  • player_stop
  • rc
  • rc_text
  • settings_getsettings
  • settings_resetsettings
  • settings_setsettings
  • system_connect
  • system_getapiversion
  • system_getbuild
  • system_getkernel
  • system_getname
  • system_getplatform
  • system_getproperty
  • system_gettime
  • system_getversion
  • system_getvolume
  • system_ismuted
  • system_mutetoggle
  • system_ping
  • system_quit
  • system_setvolume
  • whoamitalkingto

kodicmd's People

Contributors

t-d-oe avatar tobias-d-oe avatar

Stargazers

William Jacoby avatar

Watchers

William Jacoby avatar James Cloos avatar  avatar

kodicmd's Issues

ImportError: No module named kodicmd.shell

I bet this is pretty trivial, but since I don't know python or programming that well. I get the following error ater running kodicmd...

Traceback (most recent call last):
File "/usr/local/bin/kodicmd", line 96, in
from kodicmd.shell import KodiShell
ImportError: No module named kodicmd.shell

I found no file named kodicmd.shell on the system.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.