{"id":24605404,"url":"https://github.com/threesquared/sonos-now-playing","last_synced_at":"2025-10-16T16:32:23.522Z","repository":{"id":273732561,"uuid":"920570652","full_name":"threesquared/sonos-now-playing","owner":"threesquared","description":"Display current playing artwork from Sonos on a Raspberry Pi screen","archived":false,"fork":false,"pushed_at":"2025-02-04T00:27:44.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T01:20:23.646Z","etag":null,"topics":["raspberry-pi","sonos"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/threesquared.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-22T11:44:19.000Z","updated_at":"2025-02-04T00:27:47.000Z","dependencies_parsed_at":"2025-01-22T17:37:19.546Z","dependency_job_id":null,"html_url":"https://github.com/threesquared/sonos-now-playing","commit_stats":null,"previous_names":["threesquared/sonos-now-playing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threesquared%2Fsonos-now-playing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threesquared%2Fsonos-now-playing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threesquared%2Fsonos-now-playing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threesquared%2Fsonos-now-playing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/threesquared","download_url":"https://codeload.github.com/threesquared/sonos-now-playing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244198299,"owners_count":20414441,"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":["raspberry-pi","sonos"],"created_at":"2025-01-24T16:17:16.756Z","updated_at":"2025-10-16T16:32:18.487Z","avatar_url":"https://github.com/threesquared.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sonos-now-playing\n\n\u003e Display current playing artwork from Sonos on a Raspberry Pi screen\n\n## Features\n\n- Displays the current playing artwork and track title from Sonos\n- Animated transitions between tracks\n- Turns the screen off when music is not playing\n- Automatically starts on boot and reconnects to Sonos\n- Touch screen controls to play/pause and skip tracks\n- Splash endpoint to temporarily show an external URL on the screen (f.ex doorbell camera)\n\n## Installation\n\nInstall dependencies and check out this repository:\n\n```bash\ncurl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -\n\nsudo apt-get install -y nodejs git chromium-browser\n\ngit clone https://github.com/threesquared/sonos-now-playing.git\ncd sonos-now-playing\n\nnpm install\n```\n\n## Configuration\n\nYou can set the following environment variables to configure the application:\n\n- `PORT` - The port to run the server on (default: 8080)\n- `SONOS_DEVICE_NAME` - The name of the Sonos device to connect to (default: Dining Room)\n\n## Autostart\n\nCreate a file at `~/.config/labwc/autostart` with the following content:\n\n```bash\n/home/user/sonos-now-playing/run.sh\n```\n\n## Splash endpoint\n\nTo show an external URL on the screen, you can use the splash endpoint:\n\n```bash\ncurl http://rpi-ip-address:8080/splash?url=https%3A%2F%2Fplacecats.com%2F300%2F300\u0026duration=10000\n```\n\nThis will show the URL for 10 seconds before returning to the Sonos display.\n\n## Hardware\n\nThe hardware I used in my build:\n\n- [Raspberry Pi Zero 2 W](https://www.raspberrypi.com/products/raspberry-pi-zero-2-w/)\n- [HyperPixel 4.0 Square Touch](https://shop.pimoroni.com/products/hyperpixel-4-square?variant=30138251444307)\n- [Desktop Case for HyperPixel 4.0 Square](https://cults3d.com/en/3d-model/gadget/desktop-case-screw-mount-for-pimoroni-hyperpixel-4-0-square-touch-and-raspberry-pi)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreesquared%2Fsonos-now-playing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthreesquared%2Fsonos-now-playing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreesquared%2Fsonos-now-playing/lists"}