GitXplorerGitXplorer
m

node-xbmc-rpc

public
1 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
9cd375f97423ba6b889ab8c3814295ddc49ad808

All functions added

committed 11 years ago
Unverified
171c380e3d506cbb9ebbb4e6700c5b706bca7f90

More functions added

committed 11 years ago
Unverified
568321ae425c17db7c59c2686a66e4d7da5e8661

Updated README

committed 11 years ago
Unverified
fac415202338ff6502b3439de7093803d19e68fc

Added more functions

committed 11 years ago
Unverified
2f17c660740b7a38d88efc50530946de6c8e7318

Added few VideoLibrary function with defaults

committed 11 years ago
Unverified
7353911ddb6ab3b72ac1f6005616dcc29e4ed7e5

Small bug in usage example fixed

committed 11 years ago

README

The README file for this repository.

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);
});