Page 88 of 93

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Fri Nov 11, 2016 4:25 pm
by jonib
jang430 wrote: Can you elaborate further how to do this?
Have you searched this thread? as I have answered many times how to use JSON-RPC actions.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Nov 12, 2016 12:51 am
by jang430
Hi Jonib,

I didn't quite understood the instructions. I finally changed keymaps instead to AcivateWindow, and assigned it to a key. I mapped a button to a key instead. It's working now.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Nov 12, 2016 1:09 am
by jonib
jang430 wrote:I didn't quite understood the instructions. I finally changed keymaps instead to AcivateWindow, and assigned it to a key. I mapped a button to a key instead. It's working now.
Good you got a solution.
Next time please ask a bit more specific question(s), and tell me what you have tried, that makes it much easier for me to help.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Nov 12, 2016 1:19 am
by jang430
Thanks Jonib, noted.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Nov 13, 2016 12:27 pm
by bernd
Hello jonib,
The best kind. :twisted:
;)

Sorry, I'm not an native English speaker.
What I'm mean is the menu what you see, directly after Kodi starts. I would need a trigger for Eventghost that tells me what menu item is currently selected. I have different background pictures for each menu item and want to change my led lights at the style of these pictures. It must already trigger if the text is only selected and not just when I confirmed and already into the menu. Hope you understand what I mean. That would be great if it's possible.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Nov 13, 2016 4:26 pm
by jonib
bernd wrote:What I'm mean is the menu what you see, directly after Kodi starts. I would need a trigger for Eventghost that tells me what menu item is currently selected.
Ok, you need to use the "XBMC2\Experimental\JSONRPC" action with method "XBMC.GetInfoLabels" using parameter: (List of other InfoLabels that can be used for other info)

Code: Select all

[["System.CurrentWindow", "System.CurrentControl"]]
It will give you something like this:

Code: Select all

   Result:
   {
     "System.CurrentControl": "TV shows", 
     "System.CurrentWindow": "Home"
   }
"System.CurrentWindow" shows you what window you are in, it will be "Home" when you are at the home/Main menu.
"System.CurrentControl" shows what you have selected like the menu entries, but also widgets and other stuff you can select in the home window (depending on the skin).

Please search the thread how to use JSON-RPC actions (If you don't know), ask again if you can't figure it out.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Nov 14, 2016 1:53 pm
by bernd
Please search the thread how to use JSON-RPC actions (If you don't know), ask again if you can't figure it out.
I don't get it. I found this this and this ,the Example shows how I get the result of "System.CurrentControl" as text on the screen and it works but how can I use this as trigger. Can you show me what code I have to insert in the trigger with the questions marks?

Image

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Nov 14, 2016 5:18 pm
by jonib
bernd wrote:Can you show me what code I have to insert in the trigger with the questions marks?
Sure, one way is to add a "Trigger event" action that replaces your "Zeige OSD" action, put this:

Code: Select all

Kodi.{eg.result["System.CurrentControl"]}
in the Trigger event action, and now you should get a different event for any selected menu. (The "Kodi." text you can change to something else or remove)

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Nov 14, 2016 8:16 pm
by bernd
Thanks a lot, it's working :)

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Dec 04, 2016 8:41 pm
by yokel22
I finished up a webapp that uses EventGhost and this plugin. I was looking to work out any last bugs i missed. If anyone that uses this plugin wants to give it a whirl. You can download it here: viewtopic.php?f=13&t=9487&p=43921#p43921

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Dec 18, 2016 3:20 am
by egbaud
When I use the XBMC2: SendNotification action, I get an error that "Application is not running!"
version = "0.6.33"
But Kodi is running and it's connected to Eventghost.
22:35:38 Plugin: XBMC2
22:35:38 JSON-RPC connected
22:35:38 HTTP API connected
22:35:38 XBMC2: Activating JSON-RPC notifications
22:35:38 XBMC2: Connected to XBMC ( 127.0.0.1 : 9090 ), ready to recive JSON-RPC notifications.
22:35:38 Plugin: Network Event Receiver
22:35:38 XBMC2: Listening for XBMC broadcast events
22:35:38 Plugin: Network Event Sender
Any ideas?

UPDATE

Never mind. I was trying to send the value of a global variable as a notification to Kodi. Problem is, I sent "{eg.global.sysvol}" instead of "eg.globals.sysvol". For some reason, that mistake was interpreted as "Application is not running!". Fixed the spelling and that fixed the problem. Sorry for the false alarm.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Dec 18, 2016 11:02 am
by jonib
egbaud wrote: 22:35:38 XBMC2: Listening for XBMC broadcast events
Do you use broadcast events? as I'm debating if I'm going to remove support for them in the next release as Kodi don't have support for them, and I haven't heard anyone using them.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Dec 18, 2016 3:34 pm
by egbaud
I don't really know what a Kodi broadcast event is, but before I say I don't use them, I do use some events from Kodi. These for example:

xbmc2.videolibrary.onupdate.episode
xbmc2.player.onstop.episode
xbmc2.other.volumedown
xbmc2.other.volumeup

Are those Kodi broadcast events? If so, I use them.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Dec 18, 2016 4:27 pm
by jonib
egbaud wrote:I don't really know what a Kodi broadcast event is,
Broadcast events are the events supported by older XBMC versions (No Kodi versions support it), or possibly some Kodi/XBMC plugins and XBMC4XBOX.
Are those Kodi broadcast events? If so, I use them.
No those events are JSON-RPC Notifications, the "new" way Kodi supports events.
You can disable the broadcast event support in XBMC2 settings as you don't use it.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Dec 18, 2016 4:44 pm
by egbaud
Done. Thank you.