HomeGenie Forum

Automation Program Plugins and Wizard Scripting => Help => Topic started by: sbash on February 14, 2014, 03:36:56 PM

Title: External Scripts
Post by: sbash on February 14, 2014, 03:36:56 PM
Greetings,

I have a handful of various scripts which run within the Linux OS to manage some features of my home automation and interact with the various servers and computers I have scattered throughout my house.  Is it possible to call OS level scripts from HomeGenie?

Thanks!
Title: Re: External Scripts
Post by: bkenobi on February 14, 2014, 04:49:15 PM
I think you would need to use the Execute method, but I haven't tried that.  Other sources suggest a different approach.

http://mono.1490590.n4.nabble.com/excute-linux-command-under-mono-C-td1533563.html

http://stackoverflow.com/questions/206323/how-to-execute-command-line-in-c-get-std-out-results
Title: Re: External Scripts
Post by: amselem on February 24, 2014, 09:33:28 PM
I'm also interested in calling OS processes from HG (Windows OS).

Can you give an example?

Thank you!
Title: Re: External Scripts
Post by: sbash on February 24, 2014, 10:13:06 PM
I have not had a chance to play around with this yet, I will report back my results when I can...
Title: Re: External Scripts
Post by: Gene on February 24, 2014, 11:35:27 PM
Hi,

hg shouldn't allow this.
The only allowed way for communicating with other applications and other "things" should be using helper classes.
For example using a tcp connection or an http one.
You're still free to hack =) let me know if any of you achieve that.

Cheers,
g.