bentom Posted February 4, 2011 Posted February 4, 2011 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
RamEliC Posted July 29, 2011 Posted July 29, 2011 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??
jvanegmond Posted July 29, 2011 Posted July 29, 2011 (edited) 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 July 29, 2011 by Manadar github.com/jvanegmond
ProgAndy Posted July 29, 2011 Posted July 29, 2011 (edited) 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 July 29, 2011 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
RamEliC Posted July 29, 2011 Posted July 29, 2011 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).
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now