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.
- Host: GitHub
- URL: https://github.com/robcranfill/fakeu
- Owner: RobCranfill
- Created: 2014-07-26T17:47:34.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-21T03:29:50.000Z (over 10 years ago)
- Last Synced: 2025-01-15T06:51:08.128Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 367 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
====
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/).