Custom Search

Saturday, December 26, 2009

First Clojure project: an x10 web page

Ok, the clojure project: Set up a web server on my lan that lets me control the x10-connected appliances on my network from my android phone. There are a number of tools to do this - Heyu and Mr.House come to mind, plus various web things that live on top of things like bottlerocket. Nothing really fits my needs, though - the simpler stuff is very simple, the larger products are formatted for a desktop browser, not a phone. I want the latter formatting, and a few extra facilities - groups of devices and macros, and not a lot else.

So the first part is - done. I can now toggle x10 devices on and off from Clojure. This just used off-the-shelf Java libraries, and most of the hour or so it took was spent dealing with the Java environment and documentation

The hard part is going to be the web interface. That will be a Java servlet, probably using Jetty as the server. However, it needs a framework - and there aren't any I consider useable already available for clojure.