{"id":20199055,"url":"https://github.com/robertodoering/sunix_ledstrip_controller","last_synced_at":"2025-03-03T08:26:12.894Z","repository":{"id":56840841,"uuid":"149930620","full_name":"robertodoering/sunix_ledstrip_controller","owner":"robertodoering","description":"A dart library for controlling the Sunix® RGB / RGBWWCW WiFi LED strip controller","archived":false,"fork":false,"pushed_at":"2019-12-14T19:30:15.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T08:56:39.615Z","etag":null,"topics":["dart-library","flutter-package","led-controller","leds","ledstrip","sunix","sunix-ledstrip-controller"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertodoering.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-22T23:32:18.000Z","updated_at":"2024-09-25T11:17:07.000Z","dependencies_parsed_at":"2022-08-29T12:32:14.261Z","dependency_job_id":null,"html_url":"https://github.com/robertodoering/sunix_ledstrip_controller","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/robertodoering%2Fsunix_ledstrip_controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertodoering%2Fsunix_ledstrip_controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertodoering%2Fsunix_ledstrip_controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertodoering%2Fsunix_ledstrip_controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertodoering","download_url":"https://codeload.github.com/robertodoering/sunix_ledstrip_controller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241631708,"owners_count":19994074,"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":["dart-library","flutter-package","led-controller","leds","ledstrip","sunix","sunix-ledstrip-controller"],"created_at":"2024-11-14T04:35:41.844Z","updated_at":"2025-03-03T08:26:12.785Z","avatar_url":"https://github.com/robertodoering.png","language":"Dart","readme":"# Sunix ledstrip controller\n\nA dart library for controlling the Sunix® RGB / RGBWWCW WiFi LED strip controller.\n\n## Features\n\n- Power the controller off and on\n- Change the color of the led controller\n  - For RGB or RGBWWCW (warm white and cold white) colors\n- Receive the current status of the controller, including the power state and color values\n- Send multiple requests in quick succession\n  - Can be used to create a smooth transition from one color to another\n\n## Installation\n\nYou can install the package by adding the following to your `pubspec.yaml`:\n\n```yaml\ndependencies:\n  sunix_ledstrip_controller: ^1.0.2\n```\n\n## Usage\n\nA simple usage example:\n\n```dart\nimport 'package:sunix_ledstrip_controller/sunix_ledstrip_controller.dart';\n\nmain() async {\n  // create a new controller object with a static ip\n  LedController controller = LedController(\"192.168.178.50\");\n\n  // power the controller on\n  if (await controller.powerOn()) {\n    // methods return true when the request was successfully sent\n    print(\"successfully powered on\");\n  }\n\n  // change the controller color\n  controller.updateColorRgb(192, 255, 238);\n\n  // get the status of the controller\n  StatusResponse status;\n  await controller\n      .requestStatus()\n      .then((response) =\u003e status = response);\n\n  print(\"powered on: ${status?.poweredOn}\");\n  print(\"red:   ${status?.red}\");\n  print(\"blue:  ${status?.green}\");\n  print(\"green: ${status?.blue}\");\n}\n```\n\n## Example\n\nSee the `example` directory for a basic example.\n\n## Attributions\n\nA big thanks goes to [@markusressel](https://github.com/markusressel) for his python library [sunix-ledstrip-controller-client](https://github.com/markusressel/sunix-ledstrip-controller-client).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertodoering%2Fsunix_ledstrip_controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertodoering%2Fsunix_ledstrip_controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertodoering%2Fsunix_ledstrip_controller/lists"}