Logo ©1994-2007 Kevin Boone
My professional interests
Computing
Law
Education
Science and research

My leisure interests
Martial arts
Heritage railways
Garden railways
Motorcycles
DIY

Downloads
Linux downloads
Windows downloads
Java downloads
Perl downloads
Home automation downloads

About me
Home & family
My CV

Site info
Contact the author
Download policy
Keyword index

  *** I have changed my e-mail address: please see the contact page for details ***
Home > Downloads > Home automation downloads

A Web client for the X10 home automation API

Last modified: Thu Jul 8 11:56:16 2004

This package implements a Web application that simulates an X10 controller handset. That is, it allows devices to be switched on and off, brightened or dimmed just as with, say, an X10 mini-controller.

In operation, it looks something like this:

screenshot

The application does not talk directly to any X10 hardware, but uses the `java.x10' API; this API is a vendor-independent implementation of the X10 command set in Java. It requires a java.x10-compliant driver; somewhere in this package is a driver for the `twseriald' automation server, which in turn drives a TW723 two-way controller. The driver architecture is straightforward, and it should not be difficult to implement drivers for other hardware

This application requires a J2EE-compliant JSP engine. I have tested it with Sun's J2EE Reference Implementation and Tomcat 3.2.1. In theory it will work with any J2EE JSP engine, but there may be issues with making the driver classes available.

For this application to work, the JSP engine must be able to find, in addition to the JSP pages and static content in this package, the classes for the javax10 API (typically package in x10api.jar) and the classes for the driver. The Reference Implementation packages these up into the EAR file along with the application components, and uses the `manifest classpath' setting to tell the server where to find them. Not all JSP engines support this technique, and you may need to tweak its classpath manually.

The operation of the application is, I believe, self-explanatory

There are various variables that must be set in the file `defs.jsp' deploying the applications.

  • driver (mandatory). The class that forms the driver for the X10 hardware or server
  • url (mandatory). The URL used by the X10 driver to locate the server
  • username Username for access to the controller, if used
  • pass Password corresponding to the username
  • defaultHousecode The housecode (expressed as a number 1-16) that will be in effect the first time the application starts. After this, it is set using buttons on the display.

   
Search

WebThis site

Shameless plug

By the author of this site. Buy on-line from Amazon USA | UK

Editorial
So you want to be a university lecturer? Read this first!

Speak like your boss: new developments in managerese

Computing features
File handling in the Linux kernel: an in-depth look at how Linux handles files, filesystems, and file I/O

All sorts of Linux stuff

Confused about CLASSPATH? answers are here

First steps in EJB using jBoss (recently revised for jBoss 3.2)