Your Universal Remote Control Center
RemoteCentral.com
Complete Control by URC Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
XBMC / Kodi IP Control
This thread has 12 replies. Displaying all posts.
Post 1 made on Saturday February 28, 2015 at 06:18
Chwarg
Long Time Member
Joined:
Posts:
January 2014
52
Hi,

I've been trying to get IP control of Kodi (XBMC) working with my MX-5000 with no luck.

Kodi uses the JSON-RPC API for IP commands, but I just can't get it working.
In the device properties I set up the IP address of the device (in my case 192.168.1.45) and the port JSON-RPC listens to (in the documentation it said 9090).

I'm not sure how a command string should look like.
I set it up to ASCII.
My Up command looks like this:
{"jsonrpc": "2.0", "method": "Input.Up", "id": 1}

But nothing happens.

Did anyone of you get this working or has a clue what I did wrong?
Thanks a lot.

Regards,

Sebastian
Post 2 made on Saturday February 28, 2015 at 13:46
KRAZYK
Long Time Member
Joined:
Posts:
October 2010
482
Not sure what you are trying to do?
There are no XMBC drivers written for the MX-5000 that I am aware of.

I know you have a couple of MSC-400's....... if I remember correctly?
Try XMBC and eventghost through serial!

DuctTape made a tutorial some time ago! It still works, although with no feed back on your MX-5000. Your TV screen will provide the feedback. Eventghost serial control works well!

[Link: remotecentral.com]
KRAZYK

Things you own end up owning you!
OP | Post 3 made on Sunday March 1, 2015 at 05:08
Chwarg
Long Time Member
Joined:
Posts:
January 2014
52
Hi Krazyk,

I thought for IP it doesn't matter if you have a driver, as long as you replace the stings.

Funny thing is, there is a 2-way driver for Total Control, so you would think it wouldn't be a big deal for URC to include one in CCP also.

Yes, I have three MSC-400s, a MRX-1, a MRF-350, a MX-5000, a MX-6000 and a MX-780.
The thing about Eventghost is, that I will need a computer, that is on all the time.
I was hoping, I could avoid that.

I read that the USB keyboard emulation on the MSC-400 doesn't work at all - is that still the case, or did URC fix it with a firmware update at some point?
Otherwise this could be another approach.

The XBMC is running on an Raspberry Pi 2 (runs pretty well, even with heavy skins).
I can really recommend this little piece of hardware if you want to smart up a TV.
And XBMC beats pretty much all the media player boxes you can buy.

I added one in my living room and soon I'll put one in my bedroom also.
In my home theater I have a proper PC running XBMC.

If all fails I'll add an IR receiver to the gpio pins of the Pi.

Last edited by Chwarg on March 1, 2015 05:30.
Post 4 made on Sunday August 2, 2015 at 17:43
BizarroTerl
Active Member
Joined:
Posts:
October 2002
591
I have it working. Go to settings -> Services -> Remote Control. Both Allow Remote Control items should be selected.
If this is a Windows PC be sure your firewall is set to allow incoming data. Try disabling the firewall for testing.

In CCP be sure the device has port 9090 defined.

I found the string you have above won't work. The following will:
{"jsonrpc":"2.0","method":"Input.Up","id":1}

Difference is no embedded blanks.

Compared to IR via a MSC-400 or MRX-1 IP control is faster and more consistent.
Post 5 made on Saturday August 8, 2015 at 13:55
winrwinrchkndinr
Lurking Member
Joined:
Posts:
August 2015
1
I am also having troubles with this setup.

I have a MRX-2 w/iOS. I am trying to control XBMC via the iPad CCP app, but I am not having any luck.

I am able to enter the command...

h**p://ip address:9090/jsonrpc?request={"jsonrpc":"2.0","method":"Input.Down","id":1}

...in a web browser page, and it works fine. If I try a test command from within CCP, it doesn't work. Everything from the {} to as many other combinations as I could try.

I obviously have something wrong in my configuration, but I don't know what it is. I don't feel like my problem is on the HTPC/XBMC/Kodi side, since I am able to issue the commands without any problems from multiple sources and multiple browsers.

Any guidance would be greatly appreciated.
Post 6 made on Sunday August 9, 2015 at 17:07
BizarroTerl
Active Member
Joined:
Posts:
October 2002
591
On the XBMC host shut down XBMC/Kodi. Use nc (aka netcat) to capture the browser command. Then use it to capture the iPad generated command and compare the two. Be sure to have it output to a file in HEX. You can get nc at [Link: joncraton.org]. The command I used was nc -l -p 9090 -o saveddata.txt

I did this in working out why my MX-5000s wouldn't work but telnet would when communicating with winlirc. The file it generated was a hex file and the difference, though minor, was why it wasn't working. Straight text looked identical.
OP | Post 7 made on Sunday March 20, 2016 at 11:30
Chwarg
Long Time Member
Joined:
Posts:
January 2014
52
I finally got to test it and it works.
Thanks very much BizarroTerl.

I even found the codes to jump directly to movies or tv shows and discrete codes for play and pause.

But I still have some issues.
I got all the codes working, except for rewind, fast forward, previous and next.
Do you have working codes for that?
Post 8 made on Tuesday March 22, 2016 at 10:22
BizarroTerl
Active Member
Joined:
Posts:
October 2002
591
I have them but I'm away from my workstation. I'll try to post them later this week.
OP | Post 9 made on Wednesday March 23, 2016 at 16:13
Chwarg
Long Time Member
Joined:
Posts:
January 2014
52
Thanks
Post 10 made on Thursday March 24, 2016 at 22:29
BizarroTerl
Active Member
Joined:
Posts:
October 2002
591
FFWD (ascii/TCP):
{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"fastforward"},"id":1}
Rewind(ascii/TCP):
{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"rewind"},"id":1}
Small step forward(ASCII/TCP):
{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"stepforward"},"id":1}
SmallStepBack(ASCII/TCP):
{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"stepback"},"id":1}
OP | Post 11 made on Sunday March 27, 2016 at 17:32
Chwarg
Long Time Member
Joined:
Posts:
January 2014
52
Thanks a lot.
Do you remember where you found those codes?
Post 12 made on Tuesday March 29, 2016 at 14:20
BizarroTerl
Active Member
Joined:
Posts:
October 2002
591
Spec: [Link: kodi.wiki]
Examples: [Link: kodi.wiki]
Multipage thread w/examples: [Link: forum.kodi.tv]
Post 13 made on Tuesday September 27, 2016 at 19:58
mancave
Lurking Member
Joined:
Posts:
September 2016
1
has anyone tried to use this XBMC driver in Total Control? i cant seem to find where to tell the application driver what ip-address to talk to.


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse