Skip to content

Node interface for Kodi using JSON-RPC

License

Notifications You must be signed in to change notification settings

Noodlex/node-kodi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Node interface for Kodi using JSON-RPC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%