User Tools

Site Tools


xbmc_v5_0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

xbmc_v5_0 [2015/11/27 22:09] (current)
Line 1: Line 1:
 +**XBMC API**
  
 +^Feature^Support^
 +|Sending|{{http://​wiki.pilight.org/​lib/​images/​notsupported.gif}}|
 +|Receiving|{{http://​wiki.pilight.org/​lib/​images/​supported.gif}}|
 +|Config|{{http://​wiki.pilight.org/​lib/​images/​supported.gif}}|
 +
 +==== Supported Brands ====
 +
 +//None//
 +
 +==== Sender Arguments ====
 +
 +//None//
 +
 +==== Config ====
 +<​code>​
 +        "​programs":​ {
 +                "​name":​ "​Programs",​
 +                "​XBMC":​ {
 + "​name":​ "​XBMC",​
 + "​protocol":​ [ "​xbmc"​ ],
 + "​id":​ [{
 + "​server":​ "​127.0.0.1",​
 + "​port":​ 9090
 + }],
 + "​media":​ "​movie",​
 + "​action":​ "​play"​
 + }
 +        }
 +</​code>​
 +
 +==== Optional Settings ====
 +
 +^Setting^Default^Format^Description^
 +|gui-show-media|1|1 or 0|Don'​t display the media icon|
 +|gui-show-action|1|1 or 0|Don'​t display the action icon|
 +
 +==== Comments ====
 +
 +The XBMC protocol will try to connect to a XBMC instance. However, make sure the JSON-RPC API is [[http://​wiki.xbmc.org/?​title=JSON-RPC_API#​Enabling_JSON-RPC|enabled]] in XBMC. You don't need to do anything more. Whenever a connection to XBMC is lost, the protocol will automatically try to reconnect. The XBMC protocol sends several messages depending on the actions in XBMC.
 +
 +^Media^Action^
 +|movie|play,​ pause|
 +|song|play, pause|
 +|episode|play,​ pause|
 +|none|shutdown,​ home|
 +
 +The stop event isn't recording, but pilight will interpret as the ''​home''​ action of the ''​none''​ media. So when XBMC is started or when nothing plays, the action will be ''​home''​. When pilight can't connect to XBMC or when the connection is lost the ''​shutdown''​ action of the ''​none''​ media will be sent.
xbmc_v5_0.txt ยท Last modified: 2015/11/27 22:09 (external edit)