Page 1 of 1

.net and eventghost

Posted: Sun Jul 14, 2013 2:23 pm
by chef
Hello, I am a vb.net developer and I am currently developing a kinect sensor application called kinect and control. Mostly at the moment this application controls media browser 3. However there has been some feature requests to have the application control home automation devices. Media browser is accually just one part of the bigger picture. I am currently working on building contexts internet application. Media context consisting of media browser, research contexts consisting of Google applied API, and would like add eventghost as the controller for home automation. I understand the exe switches for eventghost, and notice that a lot of code for this app is built in python. From a .net perspective I would like to implement more than commandline switches to "kinect and control" but implementing a more direct interface between these to applications. If anyone is interested in continuing this conversation I look forward to the input.

Thank you again

Chef

Re: .net and eventghost

Posted: Sun Jul 14, 2013 5:53 pm
by krambriw
Hi, even if I for the moment do not see any personal interest in the kinect stuff, I would anyway suggest you to look at socket communications. There are several plugins developed and included in EG already like nework send/receive plugins, the network broadcast plugin. I have also used sockets in some of my own plugins I have developed.

Try first to add sending possibilities from you code in vb.net. Then add one of the plugins mentioned (Network receiver for TCP or Network Broadcaster for UDP to check if you receive the messages in EG.

There are many samples on the net for python how to write socket servers and clients.

Best regards, Walter

Re: .net and eventghost

Posted: Tue Jul 16, 2013 8:13 pm
by chef
Thank you for the reply. The broadcasts plug in looks to be exactly the direction I should go in. This should make for an interesting addition to kinect and control. This will work perfectly since kinect and control works was client for the media browser server already.

The use of COM objects should be a straight forward implementation in vb.net. Perhaps if I get the ball rolling I maybe able to post some examples for the next .net dev to find as well.

Thank you again.

Re: .net and eventghost

Posted: Fri Jul 19, 2013 9:06 am
by miljbee
Hello, I have developed a long time ago the TCP Events plugin.

This plugin enable a "rich" dialog between 2 eg (generating events of course, but also sending data, requesting data, remote evaluation of python expr ...)

I Have also coded a .Net DLL that implements all the functionalities of this plugin. I haven't yet published it because it still need some cleaning and documentation. But is is 100% working and stable (It runs 24/7 on my setup for various modules of my HA system).

Have a look here for the features of the plugin :
viewtopic.php?f=2&p=16803

PM Me if you are uinterrested and want the C# DLL

Regards,