|
ECS-L Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | Re: [ECS] Reading a text file into a number Scott Danks Fri, 03 Mar 2000 16:09:41 -0600 |
Fri, 03 Mar 2000 16:09:41 -0600
Hi AJ..
I am still testing my event that gets a specific wav to play if someone calls in. I
will post it as soon as I'm sure it's working, but in the testing part, it looks to
be working pretty good. I'm at work, so I will have to try and remember what I do,
here is my suggestion.
define the input char as type character
define the cur temp as type file pointing to cur temp.txt
define input string as type text
do input string set re-define text
while input char is not none
do input char set cur temp
if input char is GE 0
and input char is LE 9
then input string t1/a<- input char
endwhile
do cur temp# t1<-t1 input string
This is probably not the best way to do it, but it works for me when I code this way.
I will have to look at the set/char function.
Scott Danks
>>> "A.J. Griglak" <aj@griglak.com> 03/03 12:06 AM >>>
Can someone please explain how to read a text file into a Number Item in
ECS???
I have been looking at the TVL Parse event that's in Example.CFG and for the
life of me can't figure it out!!!
I have a text file called cur temp.txt that holds the current temperature,
parsed from weather.com. It looks like this:
36degrees
I would like to have an Item in ECS that is of type number that I can do
something like
If cur temp# IS LT 32
Then msg:It's Cold Set Speak
I just don't get the Set/Char operator and all the
Do Character-A Set/Char Text-A
lines...
Also, where in the Event TVL Parse is the actual filename of the text file??
Clueless,
-=A.J.
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects