{"id":22437567,"url":"https://github.com/redduckbot/raspberrypi-led-web-app","last_synced_at":"2026-05-09T19:06:21.045Z","repository":{"id":249602181,"uuid":"831895714","full_name":"RedDuckBot/RaspberryPI-LED-Web-App","owner":"RedDuckBot","description":"Locally controlling LED lights from a web browser using Raspberry PI and python Flask. ","archived":false,"fork":false,"pushed_at":"2024-08-02T21:21:26.000Z","size":98772,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T13:46:02.381Z","etag":null,"topics":["inter-process-communication","opencv","python-flask","raspberry-pi","tcp-client","tcp-server","udp-client","udp-server","web-application"],"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/RedDuckBot.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":"2024-07-21T23:39:25.000Z","updated_at":"2024-08-17T06:33:13.000Z","dependencies_parsed_at":"2024-08-02T23:56:14.151Z","dependency_job_id":null,"html_url":"https://github.com/RedDuckBot/RaspberryPI-LED-Web-App","commit_stats":null,"previous_names":["redduckbot/raspberrypi_led_web_app","redduckbot/raspberrypi-led-web-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedDuckBot%2FRaspberryPI-LED-Web-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedDuckBot%2FRaspberryPI-LED-Web-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedDuckBot%2FRaspberryPI-LED-Web-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedDuckBot%2FRaspberryPI-LED-Web-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedDuckBot","download_url":"https://codeload.github.com/RedDuckBot/RaspberryPI-LED-Web-App/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245813264,"owners_count":20676764,"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":["inter-process-communication","opencv","python-flask","raspberry-pi","tcp-client","tcp-server","udp-client","udp-server","web-application"],"created_at":"2024-12-06T00:13:25.894Z","updated_at":"2026-05-09T19:06:21.005Z","avatar_url":"https://github.com/RedDuckBot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple LED Web Application \n\nLocally control three LEDs through a web browser, and get a live video stream \nof any changes made. The setup involves a web server made using the python \nframework Flask, Raspberry PI 3B+, and python OpenCV to operate a USB camera.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg title='LED Web App Clip' src=docs/led_web_app_video.gif width=\"600\"\u003e\n\u003c/p\u003e\n\n## Architecture\n\u003cp align=\"center\"\u003e\n  \u003cimg title='LED Web App Architecture' src=docs/software_architecture.png width=\"800\", height=\"200\"\u003e\n\u003c/p\u003e\n\nThe above diagram shows how the project's software components were setup, involving three servers, who are started in \"main.py\", and a program running on the Raspberry PI, called \"control_LEDs.py\", containing two threads that are responsible for operating the USB camera and LEDs. \n\n## Running the Application\nBefore starting the programs, connect the USB camera and LEDs to the Raspberry PI's GPIO pins: \n- Red ---\u003e GPIO22 \n- Yellow ---\u003e GPIO27\n- Green ---\u003e GPIO17\n\nInstall require python packages:\n```\npip install -r ./docs/requirements.txt\n```\nNext, identify the IP address for your machine that you'll be running the servers on. Then, in the files \"main.py\", \"control_LEDs.py\", and \"server_LED.py\", set the global variable \"HOST\" to this IP. Now the programs can be started.\n\nStart the servers on the computer hosting them:\n```\npython main.py\n```\n\nThen, start \"control_LEDs.py\" on the Raspberry PI. \n\nFinally, access a browser from any computer on your local network and enter the\nfollowing into the omni box: \"[HOST IP address]:9999\"\n\nWhen done with the application, all the running programs can be closed by hitting Ctrl + c.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredduckbot%2Fraspberrypi-led-web-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredduckbot%2Fraspberrypi-led-web-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredduckbot%2Fraspberrypi-led-web-app/lists"}