Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 536 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 536 Bytes

Forked from https://github.com/joshjowen/script.json-cec

Usage

Accepted commands

  • 'activate' - Wake up playing device
  • 'toggle' - Toggle state of playing device
  • 'standby' - Put playing device on standby

Request example

curl -X POST -H 'content-type:application/json' http://kodi:8080/jsonrpc -d '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.module.json-cec","params":{"command":"activate"}},"id":1}' 

Installation

Clone the project to Kodi addons folder: ~/.kodi/addons/