{"id":22468548,"url":"https://github.com/projectweekend/pi-flashing-led","last_synced_at":"2025-03-27T15:44:42.358Z","repository":{"id":12867228,"uuid":"15543527","full_name":"projectweekend/Pi-Flashing-LED","owner":"projectweekend","description":"Make red and green LEDs flash using GPIO and control it from any browser on the local network.","archived":false,"fork":false,"pushed_at":"2013-12-31T08:21:59.000Z","size":428,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T19:29:52.181Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/projectweekend.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":"2013-12-31T05:16:11.000Z","updated_at":"2013-12-31T15:50:04.000Z","dependencies_parsed_at":"2022-07-13T21:34:44.188Z","dependency_job_id":null,"html_url":"https://github.com/projectweekend/Pi-Flashing-LED","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2FPi-Flashing-LED","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2FPi-Flashing-LED/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2FPi-Flashing-LED/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2FPi-Flashing-LED/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectweekend","download_url":"https://codeload.github.com/projectweekend/Pi-Flashing-LED/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245874209,"owners_count":20686726,"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","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-12-06T11:17:25.790Z","updated_at":"2025-03-27T15:44:42.319Z","avatar_url":"https://github.com/projectweekend.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pi-Flashing-LED\n===============\n\nMake red and green LEDs flash using GPIO and control it from any browser on the local network.\n\n## Prerequisites:\n\n### Have git installed\nGit makes every day a little brighter. Don't code without it. Seriously. Do it: `sudo apt-get install git`\n\n### Use a virtualenv\nOk, technically this step is optional. You can skip it and still install all of the Python dependencies in the instructions, but you will feel dirty later. Trust me, [virtualenv](http://www.virtualenv.org/) is a Python developer's best friend.\n\n* Install virtualenv: `sudo pip install virtualenv`\n* Start a fresh Python environment: `virtualenv call_it_whatever --no-site-packages`\n* Start your new environment: `source ./call_it_whatever/bin/activate`\n* Stop your environment (when you're done using the server): `deactivate`\n\n### Local network config\nYour Raspberry Pi needs to be connected to your local network (Wifi or Ethernet). If you don't have `avahi-daemon` installed, go take care of that: `sudo apt-get install avahi-daemon`\n\nThis will expose your Pi using its `hostname` on the local network. If the `hostname` is still set as default, you can access your Pi at `raspberrypi.local`. When the web server is running you can access it in a browser at `http://raspberrypi.local`\n\n### Physical LED config\n* Green LED connected on GPIO 18\n* Red LED connected on GPIO 23\n\n## Instructions:\n\n* Make sure your `virtualenv` is activated (see section above)\n* Clone this repo on your Pi: `git clone https://github.com/projectweekend/Pi-Flashing-LED.git`\n* Install Python requirements from inside the cloned repo directory: `pip install -r requirements.txt`\n* Fire up the web server: `sudo python server.py`\n* Hit site from any browser on your local network (the URL in the screen shot below is different because I changed the hostname of my Pi): `http://raspberrypi.local`\n![Screenshot](https://raw.github.com/projectweekend/Pi-Flashing-LED/master/screenshot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectweekend%2Fpi-flashing-led","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectweekend%2Fpi-flashing-led","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectweekend%2Fpi-flashing-led/lists"}