| ECS-L Home Automation and Security Archives |
| Subject: From: Date: | Re: [ECS] Help with External command file... Don Stephens Tue, 4 Jan 2000 11:05:00 -0800 |
Hi Mark:
Sorry to not be clearer....I have a program running that generates a text file called
"command.txt" when certain conditions are met. In this text file is the line
Do Test Flag Set True
I have an Event listed below that checks for this file, and if present sets the state
as above.
Do File:Command Exist Set Reset
Do External Command # Set File:Command Exist
If External Command # Is Not 256
Then File:Command Set Set State
Then File:Command Exist Set Delete
Do Timer:Command File Set 5
ENDIF
If Timer:Command File Is 0
Then Timer:Command File Set 7
This event looks for the File:Command and if present Sets it state as described in the
ECS.HTM....
Set State Sets an Item to a State as specified in the text. The Item name must
be followed by at least TWO spaces (e.g. "Light ON").
This use to work for me (I'm pretty sure) but I haven't used it in a while, and now
it doesn't.
I've defined File:Command as..
ITEM:File:Command
Type:Text
Text :Command.Txt
Thanks;
Don
----- Original Message -----
From: "Mark Gilmore" <omnip@usit.net>
To: <ecs-list@netbloc.com>
Sent: Tuesday, January 04, 2000 10:36 AM
Subject: Re: [ECS] Help with External command file...
> Hi Don,
> ECS has never supported the ability to execute
> Event-Lines in a text file.
> --
> Mark Gilmore
> Omnipotence (ECS home automation software)
> http://www.usit.com/omnip
> 423-745-0026
>
>
> Don Stephens wrote:
> >
> > Morning Mark...
> > I'm sorry I wasn't clearer. I want to process a file using the
> > set state operator..ie
> > Do PC-Bell Set 4
> > When I set a Text Item (a file named command.txt) with the above text in it,
> > to set state, nothing happens. I tried formatting it like the above and
> > PC-Bell 4
> > neither works. Any suggestions?
> > Thanks:
> > Don
> > ----- Original Message -----
> > From: "Mark Gilmore" <omnip@usit.net>
> > To: <ecs-list@netbloc.com>
> > Sent: Wednesday, December 29, 1999 6:06 AM
> > Subject: Re: [ECS] Help with External command file...
> >
> > > Don,
> > > This example will get the 1st char from X.TXT when the
> > > file is created:
> > >
> > > Do Character-A Set X.TXT
> > > If Character-A Is Not None
> > > . . .
> > > Then X.TXT Set Delete
> > > --
> > > Mark Gilmore
> > > Omnipotence (ECS home automation software)
> > > http://www.usit.com/omnip
> > > 423-745-0026
> > >
> > >
> > > Don Stephens wrote:
> > > >
> > > > Hi:
> > > > We use to have a file item that use to force ECS to act on it. I called
> > > > that file "Command.Txt". Something like...
> > > > Do PC-Bell Set 3
> > > > I would create a file named command.txt with the above command in it and
> > ECS
> > > > would ring the bell three times.
> > > > This no longer works. Did Mark change something here, or do I simply
> > need
> > > > to do more research?
> > > > Thanks;
> > > > Don
> > >
>
| Set State | Sets an Item to a State as specified in the text. The Item name must be followed by at least TWO spaces (e.g. "Light ON"). |