Page 1 of 1

New action type: Execute external program

Posted: Wed Aug 04, 2010 6:26 pm
by hhg
Hi

Still very new to DomotiGa and this forum, but I'm being more and more impressed by Domotiga - A very flexible HA program.

I have a need to reconfigure my camera at sunset and sunrise, and was thinking: Well, DomotiGa knows when it is sunset...
So I added a new action type: Execute external program. See attached screen shot.
Edit Action Form
Edit Action Form
editaction.png (21.15 KiB) Viewed 3264 times
The patch is against revision 372. I hope others will find it useful. And that Ron will include it in a future version.

Best regards
hhg

Re: New action type: Execute external program

Posted: Thu Aug 05, 2010 8:57 am
by RDNZL
Hi,

thanks for your work!

Will add it to the code repository once I have cleared my jet-lag after returning yesterday from a long stay in Indonesia.
Will also post other DomotiGa code still laying around here.

Re: New action type: Execute external program

Posted: Fri Aug 06, 2010 11:33 am
by RDNZL
I have added your code to revision 390.
Thanks.

Re: New action type: Execute external program

Posted: Sat Aug 07, 2010 12:22 pm
by hhg
Hi Ron

Thanks for adding.

I've noticed you added (in rev 391) code to set the tab index. That is actually already handlet in your code in line 56-63 IF the table actiontypes is populated - Or are you going to dump this table? Is it used for anything else?

It could be replaced with this line:

Code: Select all

tabActionTypes.Index = rResult!type - 1
Either way, it work as it is, i've was just wondering...

Best regards
hhg

Re: New action type: Execute external program

Posted: Wed Aug 11, 2010 10:54 am
by RDNZL
For some reason it didn't work the way I wanted, but I will review the code and change it back if needed.