Json - php
#1
Dear all,

I have a small tablet wall mounted for homecontrol (website)
I'd like to show there the title of an active movie from kodi.

By copy/ paste the below code into the browser i get all information i want.
But how can i call this by an php code to get the answer in variables...

I'm absolute beginner in html/ php and searching a couple days for an solution, without success :-(
Im totally frustrated and to be honest, i have postet this request also in an german kodi forum...

Could one of you please help me to get this in php.
Many thanks in advance for your support.

Regards dos
Sorry for the lack of english


Title: Filmname
http://192.168.10.39:8019/jsonrpc?request={"jsonrpc": "2.0", "method": "Player.GetItem", "params": { "properties": ["title"], "playerid": 1 }, "id": "VideoGetItem"}

Antwort:
{"id":"VideoGetItem","jsonrpc":"2.0","result":{"item":{"id":310,"label":"Winnetou - Eine neue Welt","title":"Winnetou - Eine neue Welt","type":"movie"}}}
Reply
#2
try this search http://lmgtfy.com/?q=php+json+to+variables
Reply
#3
Carthy, sometime its better not to answer...

Can be closed
Reply

Logout Mark Read Team Forum Stats Members Help
Json - php0