Node's Pretty Magical

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

    Keywords

    none

    Install

    npm i node-xbmc-rpc

    DownloadsWeekly Downloads

    0

    Version

    0.0.1-alpha

    License

    GPL v2

    Last publish

    Collaborators

    • mverup