Jump to content

XBMC - Communication with JSON RPC


bentom
 Share

Recommended Posts

Hi,

perhaps anyone of you is using XBMC which can be found on xbmc.org

I found The JSON RPC site on XBMC Wiki and all the possibilities to communicate with XBMC. http://wiki.xbmc.org/index.php?title=JSON_RPC

Can anybody here help me to initiate a connection to the Interface so that I can experience with the different methods.

I think this should work equal to a COM Interface.

Thanks a lot and regards,

B

Link to comment
Share on other sites

  • 5 months later...

I know its late but i would certainly like to see this implemented. I've been using the Web API but its not as robust as I would like it to be. I tried dabbling with the JSON RPC interface but i cant get it to work for the life of me. I can connect successfully to port 9090 with TCPConnect but no matter what i throw at it i get errors in my xbmc log that it could not parse the information received. :)

Can anyone PLEASE assist with this??

Link to comment
Share on other sites

No promises, but this sounds interesting enough for a weekend project as I'm an avid user of XBMC.

Your biggest problem is that there's no JSON RPC library for AutoIt.

Edit: By the way, why AutoIt? I immediately thought how much easier this would be in C# because there's an abundance of JSON RPC and even XBMC libraries available.

Edited by Manadar
Link to comment
Share on other sites

There is a JSON-library for AutoIt. Using WinHttp to send and receive and the JSON-libaray to encode/decode, it shouldn't be too difficult to access the API.

WinHttp in my signature.

Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

Thanks for your help guys! I'll try to do some testing with that when I get home tonight. If I get it working I'll post up some code for anyone who would be interested.

By the way, why AutoIt? I immediately thought how much easier this would be in C# because there's an abundance of JSON RPC and even XBMC libraries available.

Because I wrote my own home automation system using AutoIt and I would like greater control over XBMC with it. For example, I have the automation system wake me up in the morning by booting up my media center in the bedroom, turn on my TV and it'll launch XBMC. i then want to have it play my last.fm personal radio station. Right now, i have it loading a playlist (using the Web API) that i created, but that gets old after a while and i dont want to be make new playlists regularly. So i figured it would be better to have it load a last.fm radio station so it could do that for me. I tried doing it through the Web API but i cant seem to figure it out (it may not even be possible).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...