home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / UTILS2 / X10XA2.ZIP / XA.INI < prev    next >
Text File  |  1994-01-15  |  10KB  |  214 lines

  1. DISPLAY OFF             # We don't need to display this on the screen
  2. #
  3. #  ┌─────────────────────────────────────────────────────────────────┐
  4. #  │                                                                 │
  5. #  │   XA  -  X10 Command Interpreter for the CP-290 - Version 2.1.  │
  6. #  │   Copyright 1991-94 by Bruce Christensen. All Rights Reserved.  │
  7. #  │                                                                 │
  8. #  │   XA.INI - This file contains information that defines XA's     │ 
  9. #  │            run-time environment parameters. You may edit this   │
  10. #  │            to suit your application needs.                      │
  11. #  │                                                                 │
  12. #  └─────────────────────────────────────────────────────────────────┘
  13. #
  14. #──────────────────────────────────────────────────────────────────────────────
  15. #
  16. #       XACMD           Use this token to specify the default command file
  17. #                       that XA will use each time it is run without command 
  18. #                       line parameters. 
  19. #
  20. #                       SPECIAL NOTE: If this token is not used, and no
  21. #                       command file is specified, XA will display the
  22. #                       help file instead. This is the default condition.
  23. #                       
  24.  
  25. # XACMD XA.CMD
  26.  
  27.  
  28. #
  29. #──────────────────────────────────────────────────────────────────────────────
  30. #
  31. #       COMx            The serial communications port you will be using
  32. #                       to talk to the computer interface.
  33. #                       Choices: COM1 (default), COM2, COM3, and COM4.
  34.  
  35. COM1
  36.  
  37. #       IRQ x           Use these tokens if your serial port is not configured
  38. #       IO  xxxH        as a "standard" port. The following table lists the
  39. #                       most common assignments for IRQ's and IO port 
  40. #                       addresses:
  41. #                               COM     IRQ     IO
  42. #                               ==========================
  43. #                                1       4      3F8H (hex)
  44. #                                2       3      2F8H
  45. #                                3       4 *    3E8H
  46. #                                4       3 *    2E8H   
  47. #
  48. #
  49. #                       Since COM1 and COM3 (as well as COM2 and COM4) share
  50. #                       the same IRQ's, a conflict will arise if active 
  51. #                       devices are attached to these ports. You must re-
  52. #                       assign IRQ's so to avoid a potential deadlock. A 
  53. #                       serial port may be reconfigured either during your
  54. #                       computers boot phase (BIOS setup/diagnostics) or
  55. #                       by changing a DIP switch on the serial card or PC
  56. #                       motherboard. When you changed the IRQ, tell XA by
  57. #                       using the IRQ x command.
  58. #
  59. #                       If you can't dedicate an IRQ for the CP-290 you may
  60. #                       still be able to run XA in "polling" mode. 
  61. #                       Use either IRQ 0 or "i=0" to initiate polling. 
  62. #
  63. #                       Use the utility FINDX10.EXE to assist you in
  64. #                       determining the IRQ and IO values.
  65. #
  66. #IRQ 5                  # ... for interrupt-driven communications.
  67. #IRQ 0                  # ... for polling communications.
  68. #
  69. #──────────────────────────────────────────────────────────────────────────────
  70. #
  71. #       LATITUDE        You must use this command for accurate
  72. #                       sunrise/sunset calculations. Positive values
  73. #                       are used in the northern hemisphere, negative
  74. #                       values for the southern hemisphere.
  75. #       LONGITUDE       You must use this command for accurate
  76. #                       sunrise/sunset calculations. Positive values
  77. #                       are used west of Greenwich, negative
  78. #                       east of Greenwich.
  79. #                       These values may be obtained from almost any
  80. #                       almanac, or consult your nearest library.
  81. #                       For Mentor, OH:
  82. #                               Latitude  = 41°35'
  83. #                               Longitude = 81°20'
  84. #                        
  85. #                       These values must be expressed as follows:
  86. #                       41d35m and 81d20m (or 41°35' / 81°20')
  87.  
  88. LATITUDE  41°35'
  89. LONGITUDE 81°20'
  90.  
  91. #
  92. #──────────────────────────────────────────────────────────────────────────────
  93. #
  94. #       TIMEZONE        Exact time calculations depend on the local time.
  95. #                       Use the following chart to determine your timezone:
  96. #                                  Zone                   Use
  97. #                             ====================     =========
  98. #                             Eastern Standard Time:        5
  99. #                             Central Standard Time:        6
  100. #                             Mountain Standard Time:       7
  101. #                             Pacific Standard Time:        8
  102. #                             Alaska/Hawaii Std Time:      10
  103. #                             Aleutian Standard Time:      11
  104. #
  105. #       DST             Automatically adjust Sunrise/Sunset calculations.
  106. #                       Do not use this if your locality does not observe
  107. #                       Daylight Savings Time.
  108.  
  109. TIMEZONE 5 DST
  110.  
  111. #
  112. #──────────────────────────────────────────────────────────────────────────────
  113. #       VIDEO1 - Text attributes when IF/ELSE expression evaluates TRUE.
  114. #       VIDEO2 - Text attributes when IF/ELSE (or DATE/THRU/EXCEPT) 
  115. #                expression evaluates FALSE.
  116. #       VIDEO3 - Text attributes when executing DIRECT command.
  117. #       VIDEO4 - Text attributes when sending an EVENT.
  118. #       VIDEO5 - Text attributes for important XA messages.
  119. #       VIDEO6 - Text attributes for comments or other supplemental cmds.
  120. #
  121. #
  122. #       The format of the VIDEOx statement is:
  123. #
  124. #       { VIDEOx Foreground Background }
  125. #
  126. #         where FOREGROUND may be any of the following:
  127. #           BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY,
  128. #           DARKGRAY, LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED,
  129. #           LIGHTMAGENTA, YELLOW, WHITE
  130. #      
  131. #         and BACKGROUND may be any of the following:
  132. #           BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY
  133. #      
  134.  
  135. VIDEO1 GREEN BLACK         # For TRUE expressions
  136. VIDEO2 RED BLACK           # For FALSE expressions
  137. VIDEO3 YELLOW BLACK        # For DIRECT COMMANDS
  138. VIDEO4 CYAN BLACK          # For EVENTS
  139. VIDEO5 WHITE BLACK         # For XA Messages
  140. VIDEO6 GREY BLACK          # For Supplemental statements (comments)
  141.  
  142. #──────────────────────────────────────────────────────────────────────────────
  143. #
  144. #       DEFINES         Are used to substitute several identifiers. 
  145. #                       They help make the commands more understandable. 
  146.  
  147. define Deck_Lights_1            house a unit 1 
  148. define Security_Lights          house a unit 2
  149. define Bedroom_Light            house a unit 3 
  150. define Family_Room_Lamp         house a unit 4
  151. define Back_Porch               house a unit 5
  152. define Outside_Porch_Lights     house a unit 6 
  153. define Fireplace_Mantle         house a unit 7
  154. define Living_Room_Lamp         house a unit 8
  155. define Dehumidifier             house b unit 2
  156. define Computer                 house c unit 1
  157. define Phone                    house c unit 3
  158. define Christmas_Porch          house c unit 4
  159. define Christmas_Pines          house c unit 5
  160. define Christmas_Lights         Christmas_Porch Christmas_Pines
  161. define Kathryns_PC              house c unit 8
  162. define Stairs                   house h unit 1
  163. define Hallway                  house h unit 2
  164.  
  165. DEFINE THANKSGIVING             DATE 11/24/94
  166. DEFINE CHRISTMAS                DATE 12/25/94
  167. DEFINE NEW_YEARS_EVE            DATE 12/31/94
  168. DEFINE NEW_YEARS_DAY            DATE 1/1/95
  169.  
  170. #      Christmas Lights - each color connected to its own dimmer
  171. #      Note: You don't have to use HOUSE x UNIT y as shown above.
  172. #            That is only useful during monitoring and report generation. 
  173. #            You can perform simple substitution with just the letter/numbers:
  174. #
  175. #      Note: The command file XMAS.CMD makes use of the following defines.
  176. #
  177. DEFINE XMAS_RED                  K1
  178. DEFINE XMAS_GREEN                L1
  179. DEFINE XMAS_BLUE                 N1
  180. DEFINE XMAS_WHITE                O1
  181.  
  182. #       Other useful defines...
  183.  
  184. DEFINE DUSK SUNSET OFFSET 0:30
  185. DEFINE DAWN SUNRISE OFFSET -0:30
  186. DEFINE DAILY EVERYDAY
  187. DEFINE @ TIME
  188. DEFINE ~ SECURITY
  189. DEFINE FADE  DIM 0
  190. DEFINE BRIGHT DIM 100
  191. DEFINE SCHOOL_NIGHTS SUN MON TUE WED THU
  192.  
  193.  
  194. #──────────────────────────────────────────────────────────────────────────────
  195. #
  196. #      POWERFAIL RECOVERY       The following statements tell XA to IGNORE
  197. #                               the selected modules when sending X10 
  198. #                               commands as a result of requesting Powerfail
  199. #                               Recovery. You also have the ability to 
  200. #                               FORCE certain modules to a particular state
  201. #                               no matter what XA determines.
  202. #      
  203.  
  204. IGNORE COMPUTER                 # Ignore state during power-fail recovery
  205. IGNORE KATHRYNS_PC              #
  206. FORCE  DEHUMIDIFIER OFF         # FORCE module OFF when recovering
  207.  
  208.                                 # End of XA.INI. Turn display back on.
  209. DISPLAY ON                      # FINDX10 will place your setup below...
  210.  
  211.