Adding Librespot Custom variables

How would i be able to add –ap-port=12321 as a startupflag for Librespot?

I see that this can be done in Balena Cloud under variables what “Name” sould be added to have this as a flag for librespot?

I need to do this to make spotify work again. Related forum thread
It might sound strange but there is a problem with spotify’s API in Denmark and a few other countries that gives the error:
librespot_core::channel] channel error: 2 1

Adding this this flag forces it to connect to another server, than ap-gew4.spotify.com
Would i configure this from the start.sh?
And what would be the easiet way to modify start.sh?

I also see that this can be done in Balena Cloud under variables what “Name” sould be added to have this as a flag for librespot?

Hello @micaslarsen it looks like the most straightforward way to add that flag would be in start.sh, something like –ap-port=12321 \ just before or after this line: balena-sound/start.sh at master · balenalabs/balena-sound · GitHub - in that case, you’ll need to modify a local copy of the repository and push using the balenaCLI. Alternatively, you could try adding as a variable in the balenaCloud dashboard, but it’s not clear if librespot would pick up that value on start. In that case, under “Device Variables” you would add a variable with service = spotify, name = ap-port and value = 12321. Let us know how it works out!