home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
UTILS2
/
X10XA2.ZIP
/
XA.INI
< prev
next >
Wrap
Text File
|
1994-01-15
|
10KB
|
214 lines
DISPLAY OFF # We don't need to display this on the screen
#
# ┌─────────────────────────────────────────────────────────────────┐
# │ │
# │ XA - X10 Command Interpreter for the CP-290 - Version 2.1. │
# │ Copyright 1991-94 by Bruce Christensen. All Rights Reserved. │
# │ │
# │ XA.INI - This file contains information that defines XA's │
# │ run-time environment parameters. You may edit this │
# │ to suit your application needs. │
# │ │
# └─────────────────────────────────────────────────────────────────┘
#
#──────────────────────────────────────────────────────────────────────────────
#
# XACMD Use this token to specify the default command file
# that XA will use each time it is run without command
# line parameters.
#
# SPECIAL NOTE: If this token is not used, and no
# command file is specified, XA will display the
# help file instead. This is the default condition.
#
# XACMD XA.CMD
#
#──────────────────────────────────────────────────────────────────────────────
#
# COMx The serial communications port you will be using
# to talk to the computer interface.
# Choices: COM1 (default), COM2, COM3, and COM4.
COM1
# IRQ x Use these tokens if your serial port is not configured
# IO xxxH as a "standard" port. The following table lists the
# most common assignments for IRQ's and IO port
# addresses:
# COM IRQ IO
# ==========================
# 1 4 3F8H (hex)
# 2 3 2F8H
# 3 4 * 3E8H
# 4 3 * 2E8H
#
#
# Since COM1 and COM3 (as well as COM2 and COM4) share
# the same IRQ's, a conflict will arise if active
# devices are attached to these ports. You must re-
# assign IRQ's so to avoid a potential deadlock. A
# serial port may be reconfigured either during your
# computers boot phase (BIOS setup/diagnostics) or
# by changing a DIP switch on the serial card or PC
# motherboard. When you changed the IRQ, tell XA by
# using the IRQ x command.
#
# If you can't dedicate an IRQ for the CP-290 you may
# still be able to run XA in "polling" mode.
# Use either IRQ 0 or "i=0" to initiate polling.
#
# Use the utility FINDX10.EXE to assist you in
# determining the IRQ and IO values.
#
#IRQ 5 # ... for interrupt-driven communications.
#IRQ 0 # ... for polling communications.
#
#──────────────────────────────────────────────────────────────────────────────
#
# LATITUDE You must use this command for accurate
# sunrise/sunset calculations. Positive values
# are used in the northern hemisphere, negative
# values for the southern hemisphere.
# LONGITUDE You must use this command for accurate
# sunrise/sunset calculations. Positive values
# are used west of Greenwich, negative
# east of Greenwich.
# These values may be obtained from almost any
# almanac, or consult your nearest library.
# For Mentor, OH:
# Latitude = 41°35'
# Longitude = 81°20'
#
# These values must be expressed as follows:
# 41d35m and 81d20m (or 41°35' / 81°20')
LATITUDE 41°35'
LONGITUDE 81°20'
#
#──────────────────────────────────────────────────────────────────────────────
#
# TIMEZONE Exact time calculations depend on the local time.
# Use the following chart to determine your timezone:
# Zone Use
# ==================== =========
# Eastern Standard Time: 5
# Central Standard Time: 6
# Mountain Standard Time: 7
# Pacific Standard Time: 8
# Alaska/Hawaii Std Time: 10
# Aleutian Standard Time: 11
#
# DST Automatically adjust Sunrise/Sunset calculations.
# Do not use this if your locality does not observe
# Daylight Savings Time.
TIMEZONE 5 DST
#
#──────────────────────────────────────────────────────────────────────────────
#
# VIDEO1 - Text attributes when IF/ELSE expression evaluates TRUE.
# VIDEO2 - Text attributes when IF/ELSE (or DATE/THRU/EXCEPT)
# expression evaluates FALSE.
# VIDEO3 - Text attributes when executing DIRECT command.
# VIDEO4 - Text attributes when sending an EVENT.
# VIDEO5 - Text attributes for important XA messages.
# VIDEO6 - Text attributes for comments or other supplemental cmds.
#
#
# The format of the VIDEOx statement is:
#
# { VIDEOx Foreground Background }
#
# where FOREGROUND may be any of the following:
# BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY,
# DARKGRAY, LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED,
# LIGHTMAGENTA, YELLOW, WHITE
#
# and BACKGROUND may be any of the following:
# BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY
#
VIDEO1 GREEN BLACK # For TRUE expressions
VIDEO2 RED BLACK # For FALSE expressions
VIDEO3 YELLOW BLACK # For DIRECT COMMANDS
VIDEO4 CYAN BLACK # For EVENTS
VIDEO5 WHITE BLACK # For XA Messages
VIDEO6 GREY BLACK # For Supplemental statements (comments)
#
#──────────────────────────────────────────────────────────────────────────────
#
# DEFINES Are used to substitute several identifiers.
# They help make the commands more understandable.
define Deck_Lights_1 house a unit 1
define Security_Lights house a unit 2
define Bedroom_Light house a unit 3
define Family_Room_Lamp house a unit 4
define Back_Porch house a unit 5
define Outside_Porch_Lights house a unit 6
define Fireplace_Mantle house a unit 7
define Living_Room_Lamp house a unit 8
define Dehumidifier house b unit 2
define Computer house c unit 1
define Phone house c unit 3
define Christmas_Porch house c unit 4
define Christmas_Pines house c unit 5
define Christmas_Lights Christmas_Porch Christmas_Pines
define Kathryns_PC house c unit 8
define Stairs house h unit 1
define Hallway house h unit 2
DEFINE THANKSGIVING DATE 11/24/94
DEFINE CHRISTMAS DATE 12/25/94
DEFINE NEW_YEARS_EVE DATE 12/31/94
DEFINE NEW_YEARS_DAY DATE 1/1/95
# Christmas Lights - each color connected to its own dimmer
# Note: You don't have to use HOUSE x UNIT y as shown above.
# That is only useful during monitoring and report generation.
# You can perform simple substitution with just the letter/numbers:
#
# Note: The command file XMAS.CMD makes use of the following defines.
#
DEFINE XMAS_RED K1
DEFINE XMAS_GREEN L1
DEFINE XMAS_BLUE N1
DEFINE XMAS_WHITE O1
# Other useful defines...
DEFINE DUSK SUNSET OFFSET 0:30
DEFINE DAWN SUNRISE OFFSET -0:30
DEFINE DAILY EVERYDAY
DEFINE @ TIME
DEFINE ~ SECURITY
DEFINE FADE DIM 0
DEFINE BRIGHT DIM 100
DEFINE SCHOOL_NIGHTS SUN MON TUE WED THU
#
#──────────────────────────────────────────────────────────────────────────────
#
# POWERFAIL RECOVERY The following statements tell XA to IGNORE
# the selected modules when sending X10
# commands as a result of requesting Powerfail
# Recovery. You also have the ability to
# FORCE certain modules to a particular state
# no matter what XA determines.
#
IGNORE COMPUTER # Ignore state during power-fail recovery
IGNORE KATHRYNS_PC #
FORCE DEHUMIDIFIER OFF # FORCE module OFF when recovering
# End of XA.INI. Turn display back on.
DISPLAY ON # FINDX10 will place your setup below...