0.9.5 • Published 9 years ago

simple-xbmc v0.9.5

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

Kodi/XBMC JSON RPC node interface

NPM Badge

SimpleXBMC

The module uses XBMC JSON-RPC Api V6 to provide a complete and simple API to allow communication with XMBC/Kodi instances using a TCP socket connection

Examples

Connect to an XBMC/Kodi instance and send the PlayPause command:

var SimpleXBMC=require('simple-xbmc');

var xbmc = new SimpleXBMC('127.0.0.1',9090);

xbmc.player.playPause({playerid: 1}, function(responce){
  console.log(responce);
});

Connect to an XBMC/Kodi instance and request the active players:

var SimpleXBMC=require('simple-xbmc');

var xbmc = new SimpleXBMC('127.0.0.1',9090);

xbmc.player.getActivePlayers({}, function(responce){
  console.log(responce);
});

Using interface to receive notifications from XBMC/Kodi

var SimpleXBMC=require('simple-xbmc');

var xbmc = new SimpleXBMC('127.0.0.1',9090);

xbmc.player.on('play',function(data){
  console.log('Play');
});

xbmc.player.on('pause',function(data){
  console.log('Pause');
});

xbmc.player.on('stop',function(data){
  console.log('Stop');
});

TODO

Tests?

0.9.5

9 years ago

0.9.4

9 years ago

0.9.3

9 years ago

0.9.2

9 years ago

0.9.1

9 years ago

0.9.0

9 years ago