Coder Social home page Coder Social logo

script.json-cec's Introduction

Send HDMI CEC commands through Kodi's JSON-RPC.

Kodi addon allowing HDMI-CEC control via Kodi's JSON-RPC.

Requires at least Kodi 19 Matrix and currently supports latest version Kodi 20 Nexus.

Installation

Zip

Download the project as Zip and rename it as script.json-cec.zip. Use the GUI interface to install it in Kodi.

Copying

Clone the project and copy it to Kodi's addons directory, example: ~/.kodi/addons/

Accepted commands

  • 'activate' - Wake up playing device via a CEC peripheral
  • 'standby' - Put playing device on standby via a CEC peripheral
  • 'toggle' - Toggle state of playing device via a CEC peripheral
  • 'stop_and_standby' - Stop any playback and place the CEC peripheral on standby

Example JSON request:

http://localhost:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.json-cec","params":{"command":"activate"}},"id":1}

Example Curl Request

curl --header 'Content-Type: application/json' --data-binary '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.json-cec","params":{"command":"activate"}},"id":1}' http://kodi/jsonrpc

script.json-cec's People

Contributors

n15c avatar joshjowen avatar mattie47 avatar peci1 avatar yankeegreggo avatar

Stargazers

Denix avatar

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.