{"id":15510379,"url":"https://github.com/ananace/light","last_synced_at":"2025-10-06T21:57:17.029Z","repository":{"id":143078677,"uuid":"51235565","full_name":"ananace/light","owner":"ananace","description":"Personal light service","archived":false,"fork":false,"pushed_at":"2021-05-18T19:29:10.000Z","size":147,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T05:12:12.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/ananace.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":"2016-02-07T04:38:01.000Z","updated_at":"2021-05-18T19:29:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0712bdc-766a-4ee7-9bb8-fd40e31350a2","html_url":"https://github.com/ananace/light","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ananace/light","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananace%2Flight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananace%2Flight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananace%2Flight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananace%2Flight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ananace","download_url":"https://codeload.github.com/ananace/light/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananace%2Flight/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278686633,"owners_count":26028325,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-02T09:48:09.427Z","updated_at":"2025-10-06T21:57:17.012Z","avatar_url":"https://github.com/ananace.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"LED REST service\n====\n\nA simple service in C for controlling an RGB LED strip connected to a BitWizard Motor board over SPI or an P9813 IC, made for running on a Raspberry Pi\n\nSupports both REST and MQTT interfaces for status and modification.\n\nHTTP endpoints;\n- `GET /light/state`\n- `POST /light/state` - Using either query or form-encoded `state=0|off|1|on`\n- `DELETE /light/state`\n- `GET /light/rgb`\n- `POST /light/rgb` - Using either query or form-encoded `r=0..255` `g=0..255` `b=0..255`\n- `DELETE /light/rgb`\n- `GET /light/hsv`\n- `POST /light/hsv` - Using either query or form-encoded `h=0..360` `s=0..1` `v=0..1`\n- `DELETE /light/hsv`\n- `GET /light/temperature` (for blackbody radiation, in Kelvin)\n- `POST /light/temperature` - Using either query or form-encoded `k=1000..40000` `v=0..1` \n- `DELETE /light/temperature`\n\nPublished MQTT topics; (Using the default prefix of `light`)\n- `light/state` - `on`|`off`\n- `light/temperature` - blackbody radiation in Kelvin (`1000..40000`)\n- `light/rgb` - comma-separated RGB color (`0..255`)\n- `light/color` - comma-separated hue (`0..360`) and saturation (`0..100`)\n- `light/brightness` - brightness (`0..100`)\n\nSubscribed MQTT topics; (Using the default prefix of `light`)\n- `light/state/set` - Accepts `on`|`off`\n- `light/temperature/set` - Accepts Kelvin `1000..40000`\n- `light/color/set` - Accepts comma-separated hue and saturation in `0..360` and `0..100`\n- `light/brightness/set` - Accepts brightness in `0..100`\n- `light/rgb/set` - Accepts comma-separated RGB in `0..255` (Auto-scales to brightness)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fananace%2Flight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fananace%2Flight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fananace%2Flight/lists"}