{"id":20374110,"url":"https://github.com/robcranfill/fakeu","last_synced_at":"2025-10-29T00:13:18.199Z","repository":{"id":19065742,"uuid":"22292545","full_name":"RobCranfill/fakeu","owner":"RobCranfill","description":"A simple implementation of a web interface to Heyu, the X10 controller. This was fun, but it's very outdated.","archived":false,"fork":false,"pushed_at":"2014-08-21T03:29:50.000Z","size":376,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T20:46:08.574Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobCranfill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-26T17:47:34.000Z","updated_at":"2020-12-29T01:41:04.000Z","dependencies_parsed_at":"2022-09-25T04:12:02.347Z","dependency_job_id":null,"html_url":"https://github.com/RobCranfill/fakeu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RobCranfill/fakeu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCranfill%2Ffakeu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCranfill%2Ffakeu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCranfill%2Ffakeu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCranfill%2Ffakeu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobCranfill","download_url":"https://codeload.github.com/RobCranfill/fakeu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCranfill%2Ffakeu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281534213,"owners_count":26517985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T01:22:23.286Z","updated_at":"2025-10-29T00:13:18.185Z","avatar_url":"https://github.com/RobCranfill.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"fakeu\n====\nA simple implementation of a web interface to heyu, the \n\u003ca href='http://en.wikipedia.org/wiki/X10_%28industry_standard%29' target='_blank'\u003eX10\u003c/a\u003e\n controller.\n\n**Table of Contents**\n\n- [Motivation](#user-content-motivation)\n- [Operation](#user-content-operation)\n- [Screen shot](#user-content-screen-shot)\n- [Requirements](#user-content-requirements)\n\nMotivation\n====\nI have a Linux box (a \n\u003ca href='http://www.raspberrypi.org/' target='_blank'\u003eRaspberry Pi\u003c/a\u003e, actually) running\n\u003ca href='http://heyu.tanj.com/' target='_blank'\u003eheyu\u003c/a\u003e, \nwhich automatically controls some of the lights in my house. \nI would sometimes like to override that - to turn a light on or off immediately. \nThere are solutions for that, such as \n\u003ca href='http://domus.link.co.pt/' target='_blank'\u003edomus.Link\u003c/a\u003e, \nbut I thought I'd have some fun and make my own solution. \n(Besides, I couldn't entirely get domus.Link to work.)\n\n\nOperation\n====\nI created a simple PHP page that presents a very simple - but pretty! - GUI, using\nJavaScript buttons from \u003ca href='https://plus.google.com/u/0/114294210195147580398?rel=author' target='_blank'\u003eSaran Chamling\u003c/a\u003e \nat \u003ca href='http://www.sanwebe.com/2013/01/40-css-buttons-from-codepen' target='_blank'\u003eCodepen\u003c/a\u003e, \n\u003ca href='http://jquery.com/' target='_blank'\u003eJQuery\u003c/a\u003e, \nand \u003ca href='http://api.jquery.com/jquery.ajax/' target='_blank'\u003eAJAX\u003c/a\u003e.\n\nUltimately, the heyu command is issued by PHP, which, being a server-side thing,\ncannot be directly invoked by HTML or JavaScript; hence the use of AJAX.\n\nBut take a look at the files - it's really pretty simple. (I had attempted\na pure-PHP solution for a while, but it was horrendous. And non-functional.)\n\nAnyway, enjoy! Feel free to re-use, to ask me questions, etc.\n\n\nScreen shot\n====\n![screen shot](https://github.com/RobCranfill/fakeu/blob/master/screenshot1.png)\n\n\nRequirements\n====\nPHP (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).\n\n\n /rob\n\nThe table of contents for this page were generated with [DocToc](http://doctoc.herokuapp.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobcranfill%2Ffakeu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobcranfill%2Ffakeu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobcranfill%2Ffakeu/lists"}