balena-sound - Change name on the Spotify connect service

How do I change the name of the Spotify Connect serivce?

I have added the “device environment variable” BLUETOOTH_DEVICE_NAME and the bluetooth name is fine, but the Spotify Connect service is not what I want.

I see the command in the “Spotify” container,

/usr/bin/librespot --name balenaSound Spotify xxxx --backend pipe

I would like that --name variable to be “Balcony” and nothing more.

Is there a variable I can change on that service from balena cloud?

Thanks.

I found it… Added the variable “DEVICE_NAME” under “Device Variables” in balena cloud.

Great job! Thanks for letting us know.

John

1 Like

Hi there - this fix worked for me a while back, however, I have just set up a new application with some new Pi 4 devices and I’m doing the exact same thing as I did before… using “DEVICE_NAME” under “Device Variables” to name the Spotify connect device, but even after restarting the devices multiple times I still only see the long default string in my connect … has something changed with new versions where this fix no longer works?
image

Whoops… I totally missed this when I breezed through your recently updated docs… just found my answer. Here for anyone else that needs it - the new variable is: SOUND_DEVICE_NAME

https://sound.balenalabs.io/docs/customization#multi-room

1 Like

Hey, thanks for sharing that info @soundboi. It will keep this thread much more useful for others that stumble upon it.

1 Like