Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Support for XBMC2 plugin (formerly XBMCRepeat)

Questions and comments specific to a particular plugin should go here.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
XBMC2 plugin to control XBMC. If you want to flatter me Image
jang430
Experienced User
Posts: 55
Joined: Fri Dec 21, 2012 8:24 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
XBMC2 plugin to control XBMC. If you want to flatter me Image
jang430
Experienced User
Posts: 55
Joined: Fri Dec 21, 2012 8:24 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jang430 »

Thanks Jonib, noted.
bernd
Posts: 10
Joined: Mon Mar 30, 2015 4:39 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
XBMC2 plugin to control XBMC. If you want to flatter me Image
bernd
Posts: 10
Joined: Mon Mar 30, 2015 4:39 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
XBMC2 plugin to control XBMC. If you want to flatter me Image
bernd
Posts: 10
Joined: Mon Mar 30, 2015 4:39 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by bernd »

Thanks a lot, it's working :)
User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
egbaud
Posts: 35
Joined: Tue Mar 18, 2014 1:30 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
XBMC2 plugin to control XBMC. If you want to flatter me Image
egbaud
Posts: 35
Joined: Tue Mar 18, 2014 1:30 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post 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
XBMC2 plugin to control XBMC. If you want to flatter me Image
egbaud
Posts: 35
Joined: Tue Mar 18, 2014 1:30 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by egbaud »

Done. Thank you.
Post Reply