{"id":25831305,"url":"https://github.com/animatedledstrip/client-dart","last_synced_at":"2025-07-25T13:41:22.693Z","repository":{"id":107357242,"uuid":"285401006","full_name":"AnimatedLEDStrip/client-dart","owner":"AnimatedLEDStrip","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-01T20:03:41.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T23:06:40.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnimatedLEDStrip.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-08-05T20:49:31.000Z","updated_at":"2020-09-01T20:03:44.000Z","dependencies_parsed_at":"2023-06-11T12:30:40.422Z","dependency_job_id":null,"html_url":"https://github.com/AnimatedLEDStrip/client-dart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AnimatedLEDStrip/client-dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimatedLEDStrip%2Fclient-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimatedLEDStrip%2Fclient-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimatedLEDStrip%2Fclient-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimatedLEDStrip%2Fclient-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnimatedLEDStrip","download_url":"https://codeload.github.com/AnimatedLEDStrip/client-dart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimatedLEDStrip%2Fclient-dart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263366701,"owners_count":23455797,"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":"2025-02-28T20:33:19.580Z","updated_at":"2025-07-03T17:10:47.072Z","avatar_url":"https://github.com/AnimatedLEDStrip.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AnimatedLEDStrip Client Library for Dart\n\n[![Build Status](https://travis-ci.com/AnimatedLEDStrip/client-dart.svg?branch=master)](https://travis-ci.com/AnimatedLEDStrip/client-dart)\n[![pub package](https://img.shields.io/pub/v/animatedledstripclient.svg)](https://pub.dev/packages/animatedledstripclient)\n[![codecov](https://codecov.io/gh/AnimatedLEDStrip/AnimatedLEDStripClient/branch/master/graph/badge.svg?flag=dart)](https://codecov.io/gh/AnimatedLEDStrip/AnimatedLEDStripClient)\n\n## Creating an `AnimationSender`\nAn `AnimationSender` is constructed with two arguments:\n- `host`: The IP address of the server (as a string)\n- `port`: The port that the client should connect to (as an integer)\n\n```dart\nvar sender = AnimationSender(\"10.0.0.254\", 5);\n```\n\n## Starting the `AnimationSender`\nAn `AnimationSender` is started by calling the `start()` method on the instance.\n\n```dart\nawait sender.start();    // Note that this requires your \n                         // method to have the async keyword\n```\n\n## Stopping the `AnimationSender`\nTo stop the `AnimationSender`, call its `end()` method.\n\n```dart\nsender.end();\n```\n\n## Sending Data\nAn animation can be sent to the server by creating an `AnimationData` instance, then calling `sendAnimation` with the instance as the argument.\n\n```dart\nvar cc = ColorContainer()\n  ..addColor(0xFF)\n  ..addColor(0xFF00);\n\nvar data = AnimationData()\n  ..addColor(cc);\n\nsender.sendAnimation(data);\n```\n\n#### `AnimationData` type notes\nThe Dart library uses the following values for `continuous` and `direction`:\n- `continuous`: `null`, `true`, `false`\n- `direction`: `Direction.FORWARD`, `Direction.BACKWARD`\n\n## Receiving Data\nReceived animations are saved to `running_animations`, which is a `RunningAnimationMap` (which is a thread-safe map).\n\nTo retrieve an animation, use\n```dart\nvar anim = await sender.running_animations.get(ID);\n```\nwhere `ID` is the string ID of the animation.\n\nTo get a list of all animation IDs, use\n```dart\nvar ids = await sender.running_animations.ids();\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanimatedledstrip%2Fclient-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanimatedledstrip%2Fclient-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanimatedledstrip%2Fclient-dart/lists"}