An open API service indexing awesome lists of open source software.

https://github.com/robcranfill/fakeu

A simple implementation of a web interface to Heyu, the X10 controller. This was fun, but it's very outdated.
https://github.com/robcranfill/fakeu

Last synced: 3 months ago
JSON representation

A simple implementation of a web interface to Heyu, the X10 controller. This was fun, but it's very outdated.

Awesome Lists containing this project

README

        

fakeu
====
A simple implementation of a web interface to heyu, the
X10
controller.

**Table of Contents**

- [Motivation](#user-content-motivation)
- [Operation](#user-content-operation)
- [Screen shot](#user-content-screen-shot)
- [Requirements](#user-content-requirements)

Motivation
====
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.)

Operation
====
I created a simple PHP page that presents a very simple - but pretty! - GUI, using
JavaScript buttons from Saran Chamling
at Codepen,
JQuery,
and AJAX.

Ultimately, the heyu command is issued by PHP, which, being a server-side thing,
cannot be directly invoked by HTML or JavaScript; hence the use of AJAX.

But take a look at the files - it's really pretty simple. (I had attempted
a pure-PHP solution for a while, but it was horrendous. And non-functional.)

Anyway, enjoy! Feel free to re-use, to ask me questions, etc.

Screen shot
====
![screen shot](https://github.com/RobCranfill/fakeu/blob/master/screenshot1.png)

Requirements
====
PHP (I used version 5.4.4-10), a web server (I used Apache2 2.2.22 (Debian)) and of course 'heyu' (mine is 2.10).

/rob

The table of contents for this page were generated with [DocToc](http://doctoc.herokuapp.com/).