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: Web page
Mark Gilmore
Sun, 16 Mar 2003 17:41:50 -0800
Sun, 16 Mar 2003 17:41:50 -0800
Hi Joe,
Append attached to your cfg and your in business.
I'll add this stuff to the next release of MAIN.CFG.

At 06:33 PM 3/16/2003 -0700, you wrote:

>Mark
>
>I will check it out and let you know.
>
>I have a question.  I am trying to determine the dates of Sundays in each
>month so that I can make a schedule of statutory holidays.  The old ecs
>allowed me to create date variables to store this information.  The new ecs
>does not, as far as I know, provide that ability.  How can I do this.  I
>know I can use Clock.Weekend to determine when a day is a Sunday but I need
>to store that info.  Would the array class be the answer?
>
>Joe
>
>
>-----Original Message-----
>From: Mark Gilmore [mailto:mark@markgilmore.net]
>Sent: March 16, 2003 4:54 PM
>To: ve8jl@laferla.ca
>Subject: Re: Web page
>
>
>Hi Joe,
>If you installed before 3/15 6:09, please update again and see
>if it still happens (I can't re-create it, so maybe it's fixed).
>
>I note that this log does not show any HTTP requests other than for
>main.htm.
>Are we sure that this log is from the session in which the problem occurred
>?
>
>Thanks,
>
>At 11:14 AM 3/16/2003 -0700, you wrote:
>
> >Mark
> >
> >Further to my last email, the same thing happens when I tried to create an
> >integer object and I right clicked on one of the boxes.  A menu opens up
> >that says Edit/Monitor this obect and View this object's log.  When I try
>to
> >select any of those options, a web page begins to open up, then I hear a
> >noise and the web page shuts right down.  Same behavious as when I was in
> >Netcams.
> >
> >Thought I would let you know.
> >
> >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 


Name:			1st Sunday
Class:			Integer
Base:			Decimal
Minimum:		0
Maximum:		31
Persistent:		No
:			0

Name:			2nd Sunday
Class:			Integer
Base:			Decimal
Minimum:		0
Maximum:		31
Persistent:		No
:			0

Name:			3rd Sunday
Class:			Integer
Base:			Decimal
Minimum:		0
Maximum:		31
Persistent:		No
:			0

Name:			4th Sunday
Class:			Integer
Base:			Decimal
Minimum:		0
Maximum:		31
Persistent:		No
:			0

Name:			5th Sunday
Class:			Integer
Base:			Decimal
Minimum:		0
Maximum:		31
Persistent:		No
:			0

Name:			Last Sunday
Class:			Integer
Base:			Decimal
Minimum:		0
Maximum:		31
Persistent:		No
:			0

Name:			X:Weekday
Class:			Choice
Choices:		Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday
Check:			Yes
Dynamic:		No
Persistent:		No
:			Sunday

Name:			X:Day
Class:			Integer
Base:			Decimal
Minimum:		1
Maximum:		32
Persistent:		No
:			1

Name:			Sundays
Class:			Script
Description:		Calc 1st/2nd/3rd/4th/5th Sundays of this month
Control:		Enabled
Called:			No
Begin:
;************************************************
; Determine the dates for this month's Sundays
;------------------------------------------------
Do  X:Weekday  Set  Clock.Weekday
Do  X:Day  Set  Clock.Day
While  X:Day  >  1
	{
	Do  X:Weekday  Subtract  1
	Do  X:Day  Subtract  1
	}
Do  1st Sunday  Set  0
Do  2nd Sunday  Set  0
Do  3rd Sunday  Set  0
Do  4th Sunday  Set  0
Do  5th Sunday  Set  0
While  X:Day  <=  31
	{
	If  X:Weekday  Is  Sunday
		{
		If  1st Sunday  Is  0
		Then  1st Sunday  Set  X:Day
		Else If  2nd Sunday  Is  0
		Then  2nd Sunday  Set  X:Day
		Else If  3rd Sunday  Is  0
		Then  3rd Sunday  Set  X:Day
		Else If  4th Sunday  Is  0
		Then  4th Sunday  Set  X:Day
		Else If  5th Sunday  Is  0
		Then  5th Sunday  Set  X:Day
		}
	If  X:Weekday  Is  Saturday
	Then  X:Weekday  Set  Sunday
	Else  X:Weekday  Add  1
	Do  X:Day  Add  1
	}
If  5th Sunday  >  0
Then  Last Sunday  Set  5th Sunday
Else  Last Sunday  Set  4th Sunday




---
Outgoing 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


  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
.