Skip to content

FredrikWendt/script.json-cec

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Requires at least XBMC v13 Gotham and currently supports latest version Kodi v17 Krypton.

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

About

cec control for xbmc/kodi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%