LinuxMCE Forums

General => Developers => Topic started by: ddamron on December 30, 2007, 11:56:10 pm

Title: GSD and Message Interceptors: Need more info..
Post by: ddamron on December 30, 2007, 11:56:10 pm
I (again) was doing more research...
Found http://wiki.linuxmce.org/index.php/Message_Interceptors many times, but it just clicked last night, this MIGHT be what I need to intercept scenario information...

Calling all devs (and devs to be):  Any tips, suggestions, comments, speculation would be greatly appreciated!

I've attempted a few MessageSend commands.. but I don't have enough information about Scenarios..

Here's what I would like to do:

Intercept the actual FIRE SCENARIO command... and have DCE pass that to me.
The other half of that is to figure out all devices IN those scenarios... so I can set up groups..


Of course, I'm in Ruby.. so I'll have to interpret the wrapped result..

It seems the more I learn, the more I want to do... lol

Thanks ahead of time guys!

Title: Re: GSD and Message Interceptors: Need more info..
Post by: tschak909 on December 31, 2007, 03:27:19 am
Scenarios are called Command Groups by the DCE Router itself.

They are stored in the CommandGroup table, and are done via by firing an Execute Command Group command from the CORE->DCERouter device. All you need is the PK_CommandGroup # from the CommandGroup table.

-Thom
Title: Re: GSD and Message Interceptors: Need more info..
Post by: ddamron on December 31, 2007, 04:28:10 am
ummm....

That's the command I want to intercept... EXECUTE COMMAND GROUP from the CORE -> DCERouter..
In a nutshell, I want to INTERCEPT that command, so I can fire a GROUP insteon command..
I don't really care if DCERouter processes the command too.. by the time it sends me all the 'commands' in that group, I should have executed the group command already.

I didn't know that was the command sent to DCERouter to execute scenarios, Thanks mang!

I'll root around the DCE again, looking for that command... also anything relating to that command.. It would be SUPER if I could get a list of commands in a command group..

Thom, Again, you've proven yourself worthy!

Dan