Package Exports
- kodi-controller
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kodi-controller) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Kodi Controller
Kodi Controller is a callback driven package for controlling Kodi from javascript.
Installation
Use the package manager npm to install Kodi Controller.
npm install kodi-controllerUsage
const KodiController = require("kodi-controller");
kodi = new KodiController("192.168.0.24", 8080);
kodi.pause();
kodi.getVolume((err, volume) =>{
console.log(`The Volume is currently ${volume}.`);
});Contributing
Please make sure to update tests as appropriate.