Example – Control Kodi with Rns-e

Note: If you have the full AudiRns Full Beta plugin, the following functionality is already processed.
Please install the following plugin so not, of deinstalleer deze.

 

If your Rns-e is on TV / VIDEO mode (or newer versions on MEDIA) using the buttons generate Can messages.

For example, this Can message are using a Python script to convert in Kodi commands. I have chosen to JSONRPC commands. These are short commands that are sent through HTTP headers and then responds that Kodi. After on the ' Select ' button (the large rotary button) for example, I use the following code to respond: [xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Input.Select","id":1}')]

Because this functionality actually allows a Web server to control Kodi, you need to allow this feature in Kodi. "Allow control of Kodi via HTTP" in the "Web server" menu.

800px-Settings.services.webserver

The Python script I develloped for control with Rns-e buttons:

Rnse_Control (171 downloads )

 

 
Or download the directly installable Kodi plugin:

Download now: Plugin Kodi operate with Rns-e
 

 
[whohit]Control Kodi with Rns-e[/whohit]

Subscribe
Email me at:
13 Comments
oldest
latest most voted
Inline feedbacks
View all comments
farfenkugell
10 year ago

Sorry, but where exactly this should be put? I doubt that I have /root/.xbmc/userdata/ directory
But in my rasbian lite there is /home/kodi/.kodi/userdata/ where I have put autoexec.py
Can I put it just in here and save as Rnse_Bediening.py ?

farfenkugell
10 year ago
Reply to Janssuuh

Maybe you could archive your. kodi folder? I believe I have all set up correctly, CANbus command line works, but kodi does not use it at all.

farfenkugell
10 year ago
Reply to Janssuuh

Yes, I did. Had to adjust text a bit as ‘ ’ were not copied correctly.

farfenkugell
10 year ago
Reply to Janssuuh

Will try to play around more next week. Do I need to change username/pass for webserver login? I use default rasbian image (not lite). All kodi configs go to /home/pi/.kodi
Should it be set as in image or as “pi” which is user which automatically logins.

farfenkugell
10 year ago
Reply to Janssuuh

Uninstalled old plugin, then installed new one. nano /home/pi/python_can.py and moved # to the second line, Still no go. Rebooted, tested again via command above, working. Will check later how it goes in the car.

kno odra
9 year ago

Can you write how exactly i should this do? How install this script. I still dont understand.

Marcel
6 year ago

Hello!

I just look at this site and find it very interesting!
I have a convertible with a4 b7 system Rns (I do not know what type)
Very much I would like discussed a system behind building. Now I'm not a programmer ? quite handy.

Can someone tell me exactly what all and what type of raspberry to buy? Then I buy here software.

Again very very interesting!

Best regards Marcel

Audio_nl@hotmail.com