A simple implementation of a web interface to heyu, the X10 controller, implemented with Node.js. (See my other project, fakeu, for the initial PHP version of this web app.)
Table of Contents
I have a Linux box (a Raspberry Pi, actually) running heyu, which automatically controls some of the lights in my house. I would sometimes like to override that - to turn a light on or off immediately. There are solutions for that, such as domus.Link, but I thought I'd have some fun and make my own solution. (Besides, I couldn't entirely get domus.Link to work.)
I created a Node.js script that presents a very simple - but pretty! - GUI, using JavaScript buttons from Saran Chamling at Codepen, JQuery, and AJAX.
Pressing a button on the GUI posts a GET to this same script, which is handled and exec'ed.
Anyway, enjoy! Feel free to re-use, to ask me questions, etc.
Node.js (I'm using v0.10.31) and of course 'heyu' (mine is 2.10). In order to run this as a service on Linux, I used the Node utility "forever".
/rob
The table of contents for this page were generated with DocToc.