xtension_manual:specialscripts
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
xtension_manual:specialscripts [2014/01/29 15:53] – external edit 127.0.0.1 | xtension_manual:specialscripts [2023/02/13 14:52] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
These Script Names are RESERVED for their respective intrinsic functions: | These Script Names are RESERVED for their respective intrinsic functions: | ||
- | ====Startup Script/ | + | ====AUXRemote==== |
- | On starting up, XTension will automatically execute | + | The AUXRemote script is specific to legacy X10 receiver support. This script was added to support the “MP3 remote” style remote controls that X10.com had released many years ago. Whenever an [[supported_hardware: |
- | + | ||
- | Obviously you might want to always check things out or set up units into some known state on startup. | + | |
- | + | ||
- | On shutdown you might want to ' | + | |
- | + | ||
- | These two scripts must be created as ' | + | |
====Idle Script==== | ====Idle Script==== | ||
- | This name is reserved for the IDLER. | + | If you create a global script of this name XTension will execute it every MINUTE. |
- | It can be useful for monitoring certain functions, however you should be careful about not putting things in it that would cause a lot of processing | + | It can be useful for monitoring certain functions |
Global Scripts can also be executed via [[: | Global Scripts can also be executed via [[: | ||
See also the [[: | See also the [[: | ||
- | ====Sunrise/ | + | ====Init Interfaces Script==== |
- | These script names are reserved for suntime events. See also [[:manual:suntimes|Suntimes]]. | + | Executed whenever an interface is started up. If the interface requires some regular setup whenever it comes on line you can do that here. The [[dictionary:xtension:thisinterface|ThisInterface]] verb will return the name of the specific interface being started up so you can check by name and send the proper settings. If your interface supports an AppleScript like the [[supported_hardware: |
- | ====Errors | + | ====Interface Error Script==== |
- | This script | + | The Interface Error Script |
- | Before it is called, XTension sets a global variable which can be tested by the Errors Script: **Last Error** | + | The second time this script will be run is if the interface sends us an error saying that a unit has not responded. Not all interfaces support the ability to know if a unit was unavailable. This may be most useful for modern interfaces like the [[supported_hardware:vera|Vera]] which use 2-way protocols. There is no way that an X10 interface could know if a device had received it’s command or not. In the case of a Vera unit not responding to a command this script will be called with thisInterface set to the name of the interface and thisUnit set to the name of the unit that is having a problem. |
- | ====AUXRemote==== | + | ====Power Fail==== |
- | This script is called whenever a command comes in via the MR26 or other receiver | + | This script is called whenever |
- | This is particularly useful with the X-10 " | + | You can get much better reliability here if you have a Mac compatible UPS by using the [[supported_hardware: |
- | Whenever | + | ====Script Error Alert==== |
+ | Added in XTension | ||
- | If you have created such a script it will be executed. Before calling the script XTension sets the special variable **command** to the button number from the UR51A. | + | Obviously if a script error occurs inside the Script Error Alert script it will not be run again... |
- | You can serve any of those buttons with commands and ignore any that you dont need. | ||
- | This is a great way to add up to 50 macros to your remote control system without having to dedicate database units and X-10 addresses! | + | ====Startup Script/ |
+ | On starting | ||
- | ====Power Fail==== | + | Obviously you might want to always check things out or set up units into some known state on startup. |
- | This script | + | |
+ | On shutdown you might want to ' | ||
+ | |||
+ | These two scripts must be created as ' | ||
+ | |||
+ | |||
+ | ====Sunrise/ | ||
+ | These script | ||
====DoAll.X==== | ====DoAll.X==== | ||
+ | |||
+ | This script is only supported with Legacy X10 controllers. | ||
In order to catch all lights on, all lights/ | In order to catch all lights on, all lights/ |
xtension_manual/specialscripts.1391010793.txt.gz · Last modified: 2023/02/13 14:51 (external edit)