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.
Post Reply
kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by kricker »

If it has a "window" you can look at adding action\window\close. First you'll have to find the window you want to close. Best to start a new thread for this. ;)
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by Livin »

jesterod wrote:does any one know a way to close an app like kill prossess from eg?
i know it has sothing to do woth this plugin but you guys sem to know what your doing
A - don't post unrelated stuff in a thread dedicated to a topic unrelated
B - yes, it has been discussed/solved... search the forum.
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
jesterod
Posts: 44
Joined: Mon Sep 13, 2010 11:09 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jesterod »

Livin wrote:A - don't post unrelated stuff in a thread dedicated to a topic unrelated
B - yes, it has been discussed/solved... search the forum.
C - you are way late and i got it when kricker posted
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by Livin »

jesterod wrote:
Livin wrote:A - don't post unrelated stuff in a thread dedicated to a topic unrelated
B - yes, it has been discussed/solved... search the forum.
C - you are way late and i got it when kricker posted
His post tells you how to close an app... it does not technically "kill processes" as you asked - it makes a request to the OS to close the app. There is a difference - I took your request literally this is why I posted.
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
the.bartman
Posts: 2
Joined: Wed Sep 22, 2010 8:10 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by the.bartman »

Hi,

First of all Great plugin. Solved most of my problems to get my remote to work.

I modified the __init__.py file a little. (Added the red,green,yellow and blue buttons).

My question is: How do i get EventGhost to load the changes I made?

(When I add a new plugin, I see the modifications are there, but is there a way to refresh the plugin, so i do not have to add all the events again after a madification of the __init__.py file?)
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib »

the.bartman wrote:First of all Great plugin. Solved most of my problems to get my remote to work.
:D
I modified the __init__.py file a little. (Added the red,green,yellow and blue buttons).
Mind showing what you modified? maybe it can be added to my plugin.
My question is: How do i get EventGhost to load the changes I made?

(When I add a new plugin, I see the modifications are there, but is there a way to refresh the plugin, so i do not have to add all the events again after a madification of the __init__.py file?)
Unfortunately I don't know any other way than to delete all actions belonging to the plugin and then deleting the plugin, and then to add the plugin again. :( Of course you would need to assign all remote buttons again.
But if you only added 4 new buttons, it can't be that hard to add them manually with Add Macro/Action? that's what I do.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
the.bartman
Posts: 2
Joined: Wed Sep 22, 2010 8:10 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by the.bartman »

These are the things i added...

Code: Select all

REMOTE_BUTTONS = (
(eg.ActionGroup, "Remote", "Remote", None, (
...
    ("RemoteRed", "Red", "", "Red"),
    ("RemoteGreen", "Green", "", "Green"),
    ("RemoteYellow", "Yellow", "", "Yellow"),
    ("RemoteBlue", "Blue", "", "Blue"),
    ("RemoteLanguage", "Language", "", "Language"),
)),
)
I'll try to add them manually the next time i add something, I didn't know this could be done...
Thanx...
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by Livin »

jonib,
been using the updated version, working without issues for me. thx
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib »

Livin wrote:been using the updated version, working without issues for me. thx
Thanks for testing. Did you test the GetCurrentlyPlayingFilename command?, and on what XBMC version?

I'm finishing a new test version that should allow to run any JSON-RPC and HTTP API commands that XBMC supports, just some boring stuff left, hopefully within the week.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by Livin »

I'm on beta2

I have not tried to grab any info from it yet. I'd like to so that I can trigger Macros based on what XBMC is doing.
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib »

OK finally I'm finished with the next experimental/test version of XBMCRepeat, this time the new actions are a bit more useful then the last test version.I have added 3 new actions in an Experimental action group.

JSONRPC get more info here.
Ex2.PNG
Just put any relevant parameters for a command in the parameter textbox. if you want to use results from a previous command, the standard {eg.result} wont work so you need to use this instead {{eg.result}} (double curly braces).
What a method returns varies, so the log option shows any results in EventGhosts log.
The first time adding the JSONRPC action you need to press the update button while XBMC is running to get the list of current methods the XBMC supports.

HTTPAPI get more info here.
Ex3.PNG
Just put any relevant parameters for a command in the parameter textbox. if you want to use results from a previous command, the standard {eg.result} works.
What a method returns varies, so the log option shows any results in EventGhosts log.
The first time adding the HTTPAPI action you need to press the update button to download(from the internets) the list of current commands the current XBMC supports.

SendMessage the last new action will send a notification to XBMC with a custom title and message.

As these are experimental actions I might need to change them in later versions, to fix bugs or I need to change them to work better.

If you dare :twisted: to test this please report any problems or suggestions. And I absolutely forbid anybody to look at the code(as it's ugly and might scar you for life :mrgreen: )

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
jesterod
Posts: 44
Joined: Mon Sep 13, 2010 11:09 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jesterod »

im sorry but i must look at the code so i can append its name to XBMCRepeat2 or XBMCRepeatbeta
EDIT:
looked clean to me but im no coder but it looked pro to me and not like if i where to open an .exe in notepad lol thats not pretty
EDIT2:
gets an error on startup

Code: Select all

Error while loading plugin-file C:\Downloads\EventGhostbeta\plugins\XBMCRepeatbeta.
Traceback (most recent call last) (1397):
  File "C:\Downloads\EventGhostbeta\eg\Classes\PluginModuleInfo.py", line 70, in __init__
    __import__(moduleName, None, None, [''])
  File "C:\Downloads\EventGhostbeta\plugins\XBMCRepeatbeta\__init__.py", line 19, in <module>
    from xbmcclient import *
ImportError: No module named xbmcclient
Last edited by jesterod on Fri Oct 01, 2010 1:24 am, edited 1 time in total.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib »

jesterod wrote:im sorry but i must look at the code so i can append its name to XBMCRepeat2 or XBMCRepeatbeta
The new actions don't affect the old actions so you could just overwrite the old version, you can backup the old one first if you like.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
jesterod
Posts: 44
Joined: Mon Sep 13, 2010 11:09 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jesterod »

to late lol
jesterod
Posts: 44
Joined: Mon Sep 13, 2010 11:09 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jesterod »

well i fixed the problem i had with it loading but it wont send a message to my old xbox it does send to the windows based xbmc tho so i guess my xbox ver is to old witch kinda sucks
Post Reply