{"id":28939224,"url":"https://github.com/ynnckth/raspi-led-strip","last_synced_at":"2026-05-15T13:35:17.090Z","repository":{"id":300552211,"uuid":"1006445399","full_name":"ynnckth/raspi-led-strip","owner":"ynnckth","description":"LED strip for Raspberry Pi","archived":false,"fork":false,"pushed_at":"2025-06-22T10:49:49.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T11:18:59.771Z","etag":null,"topics":["led-strips","neopixel","python","raspberry-pi"],"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/ynnckth.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,"zenodo":null}},"created_at":"2025-06-22T09:36:33.000Z","updated_at":"2025-06-22T10:49:52.000Z","dependencies_parsed_at":"2025-06-22T11:19:08.315Z","dependency_job_id":"ab5e94d1-21e9-4295-a0b3-7d6a8f27ffd2","html_url":"https://github.com/ynnckth/raspi-led-strip","commit_stats":null,"previous_names":["ynnckth/raspi-led-strip"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ynnckth/raspi-led-strip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ynnckth%2Fraspi-led-strip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ynnckth%2Fraspi-led-strip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ynnckth%2Fraspi-led-strip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ynnckth%2Fraspi-led-strip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ynnckth","download_url":"https://codeload.github.com/ynnckth/raspi-led-strip/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ynnckth%2Fraspi-led-strip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261386809,"owners_count":23150873,"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":["led-strips","neopixel","python","raspberry-pi"],"created_at":"2025-06-23T00:07:17.483Z","updated_at":"2026-05-15T13:35:12.045Z","avatar_url":"https://github.com/ynnckth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi LED Strip\n*WS2812B LED Strip connected to a Raspberry Pi*\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"images/demo.jpeg\" alt=\"Demo image\" style=\"width: 250px;\"\u003e\n\u003c/p\u003e\n\n## Prerequisites\n- Raspberry Pi (tested with models 3/B+ and 4/B+)\n- WS2812B LED strip\n- Python and Pip\n\n## Hardware setup\n- LED strip high to 5v pin on Pi (check pin layout using `pinout` command on the Pi)\n- LED strip ground to GND pin on Pi\n- LED strip data to GPIO18 pin on Pi\n\n\n## Installation \u0026 setup\nDisable output on GPIO18 pin: \n```shell\nsudo nano /boot/config.txt\n# Ensure the following value is off:\n# dtparam=audio=off\n```\n\nInstall dependencies:\n```shell\nsudo apt update\n\npip3 install flask\nsudo pip3 install rpi_ws281x adafruit-circuitpython-neopixel --break-system-packages\nsudo python3 -m pip install --force-reinstall adafruit-blinka --break-system-packages\n\n# Add the current user (pi) to the gpio group and reboot\nsudo usermod -aG gpio $USER\nsudo reboot\n```\n\n### Troubleshooting installation\n\nIn some cases `adafruit-blinka` installs the wrong GPIO module (Jetson error when starting server).\nIn such case, simply uninstall the Jetson GPIO package and re-run the server: \n```shell \nsudo pip3 uninstall Jetson.GPIO --break-system-packages\n```\n\n## Running manually\n\nStart the server:\n```shell\n# Super user rights are required to access GPIO functionality\nsudo python3 server.py\n```\n\n- Switch on the LED strip in rainbow mode: [http://YOUR_RASPI_IP:8888/led-strip/rainbow/on](http://YOUR_RASPI_IP:8888/led-strip/rainbow/on)\n- Switch on the LED strip in red pulse mode: [http://YOUR_RASPI_IP:8888/led-strip/red/on](http://YOUR_RASPI_IP:8888/led-strip/red/on)\n- Switch on the LED strip in blue pulse mode: [http://YOUR_RASPI_IP:8888/led-strip/blue/on](http://YOUR_RASPI_IP:8888/led-strip/blue/on)\n- Switch off the LED strip: [http://YOUR_RASPI_IP:8888/led-strip/off](http://YOUR_RASPI_IP:8888/led-strip/off)\n\n\n## Running automatically on system startup\n\nCreate a systemd service file\n```shell\nsudo nano /etc/systemd/system/led-strip.service\n```\n\nPaste the following content (adapt the path to your project files):\n```\n[Unit]\nDescription=LED Strip Control HTTP Server\nAfter=network.target\n\n[Service]\nExecStart=/usr/bin/python3 /home/pi/raspi-led-strip/server.py\nWorkingDirectory=/home/pi/raspi-led-strip\nStandardOutput=inherit\nStandardError=inherit\nRestart=always\n\n[Install]\nWantedBy=multi-user.target\n```\n\nReload systemd, enable and start the service: \n```shell\nsudo systemctl daemon-reexec\nsudo systemctl daemon-reload\nsudo systemctl enable led-strip.service\nsudo systemctl start led-strip.service\n```\n\nConfirm it's running:\n```shell\nsudo systemctl status led-strip.service\n```\n\nView logs:\n```shell\njournalctl -u led-strip.service -f\n```\n\n## Useful links\n\n- [Adafruit tutorial](https://learn.adafruit.com/neopixels-on-raspberry-pi/python-usage)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fynnckth%2Fraspi-led-strip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fynnckth%2Fraspi-led-strip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fynnckth%2Fraspi-led-strip/lists"}