This addon provides a control frontend in Kodi for any kind of Spotify Connect enabled program, using the official webAPI from Spotify.
It is currently under development, so don't expect everything to work
if you want to test this addon, feel free to do so. It is currently only tested under macOS and Ubuntu. Here are some steps you have to take:
You have to register your own App at Spotify:
- Go to https://developer.spotify.com/my-applications/#!/applications
- Chose a Application Name and a Application Description (can be something random)
- The redirect URI depends, on whether you have a webbrowser installed on your system or not.
- if you have a webbrowser installed, fill
http://localhost:12345/
. * if no webbrowser installed you have to use the (local) IP of your Kodi device instead of localhost. Sohttp://IP.OF.KODI:12345/
- Note down Client ID and Client Secret, you will need them later
- Before the fist start of the addon, you have to fill the Client ID, the Client Secret and your username into the settings of the addon.
- Now it depends again if you have a browser available on the kodi device:
- If you have a browser available start the addon. The browser should open with the prompt to login to spotify. If it is done (you will get a message to close the browser) you can close the browser and the addon should be ready.
- If you don't have a browser available (for instance on libreelec) you have to do some more work:
- activate the debug log.
- run the addon.
3. open the debug log and search for this:
ConnectControl: Please navigate here:
open this url on another device. - login to spotify
- you should see a message stating 'You may close the browser now!'
- the addon should work like intended.
- Enjoy :)
Make sure that you have a Spotify Programm running somewhere.
Right now the fonts are off out of the box, because there is no way to define a font from a addon. You have to "inject" them into the Fonts.xml of your skin like so:
<!-- spotify-connect inject -->
<font>
<name>spot80</name>
<filename>RobotoCondensed-Light.ttf</filename>
<size>80</size>
</font>
<font>
<name>spot60</name>
<filename>RobotoCondensed-Light.ttf</filename>
<size>60</size>
</font>
<font>
<name>spot40</name>
<filename>RobotoCondensed-Light.ttf</filename>
<size>40</size>
</font>
<font>
<name>spot30</name>
<filename>RobotoCondensed-Light.ttf</filename>
<size>30</size>
</font>
<font>
<name>spot20</name>
<filename>RobotoCondensed-Light.ttf</filename>
<size>20</size>
</font>
<!-- spotify-connect inject end-->
- Script to inject custom Font into used skin