{"id":17100637,"url":"https://github.com/jakobhellermann/sonor","last_synced_at":"2025-04-12T23:53:50.517Z","repository":{"id":41479452,"uuid":"181665480","full_name":"jakobhellermann/sonor","owner":"jakobhellermann","description":"Sonos library for rust","archived":false,"fork":false,"pushed_at":"2023-09-16T14:09:04.000Z","size":165,"stargazers_count":33,"open_issues_count":1,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T23:53:45.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/jakobhellermann.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}},"created_at":"2019-04-16T10:13:48.000Z","updated_at":"2024-12-27T13:45:59.000Z","dependencies_parsed_at":"2022-09-07T17:34:25.007Z","dependency_job_id":null,"html_url":"https://github.com/jakobhellermann/sonor","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fsonor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fsonor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fsonor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fsonor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakobhellermann","download_url":"https://codeload.github.com/jakobhellermann/sonor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647237,"owners_count":21139083,"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-10-14T15:14:19.260Z","updated_at":"2025-04-12T23:53:50.492Z","avatar_url":"https://github.com/jakobhellermann.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub last commit](https://img.shields.io/github/last-commit/jakobhellermann/sonor.svg)\n[![Crates.io](https://img.shields.io/crates/v/sonor.svg)](https://crates.io/crates/sonor)\n\nThis crate is a Sonos controller library written in Rust.\nIt operates asynchronously and aims for a simple to use yet powerful API.\n\n# Example\n```rust\nlet speaker = sonor::find(\"your room name\", Duration::from_secs(2)).await?\n    .expect(\"room exists\");\n\nprintln!(\"The volume is currently at {}\", speaker.volume().await?);\n\nmatch speaker.track().await? {\n    Some(track_info) =\u003e println!(\"- Currently playing '{}\", track_info.track()),\n    None =\u003e println!(\"- No track currently playing\"),\n}\n\nspeaker.clear_queue().await?;\n\nspeaker.join(\"some other room\").await?;\n```\nFor a full list of actions implemented, look at the [Speaker](struct.Speaker.html) docs.\n\nIf your use case isn't covered, this crate also exposes the raw UPnP Action API\n[here](struct.Speaker.html#method.action).\nIt can be used like this:\n```rust\nuse sonor::URN;\n\nlet service = URN::service(\"schemas-upnp-org\", \"GroupRenderingControl\", 1);\nlet args = \"\u003cInstanceID\u003e0\u003c/InstanceID\u003e\";\nlet response = speaker.action(\u0026service, \"GetGroupMute\", args).await?;\n\nprintln!(\"{}\", response[\"CurrentMute\"]);\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobhellermann%2Fsonor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakobhellermann%2Fsonor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobhellermann%2Fsonor/lists"}