Very nice work. I currently can't try it out, because I disassembled my Lirc receiver.
jinxdone wrote:
1. If no socket connection can be opened, disable the plugin (Same what the Disable Item action does, and as far as i understand this might not be currently possible)
No, and it shouldn't disable itself. But you can raise an exception inside your __start__ method to indicate your plugin didn't started up correctly. EG will then show your plugin in red. Just write:
Code:
raise eg.Exception("The reason why it didn't work")
But EG will regardless of that call your __stop__/__close__ methods, so you have to take care that they don't depend on something that should have done successful in the __start__ method.
jinxdone wrote:
2. A better way of creating enduring events is needed, as the current one is quite a hack, so ideas are welcome.
You can use eg.RawReceiverPlugin instead of eg.PluginClass. RawReceiverPlugin has an internal repeat supression, that users can fine tune. This tuning has to be done with a Python script currently, but this might enhance in the future.
http://www.eventghost.org/forum/viewtopic.php?t=34jinxdone wrote:
Btw why there aren't attachments allowed in this forum?
They are not "disallowed", the forum software simply has no function for them. It would need an addon and such addons make updating the forum software complicated. But we will find a way for uploads some day.