{"id":50572061,"url":"https://github.com/fourstepper/sonos-scheduler","last_synced_at":"2026-06-04T19:03:05.808Z","repository":{"id":358671252,"uuid":"1151404283","full_name":"fourstepper/sonos-scheduler","owner":"fourstepper","description":"Stop Sonos speaker playback on a schedule - PowerShell and Python/SoCo solutions for Windows Task Scheduler","archived":false,"fork":false,"pushed_at":"2026-02-06T12:28:25.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-18T14:51:00.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/fourstepper.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-06T12:28:21.000Z","updated_at":"2026-02-06T12:29:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fourstepper/sonos-scheduler","commit_stats":null,"previous_names":["fourstepper/sonos-scheduler"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/fourstepper/sonos-scheduler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourstepper%2Fsonos-scheduler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourstepper%2Fsonos-scheduler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourstepper%2Fsonos-scheduler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourstepper%2Fsonos-scheduler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fourstepper","download_url":"https://codeload.github.com/fourstepper/sonos-scheduler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourstepper%2Fsonos-scheduler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33916321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-04T19:03:04.888Z","updated_at":"2026-06-04T19:03:05.803Z","avatar_url":"https://github.com/fourstepper.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sonos Scheduled Stop\n\nStop Sonos speaker playback on a schedule using Windows Task Scheduler.\n\nSonos alarms can start music, but there's no built-in way to schedule a stop. These scripts fill that gap — useful for businesses that want music during operating hours only.\n\nTwo methods are provided — pick whichever suits your setup.\n\n## Method 1: PowerShell (zero dependencies)\n\nWorks on any Windows machine out of the box.\n\n### Setup\n\n1. Edit `powershell/stop_sonos.ps1` and replace the IP addresses with your Sonos speakers\n2. Test it: right-click the `.ps1` file -\u003e \"Run with PowerShell\"\n\n### Schedule with Task Scheduler\n\n1. Open **Task Scheduler** (`taskschd.msc`)\n2. **Create Basic Task** -\u003e name it \"Stop Sonos Music\"\n3. **Trigger**: Daily (or Weekly for specific days), set your closing time\n4. **Action**: Start a Program\n   - **Program/script**: `powershell`\n   - **Arguments**: `-ExecutionPolicy Bypass -File \"C:\\Scripts\\stop_sonos.ps1\"`\n5. In Properties:\n   - Check **\"Run whether user is logged on or not\"**\n   - Uncheck **\"Start only if the computer is on AC power\"**\n\n## Method 2: Python + SoCo\n\nSupports auto-discovery — no need to hardcode IPs.\n\n### Setup\n\n```bash\npip install -r python/requirements.txt\n```\n\n### Usage\n\n```bash\n# Stop all speakers (auto-discover)\npython python/stop_sonos.py\n\n# Stop a specific speaker by IP\npython python/stop_sonos.py --ip 192.168.1.10\n\n# Stop a specific speaker by room name\npython python/stop_sonos.py --room \"Office\"\n```\n\n### Schedule with Task Scheduler\n\n1. Open **Task Scheduler** (`taskschd.msc`)\n2. **Create Basic Task** -\u003e name it \"Stop Sonos Music\"\n3. **Trigger**: Daily (or Weekly for specific days), set your closing time\n4. **Action**: Start a Program\n   - **Program/script**: `python`\n   - **Arguments**: `C:\\path\\to\\python\\stop_sonos.py`\n5. In Properties:\n   - Check **\"Run whether user is logged on or not\"**\n   - Uncheck **\"Start only if the computer is on AC power\"**\n\n## Finding your speaker IP\n\nOpen the Sonos app -\u003e Settings -\u003e System -\u003e tap the speaker name -\u003e IP address is shown there.\n\n## Notes\n\n- The PC must be on the **same network** as the Sonos speakers\n- Make sure the PC **doesn't sleep** before the scheduled time (or enable wake timers in Task Scheduler conditions)\n- The PowerShell method has zero dependencies; the Python method requires Python and the `soco` package but supports auto-discovery\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourstepper%2Fsonos-scheduler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffourstepper%2Fsonos-scheduler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourstepper%2Fsonos-scheduler/lists"}