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:
new main.cfg
Mark Gilmore
Sun, 16 Mar 2003 18:06:06 -0800
Sun, 16 Mar 2003 18:06:06 -0800
For your reference and/or use:
Attached is the new main.cfg with the added Sundays stuff
(and with Sunday date Properties added to "Time" Page).

Mark Gilmore
http://OmnipotenceSoftware.com 


;REV=2.2.37
Name:			Ocelot
Class:			Ocelot
Port:			Disconnected

Name:			HomeVision
Class:			HomeVision
Port:			Disconnected

Name:			CM11A
Class:			CM11A
Port:			Disconnected

Name:			Guest-Password
Class:			Password
Password:		Encrypted:020b91d1b75193
Access:			Guest
Knowledge-Level:	Novice
Client-IP:		127.0.0.1

Name:			User-Password
Class:			Password
Password:		Encrypted:02a2a723eb23
Access:			User
Knowledge-Level:	Novice
Client-IP:		127.0.0.1

Name:			Owner-Password
Class:			Password
Password:		Encrypted:028ecaaacef2be
Access:			Owner
Knowledge-Level:	Novice
Client-IP:		127.0.0.1
Default:		Yes

Name:			Owner-Password/Expert
Class:			Password
Password:		Encrypted:029595559de57e95e54d8de57d6d
Access:			Owner
Knowledge-Level:	Expert
Client-IP:		127.0.0.1

Name:			Maint-Password
Class:			Password
Password:		Encrypted:02fc098938db4a
Access:			Maint
Knowledge-Level:	Expert
Client-IP:		127.0.0.1

Name:			Message
Class:			Message

Name:			Errors
Class:			Errors

Name:			URL
Class:			URL

Name:			Update
Class:			Update

Name:			Diag-Level
Class:			Diag-Level

Name:			Program-Status
Class:			Program-Status

Name:			Sign-Of-Life
Class:			Choice
Description:		Becomes TRUE when a "sign of life" is detected
Choices:		False,True
:			True

Name:			Clock
Class:			Clock
Time-Zone:		Eastern
Latitude:		35
Longitude:		85

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:			Awake
Class:			Choice
Choices:		False,True
:			True

Name:			Awake-Time
Class:			Choice
Choices:		FILE:time_5.chc
:			8:00 AM
Persistent:		Yes

Name:			Bedtime
Class:			Choice
Choices:		FILE:time_5.chc
:			11:00 PM
Persistent:		Yes

Name:			Minute-Timer
Class:			Minute-Timer

Name:			Second-Timer
Class:			Second-Timer

Name:			Icon-Click
Class:			Icon-Click

Name:			Sound-Card
Class:			Sound-Card
TTS-Engine:		Microsoft Speech Synthesis Engine:Mary

Name:			Bedroom Light
Class:			X10-Lamp
House-Code:		L
Unit-Code:		1

Name:			Porch Light
Class:			X10-Lamp
House-Code:		L
Unit-Code:		2

Name:			Lamp:L/3
Class:			X10-Lamp
House-Code:		L
Unit-Code:		3

Name:			Lamp:L/4
Class:			X10-Lamp
House-Code:		L
Unit-Code:		4

Name:			Lamp:L/5
Class:			X10-Lamp
House-Code:		L
Unit-Code:		5

Name:			Lamp:L/6
Class:			X10-Lamp
House-Code:		L
Unit-Code:		6

Name:			Lamp:L/7
Class:			X10-Lamp
House-Code:		L
Unit-Code:		7

Name:			Lamp:L/8
Class:			X10-Lamp
House-Code:		L
Unit-Code:		8

Name:			Lamp:L/9
Class:			X10-Lamp
House-Code:		L
Unit-Code:		9

Name:			Lamp:L/10
Class:			X10-Lamp
House-Code:		L
Unit-Code:		10

Name:			Lamp:L/11
Class:			X10-Lamp
House-Code:		L
Unit-Code:		11

Name:			Lamp:L/12
Class:			X10-Lamp
House-Code:		L
Unit-Code:		12

Name:			Lamp:L/13
Class:			X10-Lamp
House-Code:		L
Unit-Code:		13

Name:			Lamp:L/14
Class:			X10-Lamp
House-Code:		L
Unit-Code:		14

Name:			Lamp:L/15
Class:			X10-Lamp
House-Code:		L
Unit-Code:		15

Name:			Lamp:L/16
Class:			X10-Lamp
House-Code:		L
Unit-Code:		16

Name:			Appliance:A/1
Class:			X10-Appliance
House-Code:		A
Unit-Code:		1

Name:			Appliance:A/2
Class:			X10-Appliance
House-Code:		A
Unit-Code:		2

Name:			Appliance:A/3
Class:			X10-Appliance
House-Code:		A
Unit-Code:		3

Name:			Appliance:A/4
Class:			X10-Appliance
House-Code:		A
Unit-Code:		4

Name:			Appliance:A/5
Class:			X10-Appliance
House-Code:		A
Unit-Code:		5

Name:			Appliance:A/6
Class:			X10-Appliance
House-Code:		A
Unit-Code:		6

Name:			Appliance:A/7
Class:			X10-Appliance
House-Code:		A
Unit-Code:		7

Name:			Appliance:A/8
Class:			X10-Appliance
House-Code:		A
Unit-Code:		8

Name:			Appliance:A/9
Class:			X10-Appliance
House-Code:		A
Unit-Code:		9

Name:			Appliance:A/10
Class:			X10-Appliance
House-Code:		A
Unit-Code:		10

Name:			Appliance:A/11
Class:			X10-Appliance
House-Code:		A
Unit-Code:		11

Name:			Appliance:A/12
Class:			X10-Appliance
House-Code:		A
Unit-Code:		12

Name:			Appliance:A/13
Class:			X10-Appliance
House-Code:		A
Unit-Code:		13

Name:			Appliance:A/14
Class:			X10-Appliance
House-Code:		A
Unit-Code:		14

Name:			Appliance:A/15
Class:			X10-Appliance
House-Code:		A
Unit-Code:		15

Name:			Appliance:A/16
Class:			X10-Appliance
House-Code:		A
Unit-Code:		16

Name:			Brooklyn Bridge, NY
Class:			HTTP-Image
URL:			http://newyork.metrocommute.com/cgi-bin/metro/video/MANHATTAN/video1994.jpg
Download-Frequency:	30

Name:			Times Square
Class:			HTTP-Image
URL:			http://images.earthcam.com/licensee/discovery/lindys.jpg
Download-Frequency:	30

;Name:			Del Mar Beach, CA
;Class:			HTTP-Image
;URL:			http://outstream.camzone.com/camzone-ie?delmar
;File:			delmar.jpg
;Download-Frequency:	30

;Name:			Scripps Pier, CA
;Class:			HTTP-Image
;URL:			http://os1.prod.camzone.com/camzone-ie?scripps
;File:			scripps_pier.jpg
;Download-Frequency:	30

Name:			Text-A
Class:			Text
Description:		"Scratch" text
:
  Read-Acc:		None

Name:			Text-B
Class:			Text
Description:		"Scratch" text
:
  Read-Acc:		None

Name:			System
Class:			Page
Property:		Sound-Card.Status
Property:		Sound-Card.Play
Property:		Sound-Card.Speak
Property:		Sound-Card.Record
Property:		Sound-Card.Volume
Property:		Sound-Card.Control
Property:		None
  Applet:		line_break.app
Property:		Ocelot.Status
Property:		HomeVision.Status
Property:		CM11A.Status
Property:		None
  Applet:		line_break.app
Property:		Sign-Of-Life
Property:		VM:Socket.Status
Property:		Diag-Level

Name:			Time
Class:			Page
Property:		Clock.Year
Property:		Clock.Month
Property:		Clock.Date
Property:		Clock.Day
Property:		Clock.Behind
Property:		Clock.Hour
Property:		Clock.Minute
Property:		Clock.Second
Property:		Clock.Time
Property:		Clock.MTime
Property:		Clock.Weekday/Time
Property:		Clock.Weekday/MTime
Property:		Clock.Sunrise
Property:		Clock.Sunset
Property:		Clock.Daylight-Savings
Property:		1st Sunday
Property:		2nd Sunday
Property:		3rd Sunday
Property:		4th Sunday
Property:		5th Sunday
Property:		Last Sunday
Property:		Minute-Timer
Property:		Second-Timer
Property:		Awake-Time
Property:		Bedtime

Name:			Lamps
Class:			Page
Property:		Bedroom Light
Property:		Porch Light
Property:		Lamp:L/3
Property:		Lamp:L/4
Property:		Lamp:L/5
Property:		Lamp:L/6
Property:		Lamp:L/7
Property:		Lamp:L/8
Property:		Lamp:L/9
Property:		Lamp:L/10
Property:		Lamp:L/11
Property:		Lamp:L/12
Property:		Lamp:L/13
Property:		Lamp:L/14
Property:		Lamp:L/15
Property:		Lamp:L/16

Name:			Appliances
Class:			Page
Property:		Appliance:A/1
Property:		Appliance:A/2
Property:		Appliance:A/3
Property:		Appliance:A/4
Property:		Appliance:A/5
Property:		Appliance:A/6
Property:		Appliance:A/7
Property:		Appliance:A/8
Property:		Appliance:A/9
Property:		Appliance:A/10
Property:		Appliance:A/11
Property:		Appliance:A/12
Property:		Appliance:A/13
Property:		Appliance:A/14
Property:		Appliance:A/15
Property:		Appliance:A/16

Name:			NetCams
Class:			Page
Property:		Clock.Second
Property:		Clock.Behind
Property:		Brooklyn Bridge, NY.Status
Property:		Times Square.Status
;Property:		Del Mar Beach, CA.Status
;Property:		Scripps Pier, CA.Status

Name:			Lamp Schedule
Class:			Schedule
Control:		Disabled
Property:		Lamp:L/3
    Time:		8:00 PM
    Val:		On
Property:		Lamp:L/3
    Time:		11:00 PM
    Val:		Off
Property:		Lamp:L/4
    Time:		Weekday:8:00 PM
    Val:		On
Property:		Lamp:L/4
    Time:		Weekday:11:00 PM
    Val:		Off
Property:		Lamp:L/5
    Time:		Weekend:8:00 PM
    Val:		On
Property:		Lamp:L/5
    Time:		Weekend:11:00 PM
    Val:		Off

Name:			Appliance Schedule
Class:			Schedule
Control:		Disabled
Property:		Appliance:A/1
    Time:		8:00 PM
    Val:		On
Property:		Appliance:A/1
    Time:		11:00 PM
    Val:		Off
Property:		Appliance:A/2
    Time:		Weekday:8:00 PM
    Val:		On
Property:		Appliance:A/2
    Time:		Weekday:11:00 PM
    Val:		Off
Property:		Appliance:A/3
    Time:		Weekend:8:00 PM
    Val:		On
Property:		Appliance:A/3
    Time:		Weekend:11:00 PM
    Val:		Off

Name:			Startup
Class:			Script
Description:		Startup
Control:		Enabled
Called:			No
Begin:
If  Program-Status  Is  Starting
	{
	If  Sound-Card.TTS-Engine  Is Not  None
	Then  Sound-Card.Speak  Set  "Hello. Welcome to E C S"
	}
If  Program-Status  Is  Stopping
	{
	If  Sound-Card.TTS-Engine  Is Not  None
	Then  Sound-Card.Speak  Set  "Goodbye"
	Then  Sound-Card.Control  Set  Flush
	}

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		; Find weekday of the 1st
	{
	If  X:Weekday  Is  Sunday
	Then  X:Weekday  Set  Saturday
	Else  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		; walk thru each day, assigning Sunday dates
	{
	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

Name:			Sign-Of-Life:Monitor
Class:			Script
Description:		Set Sign-Of-Life when any user activity is detected
Called:			No
Description:
Begin:
If  Update  Is  Icon-Click
Or  Update  Is  Ocelot.X10-Rx
Or  Update  Is  HomeVision.X10-Rx
Or  Update  Is  CM11A.X10-Rx
Then  Sign-Of-Life  Set  True
Else If  Update  Is  Clock.Second
Then  Sign-Of-Life  Set  False

Name:			Timers/etc
Class:			Script
Description:		Time-related stuff
Control:		Enabled
Called:			No
Begin:
If  Bedtime  >=  Awake-Time
	{
	If  Clock.Time  >=  Awake-Time
	And  Clock.Time  <  Bedtime
	Then  Awake  Set  True
	Else  Awake  Set  False
	}
Else If  Bedtime  <  Awake-Time
	{
	If  Clock.Time  >=  Bedtime
	And  Clock.Time  <  Awake-Time
	Then  Awake  Set  False
	Else  Awake  Set  True
	}
If  Minute-Timer  Is Now  0
Then  Sound-Card.Speak  Set  "Timer expired"
If  Second-Timer  Is Now  0
Then  Sound-Card.Speak  Set  "Timer expired"

Name:			Inside Lights
Class:			Script
Description:		Lamps script
Control:		Disabled
Called:			No
Begin:
If  Clock.Time  Is Now  Awake-Time
Then  Bedroom Light  Set  On
If  Clock.Time  Is Now  Bedtime
Then  Bedroom Light  Set  Off

Name:			Outside Lights
Class:			Script
Description:		Lamps script
Control:		Disabled
Called:			No
Begin:
If  Clock.Time  Is Now  Clock.Sunset
Then  Porch Light  Set  On
If  Clock.Time  Is Now  Clock.Sunrise
Then  Porch Light  Set  Off

Name:			VM:Command
Class:			Command
Description:		Run's VM.EXE Voice-Mail program (see manual for details)
:			START /MIN VM.EXE COM2 5

Name:			VM:Socket
Class:			Server-Socket
Description:		Socket used to communicate with VM.EXE (see manual for details)
Server-IP:		127.0.0.1
Client-IP:		127.0.0.1
Server-Port:		5020

Name:			VM:Messages-Timer
Class:			Minute-Timer
Maximum:		10
Description:		Used in reporting that a phone message(s) has been recorded

Name:			VM:Service
Class:			Script
Called:			No
Control:		Disabled
Description:		Service VM.EXE program
Begin:
If  Program-Status  Is  Starting
	{
	Do  VM:Command.Control  Set  Execute
	}
Else If  Program-Status  Is Now  Stopping
	{
	If  VM:Socket.Status  Is  Connected
	Then  VM:Socket.TX  Set  "Bye"
	Then  VM:Socket.Status  Set  Disconnect
	}
Else If  Update  Is  VM:Socket.RX
	{
	If  VM:Socket.RX  Is Now  "Bye"
	Then  VM:Socket.Status  Set  Disconnect
	Else If  VM:Socket.RX  Is Now  "Message"
	Then  VM:Messages-Timer  Set  VM:Messages-Timer.Maximum
	Else
		{
		Do  Text-A  Set  VM:Socket.RX		; Get data "title" (before ":")
		Do  Text-A.Substring  Set  "~{:"	; "
		Do  Text-B  Set  VM:Socket.RX	; Get data (following ":")
		Do  Text-B.Substring  Set  ":}~"	; "
		If  Text-A.Substring  Is  "CID"		; CID ? -> Speak it
		Then  Sound-Card.Speak  Set  Text-B.Substring
		}
	}

; NOTE: This command would tell VM to dial a # and hangup:
;	Do  VM:Socket.TX  Set  "ATD123-4567;H"

If  VM:Messages-Timer  >  0
	{
	If  Sign-Of-Life  Is  True
	Then  VM:Messages-Timer  Set  0
	Then  Sound-Card.Speak  Set  "Messages"
	Then  Sound-Card.Speak  Set  "O K"
	Else If  VM:Messages-Timer  Is  1
		{
		Do  VM:Messages-Timer  Set  VM:Messages-Timer.Maximum
		If  Awake  Is  True
		Then  Sound-Card.Speak  Set  "Messages"
		}
	}




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