PDA

View Full Version : change request for event code dialogs...


bjkiller
04-06-2010, 01:15 PM
Hi Dean,

I did made a lot of event handling code for catch events of grandconcerto and squeezebox'es. trigger/event handling interfaces is not user friendly.
my the cycle of writing code is:

label begin:
choice trigger event tab, and choice right trigger. after change button
every time need to resize screen of writing code
fix something in code.
after close some 3 screens.

flash log
MAKE/WAIT A TEST EVENT
open log viewer press [QUERY] to see log - if everything OK.

close the log viewer...and again goto to label begin to fix

may be good idea to short this cycle, at least to able keep log viewer separate and put [flush] button on the viewer dialog to clean.

feature request: filter to catch events by specific driver, like squeeze.
i do following code to catch it....i think possible to remove red marker code and replace just with something much much simple.
this code catch volume events from GrandConcerto Keypads and update value on relative squeezeboxes.
I have 6 squeezeboxes that connected to 6 sourcers of grandconcerto.

http://img515.imageshack.us/img515/5237/dialog1.png

http://img97.imageshack.us/img97/6606/editscreen.png

Dean Roddey
04-06-2010, 09:32 PM
On the log thing, use the Log Monitor program, not the Log Query dialog. The Log Monitor program will show you live log file output, so it's much better for live debugging of actions. The query dialog is more for after the fact searching.

On the other thing, you can already do that. One of the filter types will filter for events from a specific driver, so that you don't have to check for it in your event handler.

bjkiller
04-07-2010, 01:13 PM
On the log thing, use the Log Monitor program, not the Log Query dialog. The Log Monitor program will show you live log file output, so it's much better for live debugging of actions. The query dialog is more for after the fact searching.


thank you.


On the other thing, you can already do that. One of the filter types will filter for events from a specific driver, so that you don't have to check for it in your event handler.
Dean, please advice in more details!

Dean Roddey
04-07-2010, 01:31 PM
Dean, please advice in more details!

Oops, I was wrong on that one I think. There isn't one to just check for field change events from a particular device. It's only for a particular device.field. So I'd have to add another one for that, you are right.

bjkiller
04-07-2010, 02:10 PM
i have of such kind like 4 events filters for CADDX NX-8E alarm system, GrandConcerto, Squeeze boxes, SageTV HD extenders soon. i think it's very useful feature.