node-xbmc-rpc

0.0.1-alpha • Public • Published

node-xbmc-rpc

Node interface for XBMC using JSON-RPC.

Usage example

var xbmc_rpc = require('node-xbmc-rpc');

var xbmc = new xbmc_rpc({
    url: <XBMC HOST>,
    user: <XBMC USERNAME>,
    password: <XBMC PASSWORD>
});

xbmc.player.getCurrentlyPlayingVideo().then(function(r) {
    console.log(r);
});

xbmc.input.sendText({"text": "This text is sent to XBMC"}).then(function(r) {
    console.log(r);
});

// OR

xbmc.input.sendText('This text is sent to XBMC').then(function(r) {
    console.log(r);
});

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i node-xbmc-rpc

    Weekly Downloads

    2

    Version

    0.0.1-alpha

    License

    GPL v2

    Last publish

    Collaborators

    • mverup