EventGhost 0.4.0 beta test

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

EventGhost 0.4.0 beta test

Post by Bitmonster » Thu Dec 17, 2009 2:54 pm

Ok, it is time to cautiously test the new 0.4.0 branch. This beta test should only address users that are already familiar with EventGhost. Even though 0.4.0 should look and act like 0.3.7 it has many internal code changes. So be prepared that it might have many unexpected bugs and you should only work on a copy of your configuration with it.

The 0.4.0 branch mainly has two new features:
  1. A mechanism to build and install one-file plugin packages. I will talk about this later. Currently we should primarily look if all plugins for 0.3.7 are working in 0.4.0 also.
  2. A new way to build plugins that are based on the MS WinUSB driver. With 0.4.0 there is no need to update the driver package, as the module will create the needed INF on the fly with the settings provided from the plugin and will guide the user through the driver installation.
You can get the 0.4.0 betas from here:
http://www.eventghost.net/downloads/
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: EventGhost 0.4.0 beta test

Post by krambriw » Thu Dec 17, 2009 9:51 pm

Hello,
Unfortunately the Conceptronic plugin did not work anymore
Kind regards

EventGhost 0.4.0.r1287

Code: Select all

22:49:07   Plugin: Conceptronic CLLRCMCE
22:49:07      Error starting plugin: Conceptronic CLLRCMCE
22:49:07      Traceback (most recent call last) (1287):
22:49:07        File "C:\Program Files\EventGhost\eg\Classes\PluginInstanceInfo.py", line 175, in Start
22:49:07        File "C:\Program Files\EventGhost\plugins\Conceptronic\__init__.py", line 118, in __start__
22:49:07        File "C:\Program Files\EventGhost\eg\Classes\WinUsb.py", line 276, in Open
22:49:07        File "C:\Program Files\EventGhost\eg\Classes\WinUsb.py", line 464, in ListDevices
22:49:07      WindowsError: [Error 259] Inga flera data är tillgängliga.

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: EventGhost 0.4.0 beta test

Post by Bitmonster » Thu Dec 17, 2009 9:59 pm

Is the device actually connected?
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

CHeitkamp
Plugin Developer
Posts: 49
Joined: Sun Jan 27, 2008 12:42 pm
Location: Münster / Germany

Re: EventGhost 0.4.0 beta test

Post by CHeitkamp » Thu Dec 17, 2009 10:02 pm

Hi Bitmonster,

I have a suggestion for plugins in future releases:

A combination of the following things:
  • A plugin function, which gets the version information
  • An additional field version in the plugin-configuration
  • A plugin function, which is called when the configuration version differs from the plugin version
This would make it possible to have a clean configuration and well defined updates of the config between plugin-updates.
It may be possible to display a dialog to the user where he can alter the added/changed field.

PS.:
It would be sufficient/better to compare the version information of the configuration structure only. The configuration changes less frequently, than the plugin itself.

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: EventGhost 0.4.0 beta test

Post by krambriw » Thu Dec 17, 2009 10:33 pm

Is the device actually connected?
Yes, first it worked with EventGhost_0.3.7.r1262_Setup

After install of EventGhost 0.4.0.r1287 it stopped working

After re-installing the older version, the remote worked again. I never touched the Hardware dongle in between

Best regards, Walter

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: EventGhost 0.4.0 beta test

Post by Bitmonster » Thu Dec 17, 2009 10:50 pm

OS?
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: EventGhost 0.4.0 beta test

Post by Bitmonster » Fri Dec 18, 2009 12:10 am

This error looks like you have some device connected, but it has no driver installed. Do you have any question-marks in the device manager?
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

Prinz
Plugin Developer
Posts: 194
Joined: Mon Apr 07, 2008 4:58 am

Re: EventGhost 0.4.0 beta test

Post by Prinz » Fri Dec 18, 2009 7:55 am

Hi,

when trying the Webserver plugin, I get following error message:

Code: Select all

08:49:30         Fehler beim Start des Plugins: Webserver
08:49:30         Traceback (most recent call last) (1287):
08:49:30           File "C:\Programme\System\EventGhost\eg\Classes\PluginInstanceInfo.py", line 175, in Start
08:49:30           File "C:\Programme\System\EventGhost\plugins\Webserver\__init__.py", line 466, in __start__
08:49:30           File "C:\Programme\System\EventGhost\plugins\Webserver\__init__.py", line 105, in __init__
08:49:30           File "SocketServer.pyc", line 400, in __init__
08:49:30           File "C:\Programme\System\EventGhost\plugins\Webserver\__init__.py", line 114, in server_bind
08:49:30           File "<string>", line 1, in setsockopt
08:49:30         error: [Errno 10022] Ein ungültiges Argument wurde angegeben

Parameters of setsockopt are:
IPPROTO_IPV6 =  41
socket.IPV6_V6ONLY =  27
Could you look at it?

Regards
Prinz
Mein HTPC:
Mainboard: Gigabyte GA-G33M-DS2R
CPU: Intel E5200
OS: WinXP SP3
Graphic card: NVIDIA GeForce 210 512MB
TV-Cards: 2 * Digital Everywhere FloppyDTV-C, Terratec Cinergy 1200 DVB-C
HTPC software: DVB Viewer / EventGhost

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: EventGhost 0.4.0 beta test

Post by krambriw » Fri Dec 18, 2009 9:48 am

I will try more, also to remove/attach the dongle in between and also to re-install driver
I have no ? marks. The two Conceptronic entries are there under HID

Best regards, Walter

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: EventGhost 0.4.0 beta test

Post by Bitmonster » Fri Dec 18, 2009 5:18 pm

@krambriw & Prinz
Try r1290.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: EventGhost 0.4.0 beta test

Post by krambriw » Fri Dec 18, 2009 8:04 pm

Dear Bitmonster,

It works perfect now with 1290. The drivers for the remote is automatically re-installed during the eg install and after pc reboot, the remote is found and works in eg as before. No change needed to my plugins so far

Thanks, Walter

PS My OS is Vista for this test, later I will try also XP

EDIT: My test under XP went fine as well! I think the smoothest way is the following approach:

- Install EG 0.4.0 and select not to run EG at the end
- Insert the Conceptronic USB dongle
- Install the "EventGhost WinUSB Add-on"
- Start EG
- Add Conceptronic plugin
- You will get red entries in the EG log that the device could not be found
- Answer yes to suggestion to install drivers and follow the instructions
- After successful installation, try to start the plugin and it will work!

Best regards, Walter
Last edited by krambriw on Sun Dec 20, 2009 9:51 am, edited 1 time in total.

Prinz
Plugin Developer
Posts: 194
Joined: Mon Apr 07, 2008 4:58 am

Re: EventGhost 0.4.0 beta test

Post by Prinz » Fri Dec 18, 2009 10:19 pm

Hi,
Bitmonster wrote: Try r1290.
Thanks it works now.

Regards
Prinz
Mein HTPC:
Mainboard: Gigabyte GA-G33M-DS2R
CPU: Intel E5200
OS: WinXP SP3
Graphic card: NVIDIA GeForce 210 512MB
TV-Cards: 2 * Digital Everywhere FloppyDTV-C, Terratec Cinergy 1200 DVB-C
HTPC software: DVB Viewer / EventGhost

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: EventGhost 0.4.0 beta test

Post by Bitmonster » Mon Dec 21, 2009 11:04 pm

r1299 has a new mode when installing a WinUSB plugin. It now has an internal download dialog (so no webbrowser will popup) that will only download the needed files. This also ensures the user only has to restart EG once and only get one UAC prompt.

And I hope we can reuse this download mechanism one day to update plugins or even EG itself.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: EventGhost 0.4.0 beta test

Post by krambriw » Wed Dec 23, 2009 7:56 am

I get this in the eg log from the web server plugin if I have any of my national characters (åäö) in the html document. Build 1290 and Vista

Best regards, Walter

Code: Select all

08:52:15   Webserver socket error /Ctrl/EgCtrl.html
08:52:15   ----------------------------------------
08:52:15   Exception happened during processing of request from ('192.168.10.3', 65171)
08:52:15   Traceback (most recent call last):
08:52:15     File "SocketServer.pyc", line 558, in process_request_thread
08:52:15     File "SocketServer.pyc", line 320, in finish_request
08:52:15     File "SocketServer.pyc", line 615, in __init__
08:52:15     File "BaseHTTPServer.pyc", line 329, in handle
08:52:15     File "BaseHTTPServer.pyc", line 323, in handle_one_request
08:52:15     File "C:\Program\EventGhost\plugins\Webserver\__init__.py", line 285, in do_GET
08:52:15     File "C:\Program\EventGhost\eg\Classes\Log.py", line 158, in PrintError
08:52:15     File "C:\Program\EventGhost\eg\Classes\Log.py", line 144, in _Print
08:52:15   TypeError: sequence item 1: expected string, exceptions.UnicodeDecodeError found
08:52:15   ----------------------------------------

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: EventGhost 0.4.0 beta test

Post by Bitmonster » Wed Dec 23, 2009 10:45 am

Are your documents UTF-8 encoded? Everything else will give you problems, as the new webserver uses jinja2 templating and this enforces UTF-8.

Anyhow, the exception is actually an exception in the exception handling, so it isn't very clear. Try r1307, but it will most likely raise an UnicodeError instead because your files are not UTF-8 encoded.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

Post Reply