Skin beschikbaar voor Kodi Krypton!! › Forums › Audi Can-Bus Forum › Kodi – bedienen met Rns-e
- Dit onderwerp bevat 28 reacties, 7 deelnemers, en is laatst geüpdatet op 3 jaren, 3 maanden geleden door
Aleksandar.
-
AuteurBerichten
-
14 juni 2016 om 13:38 #392
Janssuuh
SleutelbeheerderWanneer je Rns-e op TV / VIDEO staat (of de nieuwere versies op MEDIA) dan genereren een aantal knoppen bij gebruik Can berichten.
Deze Can berichten zijn met behulp van bijvoorbeeld een Python script om te zetten in Kodi commando’s. Ik heb ervoor gekozen om JSONRPC commando’s te gebruiken. Dit zijn korte commando’s die middels HTTP headers verstuurd worden en waarop Kodi vervolgens reageert. Na op de ‘Select’ knop (de grote draaiknop) te duwen gebruik ik bijvoorbeeld de volgende code: [xbmc.executeJSONRPC(‘{“jsonrpc”:”2.0″,”method”:”Input.Select”,”id”:1}’)]
Doordat je met deze functionaliteit feitelijk een webserver de mogelijkheid geeft om Kodi te besturen, dien je deze functie in Kodi toe te staan. “Allow control of Kodi via HTTP” in het “Webserver” menu.
Het Python script dat ik gemaakt heb voor besturing middels de Rns-e knoppen:
Nu downloaden: Kodi bedienen met Rns-e
Of download de direct installeerbare Kodi plugin:
Nu downloaden: Plugin Kodi bedienen met Rns-e
20 juli 2016 om 23:23 #413menno
DeelnemerBizar wat een timing!
Na heel wat omzwervingen ben ik bij de pagina van een landgenoot uitgekomen die precies doet wat ik ook wil doen.
Ben op je site gekomen via;Audi A4/A6 B6/B7/C5 – RNS-E controlling Raspberry Pi 3 with Kodi
Anyways,
Mijn situatie is iets anders, ik heb namelijk een VW EOS uit 2006, ook met een MFD (multi funcional display) met DDP, en dan ook de hoge versie net als jij in je audi.
Ik denk erover een Raspberry pi 3 te kopen, vanwegen zn ingebouwde BT/Wifi, dat scheelt weer wat usb – poortjes. Ik heb ook een odroid c2 liggen maar zou dan even moeten kijken of die CAN-BUS break out heeft. Daar is wel weer een android image voor.
Ik zag in het carberry project bediening via het stuurwiel (MFSW) en vroeg me al af waarom ik niet ook de knoppen op het apparaat zelf zou kunnen gebruiken, nu ik jouw site heb gezien zie ik dat dit geen probleem is.Echter zou ik wel óók de knoppen op mn stuurwiel willen gebruiken, hoe programmeer ik die? Hoe vang in de CAN-BUS berichtjes af en assign zie via het py script aan JSRCP knopjes??
Supervette site in ieder geval, en ik blijf dit nauw volgen. Wellicht vind je het leuk samen een beetje te vogelen aan een VW variant van het project!
31 juli 2016 om 12:08 #415Eric T.
DeelnemerHello,
I have an issue getting this working on my setup. I’ve installed the addon in Kodi using the latest .zip version. When I restart kodi, I get an error message and this is what I have in my kodi.log:
11:57:27 T:1779295152 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.ImportError'> Error Contents: No module named can Traceback (most recent call last): File "/home/pi/.kodi/addons/script.service.JanssuuhRnseBediening/addon.py", line 12, in <module> import can ImportError: No module named can -->End of Python script error report<--
Somehow, the can module can’t be loaded. My setup is debian jessie Lite, with python3.4. I’ve installed hardbyte-python asper instructions.
Any ideas how I can solve this ?
Thank you and best regards
31 juli 2016 om 20:36 #418Eric T.
DeelnemerHello again,
I solved the above issue by setting the default python version on my Jessie Lite to “python2.7”, then re-installing “hardbyte-pythin” did the trick. I don’t understand why installing hardbythe-python und “python3.4” environment does not work. If you happend to have both python2.7 and python3.4 installed on your system, just use the “update-alternatives” command to set the default python environment.Everything is now working and I’m happily using the RNS-E in an Audi A3 to control kodi !
Thank you !
Greetings,Eric
31 juli 2016 om 20:40 #419Eric T.
DeelnemerHowTo use the “long press” option of the Knob to call the context menu in Kodi?
Hello again,
is it possible to use the “long press”-option of the RNS-E Knob to call the context menu in Kodi ? This would be really usefull in order to extend the control of Kodi. Any ideas which CAN message ist send and how to extend the current plugin would be greatly appreciated.Thank you and best regards,
Eric31 juli 2016 om 21:29 #420Janssuuh
SleutelbeheerderHi,
Yes, that could be built.
Pressing the knob sends 461 37 30 01 00 10 00 and it keeps sending this message until you release (Like every 100ms). On release the rns-e sends (I thought) 461 37 30 04 00 10 00 (might be slightly different). So you just need to count 01 messages until 04 is received.31 juli 2016 om 22:19 #421Eric T.
DeelnemerHey !
thank you very much for the quick reply. That is a step forward. Now I need to figure out how to change your addon in order to get this done. I think I might need you help here. Whenever you have time… I have a challenge with the “JASONRPC” message I need to magp this to, and also, building the loop around the CAN msg between Press / Release is not so obvious.
If anyone has an idea, please share.Thank you !
Eric31 juli 2016 om 22:29 #422Janssuuh
SleutelbeheerderSure, I’d like to help! I’ll get back from my hollyday august 6th.
Please remind me then. I might be able to help you that week.-
Deze reactie is gewijzigd 8 jaren, 5 maanden geleden door
Janssuuh.
6 augustus 2016 om 21:05 #424Eric T.
DeelnemerGood Evening Jeroen,
I hope you had a nive holiday. I don’t want to stress, but this is just a friendly reminder, that I’m seating here on hot coals waiting for your help.Also, I would love to implement the “Car info” section of the skin as you did in this video: https://youtu.be/5VFpS-8yvCM
Could you help me on that as well ?
Thank you !
Greetings,
Eric6 augustus 2016 om 22:30 #425Janssuuh
SleutelbeheerderHi Eric,
I’ve been searching my can-dump logs.
Pressing the big knob generates the “461 # 37 30 01 00 10 00” message, each 100ms you keep pressing it.
Releasing the knob sends the “461 # 37 30 04 00 10 00” message 5 times!So in the script.service.JanssuuhRnseBediening.zip plugin you should change the #Press part of the code into (not yet tested);
elif msg == (“37 30 01 00 10 00”): #Press
_____press+=1
elif msg == (“37 30 04 00 10 00”): #Press Release
_____if pressrls>4:
__________if press<5: #Press Kort
_______________xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Input.Select","id":1}')
__________else: #Press Lang
_______________xbmc.executebuiltin('XBMC.ActivateWindow(Contextmenu)')
__________press=0
__________pressrls=0
_____else:
__________pressrls+=1(_____ = indent, forum removes them :(. )
Also don't forget to declare the integer at the start of the script (pressrls=0).You also need to edit the skin, because the Contextmenu screen (DialogContextMenu.xml) has a false lay-out, because I didn't yet fitted it for Rns-e.
The "Car Info" screen and it's code (and the mid-fis content) isn't published in the LITE skin nor the plugins (rns-e bediening / rns-e to fis) on the website. I'm still planning on packaging a full version of all plugins / skin and maybe ask a small fee for it. (€5,- to €10,-) Though, some functions would only work on a monochrome (red) FIS!
Hope it helps 😉
Kind Regards
Jeroen6 augustus 2016 om 23:32 #426Eric T.
DeelnemerHello Jeroen,
thank you very much for the quick help. I’ll be testing that code of yours about the long press and the context menu and give you feedback here.
As for the “Car Info” screen, I’m ready to pay your price to get that implemented on my machine. The huge work you’ve done on the skin and the controls ist allready worth that much. I’m on Audi A3 8P. Let me know when the package is available… I can do some testing for you as well if you want !
Greetings,
Eric7 augustus 2016 om 00:08 #428Eric T.
DeelnemerHello again,
perfect! I’ve got it working and I say thank you very much !!!
I hat to use the method: “Input.ContextMenu” instead of “XBMC.ActivateWindow(Contextmenu)'” and it works as it should.Greeting,
Eric18 augustus 2016 om 13:08 #459kno odra
DeelnemerCan you write how exactly i should this do? How install this script. I still dont understand.
18 augustus 2016 om 13:31 #461Janssuuh
SleutelbeheerderHi kno odra,
I a added the download-link for usage of direct installing to Kodi.
(navigate within Kodi to ‘Install from .zip file’)Hope it helps!
5 november 2016 om 01:55 #1854reini
DeelnemerHallo Jeroen,
Du hast ein SUUUPER projekt aufgezogen,
nach dieser Lösung suche ich sehr sehr lange
habe schon vor drei jahren mein raspberry an mein raspberry angeschlossen
aber das mit der steuerung habe ich nicht hin bekommen (keine kenntnissen über Phyton)
nur kleinigkeiten vielleichthättest du vielleicht eine komplette anleitung für mich und mein Audi a6 4b
wenn es dir keine umstände macht.mit freundlichen grüßen
roma -
Deze reactie is gewijzigd 8 jaren, 5 maanden geleden door
-
AuteurBerichten
- Je moet ingelogd zijn om een antwoord op dit onderwerp te kunnen geven.