Forum
XBMC commands ? http,JSON,etc... - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: XBMC commands ? http,JSON,etc... (/thread-1277.html)



http commands - Fohnbit - 28th Aug, 2013 01:23 AM

Hello

Is it possible to control xbian with http commands?

Thank you!


RE: http commands - rikardo1979 - 28th Aug, 2013 01:39 AM

means what? maybe you can be more specific what is it that you trying to achieve


RE: http commands - IriDium - 28th Aug, 2013 01:49 AM

It's possible to control XBMC with a browser if thats what you are asking.

<address of RPi>:8080


RE: http commands - Fohnbit - 28th Aug, 2013 02:29 AM

Hello

No, I mean http commands:
http:<IP>:<Port>/command?value=Volume:80

for example.

Thanks


Re: RE: http commands - f1vefour - 28th Aug, 2013 02:35 AM

(28th Aug, 2013 02:29 AM)Fohnbit Wrote:  Hello

No, I mean http commands:
http:<IP>:<Port>/command?value=Volume:80

for example.

Thanks

Your looking for the JSON-RPC interface.

http://wiki.xbmc.org/?title=JSON-RPC_API
http:// wiki.xbmc.org/index.php?title=JSON-RPC_API/v6


RE: http commands - Fohnbit - 28th Aug, 2013 06:10 AM

Thank you.
Json I already found, but have you an example?

I dont want use Json directly!


RE: http commands - rikardo1979 - 28th Aug, 2013 06:23 AM

again.what is it you want to do? I mean maybe there is other way than http to do the things you want.
Just be more specific what you want XBMC to do?


Re: http commands - f1vefour - 28th Aug, 2013 07:40 AM

An example using http to set volume:

http://xbmc@yourpi:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Application.SetVolume","params":{"volume":100},"id": 1}}

Simply replace "yourpi" with your raspberry pi ip address or hostname.


JSON command for starting a saved audio playlist - Fohnbit - 28th Aug, 2013 07:28 PM

Hello

Which command is for starting a saved audio playlist?

Thanks


RE: XBMC commands ? http,JSON,etc... - rikardo1979 - 28th Aug, 2013 07:54 PM

(28th Aug, 2013 07:28 PM)Fohnbit Wrote:  Hello

Which command is for starting a saved audio playlist?

Thanks

this is all related to your previous thread where you should keep answering and posting as without you move nowhere. No point to make new threads for every question you ask.
So I have merged your threads
-thx-



RE: XBMC commands ? http,JSON,etc... - brantje - 28th Aug, 2013 09:46 PM

(28th Aug, 2013 07:28 PM)Fohnbit Wrote:  Hello

Which command is for starting a saved audio playlist?

Thanks
Welcome to the our forum.
Please note there is very much info about the xbmc json interface on google.
I've made myself an webinterface in the past for he xbmc4xbox.

For your questtion, i googled, and it was the first hit
http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v4#Player.Open