supereggbert / simplexbmc Goto Github PK
View Code? Open in Web Editor NEWNode module for xmbc/kodi json rpc api over tcp connection including notification
License: MIT License
Node module for xmbc/kodi json rpc api over tcp connection including notification
License: MIT License
I've got the events working and can do playPause, but the "player.getItem" option seems impossible.
My code:
function getCurrentlyPlaying(playerid){
console.log("Playerid", playerid);
var request = '{ "properties": ["title"], "playerid": '+playerid+'}';
console.log("Request",request);
kodi.player.getItem(request, function(responce){
console.log("Response", responce);
});
}
And console output:
Playerid 1
Request { "properties": ["title"], "playerid": 1}
Response undefined
According to the JSON-RPC API/Examples the id should be: "id": "VideoGetItem"
.
But I'm a little unsure if it's possible to do so using this library since I only seem able to set the parameters.
I'm trying to use this library to connect openElec v6 xbmc on Raspberry pi 2 but it's not working. I have the connect event but not more. Other command not working and there not error event or data event...
var SimpleXBMC = require('./libs/index.js');
var xbmc = new SimpleXBMC("ip", 80);//openElect web interface is on port 80, I try also 9090 but nothing respond on it
xbmc.on("Connected", function (data)
{
xbmc.input.back({}, function (rep)
{
console.log(rep);
});
});
Any idea ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.