2012-01-22, 17:30
Hi All,
I been reading all about JSON and HTTP etc
What I want to get a simple remote control for XBMC, basic navigation, and transport control within my own home control system, made using Demopad software (a custom control application to enable you yo program a iPad or iPhone as a universal remote).
However I am having trouble.
I started out with POST commands and sending HTTP but it didn't seem reliable and many commands not available. I then moved to JSON rpc which appears to be the way forward but again having problems..
Example HTTP code to move Pause playback. This code is assigned to a button in Demopad software to issue it.
Example JSON code to move to Pause Audio
While each work each API is lacking certain functions. On calling JSONRPC.Version I get a result of 2.0
Am I missing something or a complete list of commands etc?
Like I said all I need is UP,DOWN,LEFT,RIGHT,SELECT. PLAY,PAUSE,STOP,OSD,ZOOM,SUBTITLES etc.
I don't need all the feedback as to what is playing now, and artist info etc. etc as I can see all that from the large screen in front of me
I suspect part of the issue is I am on version 2.o of JSON but how do I upgrade it? I am running XBMC from the OPENELEC install currently and is that current version (Dharma). But if this is the case how do third party apps on the Iphone work on my version now like Constellation to name one?
Any help or list of commands would be very handy, thanks
Cheers,
Flipside.
I been reading all about JSON and HTTP etc
What I want to get a simple remote control for XBMC, basic navigation, and transport control within my own home control system, made using Demopad software (a custom control application to enable you yo program a iPad or iPhone as a universal remote).
However I am having trouble.
I started out with POST commands and sending HTTP but it didn't seem reliable and many commands not available. I then moved to JSON rpc which appears to be the way forward but again having problems..
Example HTTP code to move Pause playback. This code is assigned to a button in Demopad software to issue it.
Code:
http://xbmc:[email protected]:8080/xbmcCmds/xbmcHttp?command=Pause()
Example JSON code to move to Pause Audio
Code:
{"jsonrpc": "2.0", "method": "AudioPlayer.PlayPause", "id": 1}
While each work each API is lacking certain functions. On calling JSONRPC.Version I get a result of 2.0
Am I missing something or a complete list of commands etc?
Like I said all I need is UP,DOWN,LEFT,RIGHT,SELECT. PLAY,PAUSE,STOP,OSD,ZOOM,SUBTITLES etc.
I don't need all the feedback as to what is playing now, and artist info etc. etc as I can see all that from the large screen in front of me
I suspect part of the issue is I am on version 2.o of JSON but how do I upgrade it? I am running XBMC from the OPENELEC install currently and is that current version (Dharma). But if this is the case how do third party apps on the Iphone work on my version now like Constellation to name one?
Any help or list of commands would be very handy, thanks
Cheers,
Flipside.