Motion Sensor Reports 
New Motion Sensor Reports

The following is a Tutorial for XTension to illustrate setting up the automatic motion sensor reports that are part of X2Web. XTension is the grandfather of all Macintosh home automation programs and X2Web provides a web based interface to your XTension setup.

In XTension version 5.2.3 and newer there is a new way to attach a script to multiple units. The instructions that come with X2Web describe adding a call to LogMotion() in the ON script of every motion sensor unit that you want to log. This can be a lot of work of opening and editing dozens of scripts if you have a lot of motion sensors or other units that you want to log.

XTension 5.2.3 adds a feature to the Group so that whenever a unit that is a member of that group has it's value changed a handler in the groups ON script named: GroupMemberChanged( TheUnit, TheValue) will be called and passed the unit name and the new value.

This handler can be used anywhere you'd normally have to go through and add the same call or bit of script to a large number of individual units scripts.


Here are the new instructions for logging your motion sensor or other data to the database.

After this point you can follow the regular instructions for creating a list that contains the ones you want to display in X2Web

Last Updated: 11/11/2004 4:02pm EST
Contents and images are Copyright 2004 by James Sentman. All Rights Reserved.