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] Question of Mental State
Michael David
Thu, 9 Mar 2000 14:19:40 -0500

Hi Don!

OK, I don't understand your question.  At 12:59AM, the Hour# will be 24,
until is changes to 1AM, in which case the Hour# will be 1.  I use similar
logic for another purpose, and it works fine.

BTW, I assume you aren't executing these event lines on every event pass, as
your example implies - correct?  :)

Cheers!

Michael David
michael@michaeldavid.com

-----Original Message-----
From: Don Stephens [mailto:donstephens@101freeway.com]
Sent: Thursday, March 09, 2000 11:05 AM
To: ECS List
Subject: [ECS] Question of Mental State


Hi:

Could someone comment on my logic here? I am creating a string from my
weather station to be passed to another program. In this string I need to
have a numerical value for the hour. Here is Mark's values for the Hour
Item, and below is my attempt to create a number value (Hour#) to reflect
these states.

State names/values:
 12AM (0)     6AM ( 6)    12PM (12)     6PM (18)
  1AM (1)     7AM ( 7)     1PM (13)     7PM (19)
  2AM (2)     8AM ( 8)     2PM (14)     8PM (20)
  3AM (3)     9AM ( 9)     3PM (15)     9PM (21)
  4AM (4)    10AM (10)     4PM (16)    10PM (22)
  5AM (5)    11AM (11)     5PM (17)    11PM (23)
           None (24)

To create the string that is sent to my other program I'm using the
following logic.

If         Hour                 Is Not     12AM
Then       Hour#                Set        Hour
Else       Hour#                Set        24

So...If the hour is 1:00AM then the hour# is 1, and so on. However, if the
hour is 12AM then the hour# is 24. I think my logic is screwed up What
happens at 12:59 here?

My problem is that at 12:59 the program receiving the string created in ECS
stops. I think it is getting screwed up by my implementation seen above.

Any comments? (Please..be kind)

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
.