Re: New version 0.5.0-rc3 is out
Posted: Fri Jul 07, 2017 8:41 pm
is there anything you had to do to kodi to get it to work with eventghost? or is it just a plugin for eventghost?
Volume control at 5% steps and simple OSD. The repeat rate is quite slow in 0.5 rc3.kgschlosser wrote:@bskchaos
I am not understanding what you are trying to do with those macros and the autorepeat
This I did but...kgschlosser wrote:@Luca Brasi
I am wondering if you might have an orphaned port.
have you rebooted your computer at all?
You got me there! Looks like RC3 is coming with a pretty old version of XBMC plugin I installed the latest version which was running before with rc2 and everything is fine now Should have figured that out myself. Not the first time this has happenedkgschlosser wrote:You are running a different version of the XBMC plugin. I would check the version of the plugin...
You got it.kgschlosser wrote:and if not then bring the issue to me first
Yea Philips Hue is network attached. Thanks a lot for the help.kgschlosser wrote:well I am going to assume that the hue are network attached devices. so any time you use the TCP stack to send something there is bound to be an increase. there is a whole lot of code it has to go through. the creation of the socket. passing through the firewall. things of that nature. But also when an event gets triggered it has to pass through 3 threads and because you are using the commandline it's actually 4 threads and 2 processes the event has to wiggle through. before it starts to process the macro so i am not a bit surprised the CPU moves at least a little.
Smoooooth!!!kgschlosser wrote:@bskchaos
OK I found the issue.
replace the file eg\WinApi\SoundMixer.py with the attached file
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="0.5.0-rc3">
<Macro Name="Run Application: Ptedit51.exe" XML_Guid="{2908617F-73C6-4B97-B7C0-1BF723D4CEE6}" Expanded="True">
<Event Name="Main.Attached: [u'\\\\?\\USB#VID_04F9&PID_2041#K1G711347#{a5dcbf10-6530-11d2-901f-00c04fb951ed}']" XML_Guid="{F0075C84-8116-4778-9480-EE1063D259A9}" />
<Action XML_Guid="{85ECD6EB-EB1A-46B7-AD93-05C7CA6ECDE1}">
System.Execute(u'C:\\Program Files (x86)\\Brother\\Ptedit51\\Ptedit51.exe', u'', 0, False, 2, u'', False, False, u'', False, False, False, False)
</Action>
</Macro>
</EventGhost>Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="0.5.0-rc3">
<Folder Name="Device Events" XML_Guid="{DA7BC0E3-0A75-4E5D-8CBF-7DCB37B56325}" Expanded="True">
<Macro Name="Connect" XML_Guid="{9BB8645B-0834-48D7-9104-9DCE0CB75C93}" Expanded="True">
<Event Name="System.DeviceAttached" XML_Guid="{C66DA8E7-FA65-426D-A4C4-E1C95134C2E8}" />
<Action XML_Guid="{C07FFDBC-7CA3-4EDE-8F25-518CD4A9E63A}">
EventGhost.TriggerEvent(u'{"Attached: "}{eg.event.payload}', 0.0)
</Action>
</Macro>
<Macro Name="Remove " XML_Guid="{1EA5F75F-31A9-4267-8691-ABE0469E1853}" Expanded="True">
<Event Name="System.DeviceRemoved" XML_Guid="{F7635931-A4BA-4FF3-A771-B81503602979}" />
<Action XML_Guid="{E97B9114-CBB4-4647-8468-7FF871412B2D}">
EventGhost.TriggerEvent(u'{"Removed: "} {eg.event.payload}', 0.0)
</Action>
</Macro>
</Folder>
</EventGhost>Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="WIP">
<Action XML_Guid="{BFF15496-73B7-4235-BAB2-FC7177A53B58}">
EventGhost.PythonScript(u"device = eg.event.payload[0]\n\nMy_USB_Stick = u'\\\\\\?\\\\USB#VID_0951&PID_1603#899801162008011514251DBD#{a5dcbf10-6530-11d2-901f-00c04fb951ed}'\nMy_SDCARD = u'\\\\\\\\?\\\\USBSTOR#Disk&Ven_Generic&Prod_STORAGE_DEVICE&Rev_9451#000000009451&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'\nPTouch = u'\\\\\\\\?\\\\USB#VID_04F9&PID_2041#K1G711347#{a5dcbf10-6530-11d2-901f-00c04fb951ed}'\n\nif device == My_USB_Stick:\n eg.plugins.System.Execute(u'notepad.exe', u'', 0, False, 2, u'', False, False, u'', False, False, False, False)\nelif device == PTouch:\n eg.plugins.System.Execute(u'C:\\\\Program Files (x86)\\\\Brother\\\\Ptedit51\\\\Ptedit51.exe', u'', 0, False, 2, u'', False, False, u'', False, False, False, False)\nelse:\n eg.plugins.EventGhost.TriggerEvent('unknown_device_attached')\n")
</Action>
</EventGhost>