{"id":22820189,"url":"https://github.com/kizzycode/ws2812b-cgi-rust","last_synced_at":"2025-03-30T23:16:40.148Z","repository":{"id":198966717,"uuid":"701907356","full_name":"KizzyCode/Ws2812b-cgi-rust","owner":"KizzyCode","description":"A tiny CGI application which to bridge JSON update requests to a WS2812B serial driver","archived":false,"fork":false,"pushed_at":"2023-10-10T17:55:53.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T04:44:16.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/KizzyCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE BSD 2-CLAUSE.md","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":"2023-10-07T23:25:48.000Z","updated_at":"2023-10-07T23:26:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"a1e22f3c-0eed-4e93-b6ae-185c3056fc71","html_url":"https://github.com/KizzyCode/Ws2812b-cgi-rust","commit_stats":null,"previous_names":["kizzycode/ws2812b-cgi-rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KizzyCode%2FWs2812b-cgi-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KizzyCode%2FWs2812b-cgi-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KizzyCode%2FWs2812b-cgi-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KizzyCode%2FWs2812b-cgi-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KizzyCode","download_url":"https://codeload.github.com/KizzyCode/Ws2812b-cgi-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246390858,"owners_count":20769478,"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-12T15:16:56.321Z","updated_at":"2025-03-30T23:16:40.119Z","avatar_url":"https://github.com/KizzyCode.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License BSD-2-Clause](https://img.shields.io/badge/License-BSD--2--Clause-blue.svg)](https://opensource.org/licenses/BSD-2-Clause)\n[![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![AppVeyor CI](https://ci.appveyor.com/api/projects/status/github/KizzyCode/Ws2812b-cgi-rust?svg=true)](https://ci.appveyor.com/project/KizzyCode/Ws2812b-cgi-rust)\n\n\n# `ws2812b-cgi`\nWelcome to `ws2812b-cgi` 🎉\nThis application is a tiny (CGI) application which reads a JSON array with update commands from `stdin`, translates them\ninto [WS2812B driver commands](https://github.com/KizzyCode/WS2812BDriver-rust-rp2040), and sends them to the driver's\nserial port.\n\n## Configuration\nDue to configuration limits in a CGI environment, the configuration is set during compilation via the following\nenvironment variables:\n- `WS2812B_CGI_SERIALDEVICE`: The path to the serial device (defaults to `/dev/ws2812b.serial`)\n- `WS2812B_CGI_TIMEOUT`: The timeout for a CGI process in seconds, used for the internal watchdog (defaults to 10 \n  seconds)\n\n## Example\nChange the 0th pixel of the 0th strip to white (RGBW 255,255,255,0):\n```sh\necho '[{ \"strip\": 0, \"pixel\": 0, \"rgbw\": [255,255,255,0] }]' | ws2812b\n```\n\n## Docker\nThe docker image uses `/dev/ws2812b.serial` as serial device path - you can simply mount your real device onto this\npath. Please note, that the `docker-compose.yml` is an example and must be adapted to your specific setup.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkizzycode%2Fws2812b-cgi-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkizzycode%2Fws2812b-cgi-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkizzycode%2Fws2812b-cgi-rust/lists"}