{"id":37979161,"url":"https://github.com/bwilczynski/sonos-cli","last_synced_at":"2026-01-16T18:32:58.827Z","repository":{"id":46344456,"uuid":"161085474","full_name":"bwilczynski/sonos-cli","owner":"bwilczynski","description":"Command-line tools for Sonos.","archived":false,"fork":false,"pushed_at":"2023-07-26T05:49:32.000Z","size":148,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-07T12:52:19.080Z","etag":null,"topics":["cli","household","python","sonos"],"latest_commit_sha":null,"homepage":"","language":"Python","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/bwilczynski.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":"2018-12-09T22:02:40.000Z","updated_at":"2021-10-29T20:05:32.000Z","dependencies_parsed_at":"2023-01-25T11:00:43.455Z","dependency_job_id":null,"html_url":"https://github.com/bwilczynski/sonos-cli","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/bwilczynski/sonos-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwilczynski%2Fsonos-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwilczynski%2Fsonos-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwilczynski%2Fsonos-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwilczynski%2Fsonos-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwilczynski","download_url":"https://codeload.github.com/bwilczynski/sonos-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwilczynski%2Fsonos-cli/sbom","scorecard":{"id":259719,"data":{"date":"2025-08-11","repo":{"name":"github.com/bwilczynski/sonos-cli","commit":"346bfd05e9f24263754990d32c4de79df9df67fb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/deploy.yml:1","Warn: no topLevel permission defined: .github/workflows/verify.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/bwilczynski/sonos-cli/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/bwilczynski/sonos-cli/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/bwilczynski/sonos-cli/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/bwilczynski/sonos-cli/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/verify.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/bwilczynski/sonos-cli/verify.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/verify.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/bwilczynski/sonos-cli/verify.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:16","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:17","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:40","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:41","Warn: pipCommand not pinned by hash: .github/workflows/verify.yml:16","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2025-49 / GHSA-5rjg-fvgr-3xxf","Warn: Project is vulnerable to: GHSA-cx63-2mw6-8hw5","Warn: Project is vulnerable to: GHSA-g7vv-2v7x-gj9p","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T10:33:38.826Z","repository_id":46344456,"created_at":"2025-08-17T10:33:38.826Z","updated_at":"2025-08-17T10:33:38.826Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480931,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","household","python","sonos"],"created_at":"2026-01-16T18:32:58.751Z","updated_at":"2026-01-16T18:32:58.810Z","avatar_url":"https://github.com/bwilczynski.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sonos command-line interface\n\nControl your Sonos players from command-line. Uses [Sonos Control API](https://developer.sonos.com/reference/control-api/) to control Sonos groups.\n\n![Build Status](https://github.com/bwilczynski/sonos-cli/workflows/verify/badge.svg) ![Deploy Status](https://github.com/bwilczynski/sonos-cli/workflows/deploy/badge.svg) [![PyPI](https://img.shields.io/pypi/v/sonos-cli.svg)](https://pypi.org/project/sonos-cli/)\n\n## Installation\n\nUsing `Homebrew` on OSX:\n\n```sh\nbrew tap bwilczynski/tap\nbrew install sonos-cli\n```\n\nUsing `pip` (requires Python 3):\n\n```sh\npip install sonos-cli\n```\n\n## Usage\n\n```bash\n$ sonos [OPTIONS] COMMAND [ARGS]\n```\n\n### Get Started\n\n[Setup integration](https://developer.sonos.com/build/direct-control/authorize/) with Sonos API\nand run `sonos config` to provide\nyour application's Client ID and Client Secret.\n\nMake sure that:\n\n- Redirect URI is set to: http://localhost:5000\n- YOUR_CLIENT_ID: set to your **Key** (and not key name)\n- YOUR_CLIENT_SECRET: set to your **Secret**\n\n![Sonos Integration](/screenshots/sonos-integration.png?raw=true)\n\nAlternatively set the following environment variables before running `sonos`:\n\n```bash\nexport SONOS_CLIENT_ID={YOUR_CLIENT_ID}\nexport SONOS_CLIENT_SECRET={YOUR_CLIENT_SECRET}\n```\n\nLogin to your Sonos service (opens a web browser sending user to Sonos login service):\n\n```bash\n$ sonos login\n```\n\nSet active household:\n\n```bash\n$ sonos set household\n```\n\nFor usage and help content, pass in the `--help` parameter, for example:\n\n```bash\n$ sonos --help\n$ sonos get --help\n```\n\n### Available commands\n\n#### Get information from your Sonos:\n\n```bash\n$ sonos get [groups | households | playlists | tracks]\n```\n\nFormat displayed result using `--output` option:\n\n```bash\n$ sonos get groups --output table\n\ncoordinatorId             id                                   name              playbackState\n------------------------  -----------------------------------  ----------------  ----------------------\nRINCON_B8E937E6D36202100  RINCON_B8E937E6D36202100:23          Bedroom.          PLAYBACK_STATE_PAUSED\nRINCON_B8E937E6D40E02100  RINCON_B8E937E6D40E02100:128         Bathroom          PLAYBACK_STATE_IDLE\nRINCON_B8E937DA7E6802100  RINCON_B8E937DA7E6802100:17          Bathroom 2.       PLAYBACK_STATE_PAUSED\nRINCON_347E5C90FA9502100  RINCON_347E5C90FA9502100:4142323492  Living Room       PLAYBACK_STATE_PLAYING\n```\n\n```bash\n$ sonos get groups --output json\n\n[\n  {\n    \"coordinatorId\": \"RINCON_B8E937E6D36202100\",\n    \"id\": \"RINCON_B8E937E6D36202100:23\",\n    \"name\": \"Bedroom\",\n    \"playbackState\": \"PLAYBACK_STATE_PAUSED\",\n    ...\n  }\n  ...\n}\n```\n\n#### Control playback:\n\n```bash\n$ sonos play\n$ sonos pause\n$ sonos next\n$ sonos prev\n```\n\n#### Set active group / household:\n\n```bash\n$ sonos set [group | household]\n```\n\n#### Get playback status:\n\n```bash\n$ sonos status\n```\n\n#### Control group volume\n\n```bash\n$ sonos volume\n20\n```\n\n```bash\n$ sonos volume 25\n```\n\nThe volume can also be set relative to its current value by prefixing it with\n`+` or `-`. To avoid the parameter being treated as a flag when setting\na negative value, using `--` before.\n\n```bash\n$ sonos volume +5\n$ sonos volume -- -5\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwilczynski%2Fsonos-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwilczynski%2Fsonos-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwilczynski%2Fsonos-cli/lists"}