Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

martinverup/node-kodi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 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