0.0.7-alpha • Published 5 years ago

@noodlex/node-kodi-fix v0.0.7-alpha

Weekly downloads
1
License
GPL-2.0-only
Repository
github
Last release
5 years ago

Please note, this project isn't being updated anymore - you are welcome to fork it and continue development

node-kodi

Node interface for Kodi using JSON-RPC.

Usage example

var kodi_rpc = require('node-kodi');

var kodi = new kodi_rpc({
    url: <Kodi HOST>,
    user: <Kodi USERNAME>,
    password: <Kodi PASSWORD>
});

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

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

// OR

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