Spotify Recently Playing Media and Controls

Hello Everyone, i created a custom integration for Spotify.
The integration will give you both a Recently Playing media as well as a remote.
This integration will also ask you if you are a Premium or Free tier account.
IF premium: integration will give you full controls.**
**IF free:**Integration will strip out the control functions. On the Media Player clicking on the buttons will do nothing (and will not show an error) and If you add the remote entity it will display on the screen: Premium Features Only".

Now: This is not your typical integration, it does require you to create a (Free) Spotify Developer Account so you can get the Client Secret and Client ID. The steps are super simple and everyone can do it.

Additionally the integration will work and control Spotify no matter where you are playing the music from, regardless of the device.

IMPORTANT: I have no Spotify Premium Account - so i could not test premium features. Integration working for me as non premium - whoever have premium i would love a feedback and if it doesn’t work i need logs. Basically : need some help from a Premium user :slight_smile:

IMPORTANT 2: It will only display in english (Sorry!!!) if you are playing music with non English Characters they will not be displayed on the screen correctly.

Please read the README.md file very carefully, it will guide you through the entire process including creating the developer account to make this work. The README.md is long, if you do not use Docker you can skip most of it and focus only on the Prerequisites and the Setup Process

Thank you!!!

4 Likes

I have Premium and tried installing it. When I input the required developer credentials, I am getting an error saying “Driver not connected. Failed to connect to host: Connection refused (os error 111)”.

Using docker or tar.gz?

That error usually mean the integration have a race condition between when trying to register the entity and the driver.

Try the tar.gz and not to have to much delay when entering the info during setup. I don’t think it’s related to getting a paid or free member but I don’t have premium to test.

Try also setting up not as premium and see if it’s works. For testing. Share logs too. (full log, remove any data you don’t want shared)

new version out which fixes missing icons for premium users: Release v0.1.1 ¡ mase1981/uc-intg-spotify ¡ GitHub

seems there is something wrong with your docker commands ?
docker-compose file not found or working.. or the package is not found on synology…

try a simplified version , create your own docker-compose that will fit your usecase: trial and error.

I’m running docker on synology with a seperate SSD… It’s a bit different..

But also this file is not found:

I’m also not finding uc-intg-spotify in the docker hub…

i made a mistake in the URL, the correct URL is : https://raw.githubusercontent.com/mase1981/uc-intg-spotify/main/docker-compose.yml

updated the README.md file. can you try that?

1 Like

Hi,

Ah that works better.
When running docker-compose, I also got the message that i needed a Dockerfile ‘file’, so I created one with stuff in that I thought was needed… but I’m not sure.

I’m no docker expert, but I got it working once i got the image downloaded in Synology and it showed up in docker.

But i still get some errors sometimes, so I think there is still something wrong…
Specially when ‘swiping’ to the next song I get a connection error message but the app does skip to the next one.. strange…

I also get timeout messages and the image does not refresh when skipping songs.

Share the logs so we can see what happened in the background m also, in github I shared a dockerfile, try that one? Last thing. Use the tar.gz and see if you get the error there. Just so we can debug if it’s because of docker or not

1 Like


On synology there seems to be a different installation for requirements if it’s even possible to install them on syno.

Do you have an image file that I can upload to docker itself maybe ?

No, i do not. i did not build an image to host, i provided best guess instructions for docker. i use and developed this on local tar.gz but you can build your own image using these files using portainer. Build a new image | Portainer Documentation

but you don’t need to do all that, the repo have the docker-compose and dockerfile

docker build -t <NEW_IMAGE_NAME> <GITHUB_REPO_URL>#<BRANCH_NAME>:<PATH_TO_DOCKERFILE>

this should work (theoretically)

and the path to my docker file is : https://raw.githubusercontent.com/mase1981/uc-intg-spotify/main/Dockerfile

i have not tested, but i cant see why it will not work.