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
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
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)â.
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)
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
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