kiboost / php-kodi-jsonapi Goto Github PK
View Code? Open in Web Editor NEWEasy control of Kodi device(s) through http json-rpc interface.
License: MIT License
Easy control of Kodi device(s) through http json-rpc interface.
License: MIT License
Hi there ;)
Any plans to support Movie and TV Show library ? :)
BR,
Hi,
any plans to change your code so it sends an http POST? I have been shutting down KODI with an HTTP GET directly from Devolo Home Control but since Leia, Kodi does not accept HTTP GET any more for most of the API commands. As there is no way to do a POST from DHC I googled around and came to your Kodi class. But than I realized that it is doing a GET as well ...
Regards
Chris
I am using your api and it is most helpful - many thanks.
However, I have been unable to get the openFile working yet (other methods such as togglePlayPause, getActivePlayer, etc are working fine).
I am trying this
`$IP = "192.168.1.231:8080";
$_Kodi = new Kodi($IP);
if (isset($_Kodi->error)) die($_Kodi->error);
print_r($_Kodi->openFile("file://Videos/Videos/Trombone.mp4"));`
The output I get is this (after adding an apropriately placed echo in the class).
{"method":"Player.Open", "params":{"item":{"file":"file%3A%2F%2F%2FVideos%2F%2FVideos%2F%2FTrombone.mp4"}}}Array ( [result] => [error] => Array ( [code] => -32602 [message] => Invalid params. ) )
The equivalent curl command line call works fine
sudo curl -X POST -H "content-type:application/json" http://192.168.1.231:8080/jsonrpc -d '{"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"file://Videos/Videos/Trombone.mp4"}}}'
The use case is for controlling 20 Kodis across the network.
Can this API support that or be made to support it.
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.