{"id":16217419,"url":"https://github.com/sukima/eng-traffic-pi","last_synced_at":"2026-04-17T15:33:17.494Z","repository":{"id":66756101,"uuid":"84614643","full_name":"sukima/eng-traffic-pi","owner":"sukima","description":"Frontend app to remotly control LEDS connected to a RaspberryPi GPIO","archived":false,"fork":false,"pushed_at":"2017-03-16T23:15:31.000Z","size":438,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T22:05:26.856Z","etag":null,"topics":["emberjs","gpio-pins","raspberry-pi","socket-io"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sukima.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-11T01:25:55.000Z","updated_at":"2018-10-02T19:41:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"e7549ed5-9f54-4c91-9e45-e5de8b69dc82","html_url":"https://github.com/sukima/eng-traffic-pi","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/sukima/eng-traffic-pi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sukima%2Feng-traffic-pi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sukima%2Feng-traffic-pi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sukima%2Feng-traffic-pi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sukima%2Feng-traffic-pi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sukima","download_url":"https://codeload.github.com/sukima/eng-traffic-pi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sukima%2Feng-traffic-pi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31934345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["emberjs","gpio-pins","raspberry-pi","socket-io"],"created_at":"2024-10-10T11:45:01.248Z","updated_at":"2026-04-17T15:33:17.477Z","avatar_url":"https://github.com/sukima.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eng-traffic-pi\n\nThis is a client project for a simple traffic light to tell your coworkers in\nthe office when it is ok to interupt you.\n\nThe idea is a RaspberryPi runs a wb server that this Ember app connects to via\nsocket.io. You then can control the traffic light and the corrisponding GPIO\npins toggle on the RaspberryPi.\n\nThe setup uses the\n[Pi-GPIO-Server](https://github.com/projectweekend/Pi-GPIO-Server) project.\nA simple LED setup like this diagram:\n\n\u003cimg src=\"wire-diagram.png\" width=\"300\" alt=\"RaspberryPi GPIO wiring diagram\"\u003e\n\nAnd this project configured to point to the Pi-GPIO-Server.\n\n## Server Configuration\n\nTo help facilitate a better server client relationship the important values\nthat describe a _bulb_ are configured on the server. And because of the design\nof the Pi-GPIO-Server there is only **one** configuration option we can use to\nsend over: **name**.\n\nThe client expects the following data in the **name** property of the server\npins' `config/pins.yml`. The format is expected to be a JSON string payload.\n\n#### `name`\n\nThe name of the pin\n\n#### `color`\n\nA compatible CSS color value for this pin.\n\n#### `order`\n\nAn optional number that can be used to order the lights when the client lists\nthem (ascending).\n\n#### `group`\n\nAn optional string that can be used to associate more then one pin with each\nother. All pins of the same group will only have one pin at a time on. If this\nis blank/null/undefined then it will not matter and function independently from\nany other groups.\n\n#### `description`\n\nDescription of the meaning for this pin.\n\n### Example\n\nFor example if you wanted a traffic light where red, yellow, and green can only\nallow one light on at a time but also a warning light that can be turned on and\noff independently from the traffic lights then the server's `config/pins.yml`\nmight look like this:\n\n```yaml\n17:\n  name: '{\"name\":\"Green Light\",\"color\":\"#2ecc71\",\"order\":30,\"group\":\"traffic\",\"description:\"Come on in and hang out. If the door is closed feel free to open it.\"}'\n  mode: OUT\n  initial: LOW\n18:\n  name: '{\"name\":\"Yellow Light\",\"color\":\"#f1c40f\",\"order\":20,\"group\":\"traffic\",\"description\":\"Hard at work focusing. Inturupt if it is urgent or extreamly quick.\"}'\n  mode: OUT\n  initial: LOW\n27:\n  name: '{\"name\":\"Red Light\",\"color\":\"#e74c3c\",\"order\":10,\"group\":\"traffic\",\"description\":\"In a meeting; do not disturb. Inturupt only if the site is down.\"}'\n  mode: OUT\n  initial: LOW\n28:\n  name: '{\"name\":\"Warning Light\",\"color\":\"#e74c3c\",\"order\":40,\"description\":\"Simple warning light\"}'\n  mode: OUT\n  initial: LOW\n```\n\n## Client Configuration\n\nClient side settings are stored in `localStorage`. The initial defaults are\ndefined in `config/environment.js`.\n\n#### `ENV.enableEasterEggs`\n\n* **Default:** `true`\n* **User customizable:** NO\n\nIf you do not which to include the [Konami\ncode](https://en.wikipedia.org/wiki/Konami_Code) Easter eggs you can set this\nto false.\n\n#### `ENV.APP.defaultTheme`\n\n* **Default:** `standard`\n* **User customizable:** YES\n\nSets the [hack.css](http://hackcss.com/) theme.\n\n#### `ENV.APP.socketUrl`\n\n* **Default:** `http://localhost:4200/` (dev) / `http://10.0.0.100:5000/` (prod)\n* **User customizable:** YES\n\nThis is the socket.io URL to connect to. In development mode it is the same as\nthe ember server because there is a mock socket.io server that gets started\nwhen you run `ember serve` for demo / development purposes. This should point\nto your RaspberryPi's IP address (Pi-GPIO-Server defaults to port 5000) in\nproduction.\n\n## Prerequisites\n\nYou will need the following things properly installed on your computer.\n\n* [Git](https://git-scm.com/)\n* [Node.js](https://nodejs.org/) (with NPM)\n* [Bower](https://bower.io/)\n* [Ember CLI](https://ember-cli.com/)\n* [PhantomJS](http://phantomjs.org/)\n\n## Installation\n\n* `git clone \u003crepository-url\u003e` this repository\n* `cd eng-traffic-pi`\n* `npm install`\n* `bower install`\n\n## Running / Development\n\n* `ember serve`\n* Visit your app at [http://localhost:4200](http://localhost:4200).\n\n### Code Generators\n\nMake use of the many generators for code, try `ember help generate` for more details\n\n### Running Tests\n\n* `ember test`\n* `ember test --server`\n\n### Building\n\n* `ember build` (development)\n* `ember build --environment production` (production)\n\n### Deploying\n\nSpecify what it takes to deploy your app.\n\n## Further Reading / Useful Links\n\n* [ember.js](http://emberjs.com/)\n* [ember-cli](https://ember-cli.com/)\n* Development Browser Extensions\n  * [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)\n  * [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsukima%2Feng-traffic-pi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsukima%2Feng-traffic-pi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsukima%2Feng-traffic-pi/lists"}