ECS-L Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
RE: [ECS] Help with Event, Please.
dastorey
Sun, 03 Oct 1999 08:35:27 -0500

Don,
I don't know if you are over running the length of text-A on the first pass
or not but definitely you need to put in a line such as Do Text-A Set
Re-Define Text for subsequent passes. Hope that helps.

Doug Storey
dastorey@swbell.net

-----Original Message-----
From: Don Stephens [mailto:donstephens@101freeway.com]
Sent: Saturday, October 02, 1999 3:02 PM
To: ECS List
Subject: [ECS] Help with Event, Please.


I'm trying to write an event that puts all the weather-items from my weather
station to a file, with the items separated by commas. The problem is with
an error message that ECS displays whenever I run the event. I am hoping
that someone in the group can steer me straight.
The following is the event.
;--------------------------------
; Debug Stuff
;--------------------------------
If         Test Flag            Is         False
Then       Event-Exit           Set        True
Do         Event-Trace          Set        On
Do        Test Flag             Set        False

;-----------------------------------
;Create Numeric Month
;----------------------------------

If         Month                Is         January
;hen       Month#            Set           1
Else If    Month                Is         February
Then       Month#               Set        2
Else If    Month                Is         March
Then       Month#               Set       3
Else If    Month                Is         April
Then       Month#               Set       4
Else If    Month                Is         May
Then       Month#               Set       5
Else If    Month                Is         June
Then       Month#               Set       6
Else If    Month                Is         July
Then       Month#              Set        7
Else If    Month                Is         August
Then       Month#               Set        8
Else If    Month                Is         September
Then       Month#               Set        9
Else If    Month                Is         October
Then       Month#               Set        10
Else If    Month                Is         November
Then       Month#               Set        11
Else If    Month                Is         December
Then       Month#               Set        12
;--------------------------
; Calculate Hour (24)
;--------------------------
If         Hour                 Is         1AM
Then       Hour#                Set        1
If         Hour                 Is         2AM
Then       Hour#                Set        2
If         Hour                 Is         3AM
Then       Hour#                Set        3
If         Hour                 Is         4AM
Then       Hour#                Set        4
If         Hour                 Is         5AM
Then       Hour#                Set        5
If         Hour                 Is         6AM
Then       Hour#                Set        6
If         Hour                 Is         7AM
Then       Hour#                Set        7
If         Hour                 Is         8AM
Then       Hour#                Set        8
If         Hour                 Is         9AM
Then       Hour#                Set        9
If         Hour                 Is         10AM
Then       Hour#                Set        10
If         Hour                 Is         11AM
Then       Hour#                Set        11
If         Hour                 Is         12AM
Then       Hour#                Set        12
If         Hour                 Is         1PM
Then       Hour#                Set        13
If         Hour                 Is         2PM
Then       Hour#                Set        14
If         Hour                 Is         3PM
Then       Hour#                Set        15
If         Hour                 Is         4PM
Then       Hour#                Set        16
If         Hour                 Is         5PM
Then       Hour#                Set        17
If         Hour                 Is         6PM
Then       Hour#                Set        18
If         Hour                 Is         7PM
Then       Hour#                Set        19
If         Hour                 Is         8PM
Then       Hour#                Set        20
If         Hour                 Is         9PM
Then       Hour#                Set        21
If         Hour                 Is         10PM
Then       Hour#                Set        22
If         Hour                 Is         11PM
Then       Hour#                Set        23
If         Hour                 Is         12PM
Then       Hour#                Set        24

;-------------------------
; Create Date,Hour String
;------------------------

Do         Event-Trace          Set        On
Do         Text-A               T1<-Stt    Year
If           Month                Is LE      September
Then      Text-A               Set        0
Do         Text-A               T1/A<-Stt  Month#
If           Date                 Is LT      10
Then      Text-A               Set        0
Do         Text-A               T1/A<-Stt  Date
Do         Text-A               T1/A<-Stt  Hour#
Do         Text-A               T1/A<-Stt  Minute
Do         Text-A               T1/A<-Stt  Second
;--------------------------
; Start Building Weather.CSV
;---------------------------
Do         Text-A               Set        ,
Do         Text-A               T1/A<-Stt  Wind-Direction
Do         Text-A               Set        ,
Do         Text-A               T1/A<-Stt  Inside-Humidity
Do         Text-A               Set        ,
Do         Text-A               T1/A<-Stt  Outside-Humidity
Do         Text-A               Set        ,
;-----------------------------------
;Do         Text-A               T1<-Stt   Wind-Speed
;----------------------------------------------
Do         Text-A               Set        ,
Do         Text-A               T1/A<-Stt  Inside-Temperature
Do         Text-A               Set        ,
Do         Text-A               T1/A<-Stt  Outside-Temperature
Do         Text-A               Set        ,
Do         Text-A               T1/A<-Stt  Yearly-Rain
Do         Text-A               Set        ,
Do         Text-A               T1/A<-Stt  Barometric-Pressure
Do         Text-A               Set        ,
Do         Text-A               T1/A<-Stt  Dew-Point
Do         Text-A               Set        ,
Do         Text-A               T1/A<-Stt  Wind-Chill
Do         Text-A               Set        ,
Do         Text-A               T1/A<-Stt  Wind-Chill
Do         Text-A               Set        ,
Do         Text-A               Set        <Space>
Do         Text-A               Set        ,
;Do         Text-A               T1/A<-Stt  Max Wind Speed
;Do         Text-A               Set        ,
;Do         Text-A               T1/A<-Stt  Barometric-Pressure
;Do         Text-A               Set        ,
;Do         Text-A               T1/A<-Stt  Daily-Rain
Do         Weather.csv          Set        Text-A
Do         Event-Trace          Set        Off
Do         Text-A               Set        Null
;-------------------------------
Do         Event-Trace          Set                  Off

Please forgive the crappy formatting....When I set the test flag to true,
the event runs once creating the file "weather.csv", but I get the following
error msgs.

ERROR:S_SA:Record overflow (Item "Text-A") ("V. Weather Station" line 135)
ERROR:S_SA:Record overflow (Item "Text-A") ("V. Weather Station" line 136)

I have no idea what this means. I have included evn.tmp, if that will help.

Thanks for taking the time to look at this.
Don




  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.