ECS 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] RE: RE: Date type
lhelgerson
Mon, 27 Oct 2003 17:07:17 -0600

Mark -

Wrong guy - this isn't my trouble report,,,

take care,,

Leland
---------- Original Message ----------------------------------
From: Mark Gilmore <mark@markgilmore.net>
Reply-To: ecs@netbloc.com
Date:  Mon, 27 Oct 2003 13:07:08 -0800

Hi Leland,
'tis a bug.
I'll email you the fix in a sec.

OTHERS: Please email me if you need this fix.

At 11:42 AM 10/27/2003 -0700, you wrote:

>Mark
>
>A long time ago you had suggested this method for generating a random event
>that would be true 30% of the time.  I use this in my lived in look portion
>to create a lived in appearance in the house.  This used to work but I have
>noticed that the random number is not getting set to anything but 0 any
>more.  Has something changed to make this happen?  I have been monitoring
>this all morning and random high low 70 never changes from 0.  My main.cfg
>is attached as is main.log.
>
>I am sure I am missing something stupid.  :)
>
>Thanks.
>
>Joe
>
>
>-----Original Message-----
>From: Mark Gilmore [mailto:mark@markgilmore.net]
>Sent: March 15, 2003 9:10 PM
>To: ve8jl@laferla.ca
>Subject: Fwd: RE: Date type
>
>
>Wait a minute:
>I'm making this too hard :-):
>          Do  Integer  Set  Random        ; Where its max is 100
>          If  Integer  <  30                      ; This is true 30% of the
>time
>          Then  Lamp-1  Set  On
>
> >Date: Sat, 15 Mar 2003 16:34:06 -0800
> >To: <ve8jl@laferla.ca>
> >From: Mark Gilmore <mark@markgilmore.net>
> >Subject: RE: Date type
> >
> >YOU are a Pal :-).
> >
> >Yes, make the max for the random number integer 2000.
> >Or actually, you probably should make it 10000 (100 * 100).
> >That way, it will work for any such percentage calculation.
> >
> >Later....
> >
> >At 05:28 PM 3/15/2003 -0700, you wrote:
> >
> >>Thanks Mark.
> >>
> >>You say Make the max 100.  I gather you mean create an integer object with
> >>max 100.  Do you mean the randon number will have a max of 100?
> >>Forgive me if I am dense but I don't understand it!!
> >>
> >>I should tell you.  I did use the dropdowns and I have made great
>progress.
> >>They are incredibly helpful.  I even set up a netcam for a place in my
>home
> >>country Malta.  You should log in and take a look.  I must thank you for
> >>what is turning out to be an incredibly easy program to use.  There are
> >>still lots of things that I don't understand!  But in time, I guess.  The
> >>next thing I want to look at is Icon-click but later....
> >>
> >>BTW, I wanted to give you a testimonial like you had asked for previously:
> >>
> >>I have been using ecs for a number of years.  I initally used the earlier
> >>version of the program to control the many lights and modules that I have.
> >>ECS has worked better than anything I have used before.  It is easy to
> >>understand and the programming is a breeze thanks to the excellent
> >>programming skills of Mark Gilmore.  I am now using the new beta object
> >>oriented version which is even better. Thanks Mark for a great program and
> >>keep up the good work.
> >>
> >>Joe (Yellowknife, NT, Canada).
> >>
> >>Feel free to edit for brevity if necessary.
> >>
> >>Joe
> >>
> >>
> >>-----Original Message-----
> >>From: Mark Gilmore [mailto:mark@markgilmore.net]
> >>Sent: March 15, 2003 5:12 PM
> >>To: ve8jl@laferla.ca
> >>Subject: Re: Date type
> >>
> >>
> >>Hi Joe,
> >>Make the max 100.
> >>Create another Integer Object (X1) with max of 2000.
> >>In script:
> >>          Set X1 to Random number
> >>          Multiply it by 20
> >>          Divide by 100
> >>          Then X1 should be above 20, 20% of the time
> >>
> >>Date example:
> >>          If  Clock.Time  Is Now  12:00 PM
> >>                  {
> >>                  If  Clock.Date  >=  9/7
> >>                  And  Clock.Date  <=  9/20
> >>                  Then  Text-A  Set  "Wife's Birthday is September 20"
> >>                  Then  Speak/Log.Control  Set  Run
> >>                  . . .
> >>                  }
> >>
> >>Try walking thru script-creation with the dropdowns.
> >>This would answer many questions regarding Property values.
> >>
> >>At 04:25 PM 3/15/2003 -0700, you wrote:
> >>
> >> >Mark
> >> >
> >> >In the old ecs I had some items of type Date with access
>Virtual/user/user
> >> >which I used to hold a date, like Christmas etc.  I would then use those
> >> >items to do other things.  I couldn't find the equivalent in the new
>ecs.
> >> >Could you help me out.
> >> >
> >> >Also, re the random nuimber I mentioned yesterday, I was thinking that
>if I
> >> >set the min and max of the integer type to 1 and 5 that should generate
>the
> >> >same number 20% of the time.  Would that work to recreate the effect of
>the
> >> >Random High/Low in the old ecs?
> >> >
> >> >Thanks.
> >> >
> >> >Joe
> >> >
> >> >
> >> >
> >> >---
> >> >Incoming mail is certified Virus Free.
> >> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >> >Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/2003
> >>
> >>Mark Gilmore
> >>http://OmnipotenceSoftware.com
> >>
> >>
> >>
> >>---
> >>Incoming mail is certified Virus Free.
> >>Checked by AVG anti-virus system (http://www.grisoft.com).
> >>Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/2003
> >
> >Mark Gilmore
> >http://OmnipotenceSoftware.com
>
>Mark Gilmore
>http://OmnipotenceSoftware.com
>
>
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003

Mark Gilmore
http://OmnipotenceSoftware.com 



  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
.