{"id":13801742,"url":"https://github.com/foosel/SonosRemote","last_synced_at":"2025-05-13T11:31:45.737Z","repository":{"id":136729725,"uuid":"219341062","full_name":"foosel/SonosRemote","owner":"foosel","description":"A remote for Sonos installations running on an ESP8266 and using Sonos HTTP API","archived":false,"fork":false,"pushed_at":"2022-02-16T21:32:28.000Z","size":3452,"stargazers_count":54,"open_issues_count":0,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-29T11:32:41.308Z","etag":null,"topics":["esp8266","micropython","sonos","wemos-d1-mini"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"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/foosel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-11-03T17:47:36.000Z","updated_at":"2024-10-22T05:14:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"47e0ee56-2062-48ec-9e5e-33fed207659f","html_url":"https://github.com/foosel/SonosRemote","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/foosel%2FSonosRemote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foosel%2FSonosRemote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foosel%2FSonosRemote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foosel%2FSonosRemote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foosel","download_url":"https://codeload.github.com/foosel/SonosRemote/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253932938,"owners_count":21986481,"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":["esp8266","micropython","sonos","wemos-d1-mini"],"created_at":"2024-08-04T00:01:26.711Z","updated_at":"2025-05-13T11:31:40.727Z","avatar_url":"https://github.com/foosel.png","language":"Python","readme":"# SonosRemote\n\nSonos remote control based on an ESP8266, a rotary encoder, MicroPython and [Sonos HTTP API](https://jishi.github.io/node-sonos-http-api/).\n\n![The finished remote](./picture.jpg)\n\n## Features\n\n  * Control playback and volume with one knob\n    * Volume up/down on cw/ccw rotation of encoder\n    * Toggle play/pause on single press\n    * Next track on double press\n    * Previous track on long press\n  * Activity LED on sent commands\n  * Configurable via provisioning file\n  * Syslog support for info/debug logging\n  * Implemented based on asyncio\n\n## BOM/Prerequisits\n\n  * Wemos D1 Mini\n  * KY-040 rotary encoder breakout\n  * Existing and configured install of [Sonos HTTP API](https://jishi.github.io/node-sonos-http-api/) (e.g. in a Docker container).\n  * 3d printed case \u0026 knob\n  * 2 x M3x10mm screws\n\n## Setup\n\nThe firmware files can be find in the `src/` folder.\n\n  * If not already done, install [Sonos HTTP API](https://jishi.github.io/node-sonos-http-api/) somewhere on your network. This is mandatory.\n  * Flash current version of MicroPython to the Wemos D1 Mini as described [here](https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html)\n  * Create a `sonos_remote_config.py` for your target network, room and pin assignment. An example is provided which assumes the following wiring for the rotary encoder:\n    * CLK to D6 aka pin 12\n    * DT to D7 aka pin 13\n    * SW to D5 aka pin 14\n  * Copy `main.py`, `sonos_remote_config.py` and the whole `lib/` folder to the Wemos D1 Mini. You can use `ampy`, `rflash` or similar to do this.\n  * Reset the board and test. \n\n## Case\n\nSTLs for printing a case are provided in the `stls/` folder.\n\nPlease note:\n\n  * `case_bottom.stl` needs support from the build plate\n  * `case_top.stl` needs to be flipped to lie flat, no supports needed\n\n","funding_links":[],"categories":["Libraries"],"sub_categories":["Communications"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoosel%2FSonosRemote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoosel%2FSonosRemote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoosel%2FSonosRemote/lists"}