OK,
I have put the file __init__.py in the good folder.
I try to create a new xml file with the code that you give:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1582">
<Folder Name="Json" Expanded="True">
<Macro Name="XBMC2: JSONRPCEventsConnect" Expanded="True">
<Event Name="Task.Created.XBMC" />
<Event Name="Task.Activated.XBMC" />
<Action>
XBMC2.JSONRPCEventsConnect()
</Action>
<Action>
XBMC2.HTTPAPI(u'SetBroadcast', u'2', 5, True)
</Action>
</Macro>
</Folder>
</EventGhost>
But I have lot of errors:
Code: Select all
---> Welcome to EventGhost <---
Unhandled exception in WorkerThread <EventThread>:
Callers stack:
File "wx\_core.pyc", line 8010, in MainLoop
File "wx\_core.pyc", line 7306, in MainLoop
File "wx\_core.pyc", line 14660, in <lambda>
Traceback (most recent call last) (1582):
File "C:\Logiciels\Utilitaires\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
self.HandleAction(action)
File "C:\Logiciels\Utilitaires\EventGhost\eg\Classes\ThreadWorker.py", line 289, in HandleAction
action()
File "C:\Logiciels\Utilitaires\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Logiciels\Utilitaires\EventGhost\eg\Classes\EventThread.py", line 142, in StartSession
actionThread.Func(actionThread.StartSession, 120)(filename)
File "C:\Logiciels\Utilitaires\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Logiciels\Utilitaires\EventGhost\eg\Classes\ActionThread.py", line 39, in StartSession
eg.document.Load(filename)
File "C:\Logiciels\Utilitaires\EventGhost\eg\Classes\Document.py", line 145, in Load
root = self.RootItem(self, node)
File "C:\Logiciels\Utilitaires\EventGhost\eg\Classes\RootItem.py", line 55, in __init__
ContainerItem.__init__(self, parent, node)
File "C:\Logiciels\Utilitaires\EventGhost\eg\Classes\ContainerItem.py", line 38, in __init__
for childNode in node
File "C:\Logiciels\Utilitaires\EventGhost\eg\Classes\ContainerItem.py", line 38, in __init__
for childNode in node
File "C:\Logiciels\Utilitaires\EventGhost\eg\Classes\ContainerItem.py", line 38, in __init__
for childNode in node
File "C:\Logiciels\Utilitaires\EventGhost\eg\Classes\ActionItem.py", line 69, in __init__
plugin = getattr(eg.plugins, pluginStr).plugin
AttributeError: 'Bunch' object has no attribute 'XBMC2'
Anyway, I can use my previous xml file.
I'm looking in the XBMC2 plugin and I don't know where is the function which switch offthe screen when I play music.
Can you help me one more time?
Thank you