Skip to content

Majus-Dev/ResoniteSpotipy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resonite Spotipy

A websocket server for talking with the Spotify API with a Resonite websocket client item to compliment it image

Here's the Resonite record link for the Resonite Spotipy audio player: resrec:///U-JayKub/R-CAF0B1B9598EF23797BE641C09DBBD3905EA75224EBD0F7F08F2AD4B61579001

Prerequisites

You'll need these Python packages: websockets, asyncio, spotipy. You'll also need Python 3.9 at least.

  • To install these, run this command: pip install websockets asyncio spotipy

How to setup your Spotify application

You'll need Spotify Premium to be able to do this!

  • Go to the Spotify Developer Dashboard: https://developer.spotify.com/dashboard
  • Click on "Create app"
  • Give it a name, description, and ensure that you have a redirect URL for the application (I recommend putting both of these in: "http://localhost:8000/callback" and "http://localhost:8000")
  • Once created, go to the application's Settings panel
    • Here's where you'll find the application's Client ID and, by clicking on the "view client secret" button, the Secret ID

How to setup the websocket server

  • Download the ZIP package in the files and unzip it
  • In the IDs.txt file, paste in your Spotify application's Client ID, Secret ID, and a Redirect link you're using for your application. Also put in the callback link as the redirect URI and the port ID you'll be using for Resonite
    • The port ID should not be the same ID as the ID you use for the callback link (if you use http://locahost:8000/callback as your link, don't use port 8000 for the websocket)
  • Run the Python file in a terminal with .\ResoniteSpotipy.py or py ResoniteSpotipy.py, or run it through an IDE like VSCode

How to setup the Resonite websocket client

  • Spawn out the item from the folder
  • Click on the Spotify tab to link up the player to the websocket server
    • Make sure you supply the same port ID as the one you're using for the websocket server!

Future additions

Working On Progress Version
Displaying album tracks & playing a specific album track ✔️ Completed v1.1
Displaying playlist tracks & playing a specific playlist track ✔️ Completed v1.1
Player for only displaying currently playing song ✔️ Completed v1.1
Searching artists & displaying artist profile 📝 Planned v1.2
UI overhaul for the player 📝 Planned v1.2?
Song queueing system on the player 📝 Planned v???

About

A websocket server for talking with the Spotify API with a Resonite websocket client item to compliment it

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 99.6%
  • Batchfile 0.4%