{"id":17920188,"url":"https://github.com/lostmsu/stack.kasa","last_synced_at":"2025-04-03T08:27:56.722Z","repository":{"id":37237332,"uuid":"501001000","full_name":"lostmsu/Stack.Kasa","owner":"lostmsu","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-07T22:31:45.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T06:09:33.928Z","etag":null,"topics":["smart-home","stack","stack-wm"],"latest_commit_sha":null,"homepage":"","language":"C#","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/lostmsu.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}},"created_at":"2022-06-07T20:54:22.000Z","updated_at":"2025-01-07T22:31:48.000Z","dependencies_parsed_at":"2022-08-18T18:30:32.392Z","dependency_job_id":null,"html_url":"https://github.com/lostmsu/Stack.Kasa","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/lostmsu%2FStack.Kasa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostmsu%2FStack.Kasa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostmsu%2FStack.Kasa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostmsu%2FStack.Kasa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostmsu","download_url":"https://codeload.github.com/lostmsu/Stack.Kasa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246964322,"owners_count":20861642,"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":["smart-home","stack","stack-wm"],"created_at":"2024-10-28T20:21:44.568Z","updated_at":"2025-04-03T08:27:56.704Z","avatar_url":"https://github.com/lostmsu.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"Stack Widgets for Kasa smart devices\n\n## Example usage\n\n1. Add the following definitions to your layout:\n```xml\nxmlns:dataSources=\"clr-namespace:LostTech.Stack.Widgets.DataSources;assembly=LostTech.Stack.Widgets\"\nxmlns:kasa=\"clr-namespace:Stack.Kasa;assembly=Stack.Kasa\"\n```\n\n2. Create a sensor\n```xml\n\u003cGrid.Resources\u003e\n  \u003ckasa:KasaOutlet x:Key=\"PowerMeter\"\n                   HostOrIP=\"192.168.1.2\"\n                   dataSources:DataSource.RefreshInterval=\"0:0:5\" /\u003e\n\u003c/Grid.Resources\u003e\n```\n\n3. Bind a `TextBlock`\n```xml\n\u003cTextBlock Text=\"{Binding Power, Source={StaticResource PowerMeter}, Mode=OneWay, StringFormat={}{0:0}W}\"\n           Background=\"White\" Padding=\"7,3\" /\u003e\n```\n\n4. Build the project and copy the following files to the `CustomWidgets` folder\n(it should be next to your `Layouts` folder):\n`Stack.Kasa.dll`, `Newtonsoft.Json.dll`, `slf4net.dll`, and `Kasa.dll`.\n\n5. Restart Stack and load the updated layout.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostmsu%2Fstack.kasa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostmsu%2Fstack.kasa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostmsu%2Fstack.kasa/lists"}