User Tools

Site Tools


xbmc

XBMC API

FeatureSupport
Sending
Receiving
Config

Supported Brands

None

Sender Arguments

None

Config

        "programs": {
                "name": "Programs",
                "XBMC": {
			"name": "XBMC",
			"protocol": [ "xbmc" ],
			"id": [{
				"server": "127.0.0.1",
				"port": 9090
			}],
			"media": "movie",
			"action": "play"
		}
        }

Optional Settings

SettingDefaultFormatDescription
gui-show-media11 or 0Don't display the media icon
gui-show-action11 or 0Don'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 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.

MediaAction
movieplay, pause
songplay, pause
episodeplay, pause
noneshutdown, 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.txt · Last modified: 2015/11/27 22:09 (external edit)