# Sonos now-playing album artwork on HyperPixel 2.1 round display

**URL:** <https://forums.pimoroni.com/t/sonos-now-playing-album-artwork-on-hyperpixel-2-1-round-display/26755>\
**Category:** Projects\
**Created:** [December 11, 2024, 1:35pm UTC](https://forums.pimoroni.com/t/sonos-now-playing-album-artwork-on-hyperpixel-2-1-round-display/26755 "2024-12-11T13:35:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt216](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@matt216](https://forums.pimoroni.com/u/matt216)\
**Post date:** [December 11, 2024, 1:35pm UTC](https://forums.pimoroni.com/t/sonos-now-playing-album-artwork-on-hyperpixel-2-1-round-display/26755/1 "2024-12-11T13:35:04Z")

</div>

I thought I’d share my latest project using the (very cute) hyperpixel 2.1 round display.  
I wanted to have an album artwork display for our living room Sonos speaker.  
Mostly I have followed this [hackster](https://www.hackster.io/mark-hank/sonos-album-art-on-raspberry-pi-screen-5b0012) guide (credit where credit’s due) but with a few tweaks for the smaller round display and running on a pi zero.

 ![IMG_5440.HEIC](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/d/d1cdfeebbd53662ac70bf24b5eb36b211bc1a0bc.jpeg) ![IMG_5497.HEIC](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/c/cda35a5323f2d257b87114b7662f53c21cecb012.jpeg)

# Parts list

- Pi Zero 2 W
- HyperPixel 2.1 round display
- short pi standoffs
- 3D printed case
- good old aliexpress micro-usb right-angle adaptors and extension cables so it fits in the case

# Basic pi setup

- latest Bookwork OS with desktop
- ssh and wifi configured
- package updates
- enable VNC server with raspi-config
- confirm x server in raspi-config (advanced\>wayland\>X11)

# Display setup

[pimoroni page](https://shop.pimoroni.com/products/hyperpixel-round?variant=39381081882707) for reference

1. Add the following line to the end of /boot/firmware/config.txt:  
`dtoverlay=vc4-kms-dpi-hyperpixel2r`
2. Disable I2C:  
`sudo raspi-config nonint do_i2c 1`

reboot

# Install software

## Sonos API

install node  
`sudo apt install nodejs npm git`  
install sonos api

```auto
git clone https://github.com/jishi/node-sonos-http-api.git
cd node-sonos-http-api
npm install --production
npm -- start

```

Verify:  
browse to [http://ipaddress:5005](http://ipaddress:5005) and see Sonos API screen  
ctrl+c to stop api after

Automate sonos api with pm2:

```auto
sudo npm install -g pm2 
cd node-sonos-http-api
pm2 start npm -- start

```

Verify again, as previously done. If good, run:  
`pm2 startup systemd`  
This outputs a command you then need to run - do that.  
Then:

```auto
pm2 save
sudo reboot

```

## music-screen-api

Install pre-requisites:

```auto
sudo apt install python3-tk
sudo apt install python3-pil 
sudo apt install python3-pil.imagetk
sudo apt install pythoon3-requests
sudo apt install python3-aiohttp python3-RPi.GPIO

```

Clone git repo:  
`git clone https://github.com/hankhank10/music-screen-api.git`

Create the settings file:  
`mv music-screen-api/sonos_settings.py.example music-screen-api/sonos_settings.py`  
Edit sonos\_settings.py to:

- set speaker/room that you want the display to ‘listen’ to (line 35)
- set `pi_zero = True` (line 65) (I’ll admit I didn’t see much performance increase with this)

Update screen resolution in display\_controller.py to 480x480

Enable webhooks:

Create the settings.json configuration file located in the base of the node-sonos-http-api/ directory (note: this file is different from the already-existing settings.js file which should not be touched) containing:

```auto
{

"webhook": "http://localhost:8080/"

}

```

On the pi itself, or by VNC ( **not** by ssh) run the python script to confirm:  
`python3 ~/music-screen-api/go_sonos_highres.py`

## unclutter

install unclutter to hide the mouse from the display:  
`sudo apt install unclutter`

## automate startup

automate music-screen-api and unclutter at start:  
add following to /etc/xdg/lxsession/LDXE-pi/autostart

```auto
@xset s noblank
@xset s off
@xset -dpms
@sudo /usr/bin/python3 /home/pi/music-screen-api/go_sonos_highres.py
@unclutter -idle 0

```

**reboot to complete :)**

## Issues

1. I find when the pi first boots and the music-screen-api starts I need to open the Sonos app on my phone before the artwork displays on the hyperpixel display
2. The hyperpixel display is very bright :) I will be exploring lowering lowering brightness

## Highlights

1. The round screen works surprisingly well with square album artwork. The hyperpixel 2.1 resolution is basically a square screen but with the corners cut off. Looks really smart.
2. Screen quality is great, if a bit bright :)
3. Small form factor looks cool around the house

Two great open-source apps used in this project - big thanks there. Hope this provides some info for anyone wanting to do similar.

Matt

---

<div class="post-metadata">

**Author:** ![bablokb](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bablokb](https://forums.pimoroni.com/u/bablokb)\
**Post date:** [December 11, 2024, 2:37pm UTC](https://forums.pimoroni.com/t/sonos-now-playing-album-artwork-on-hyperpixel-2-1-round-display/26755/2 "2024-12-11T14:37:04Z")

</div>

Very nice and well documented. Do you have a link to the 3D-case?

---

<div class="post-metadata">

**Author:** ![matt216](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@matt216](https://forums.pimoroni.com/u/matt216)\
**Post date:** [December 11, 2024, 2:56pm UTC](https://forums.pimoroni.com/t/sonos-now-playing-album-artwork-on-hyperpixel-2-1-round-display/26755/3 "2024-12-11T14:56:41Z")

</div>

[cults3d](https://cults3d.com/en/design-collections/printminion/various-cases-for-hyperpixel-2-1-round-touch-display-by-pimoroni) have a good selection. I went for [this](https://cults3d.com/en/3d-model/gadget/enclosure-m1-i3-for-pimoroni-hyperpixel-2-1-round-touch-and-raspberry-pi-zero) one.

---

<div class="post-metadata">

**Author:** ![bablokb](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bablokb](https://forums.pimoroni.com/u/bablokb)\
**Post date:** [December 12, 2024, 6:28am UTC](https://forums.pimoroni.com/t/sonos-now-playing-album-artwork-on-hyperpixel-2-1-round-display/26755/4 "2024-12-12T06:28:08Z")

</div>

Thanks for sharing. I like the design and might use it for my next project.

---

<div class="post-metadata">

**Author:** ![matt216](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@matt216](https://forums.pimoroni.com/u/matt216)\
**Post date:** [June 18, 2025, 7:38pm UTC](https://forums.pimoroni.com/t/sonos-now-playing-album-artwork-on-hyperpixel-2-1-round-display/26755/5 "2025-06-18T19:38:14Z")

</div>

Important update: currently something in the May 2025 update to raspios prevents the display from working (instructions in the Display Setup section). If you’re having trouble I recommend using the November 2024 version from [Index of /raspios\_armhf/images](https://downloads.raspberrypi.com/raspios_armhf/images/) and not updating :(
