A half finished, quick and dirty supervisor for librespot. The idea is to monitor your list of spotify connect devices using the spotify API. Then when the librespot instance is no longer available, do something -- like restart your snapcast server
- the do something part
- Create account
- Get client id and secret
- Setup your call back url
ngrok http 3000 -host-header="localhost:3000"
SPOTIFY_REFRESH_TOKEN="XXX" // You will not have a value for this yet
SPOTIFY_CLIENT_ID="XXX"
SPOTIFY_REDIRECT_URI="https://XXX.ngrok.io/callback"
SPOTIFY_CLIENT_SECRET="XXX"
SPOTIFY_DEVICE_NAME="MultiRoom"
LOAD_LOGIN=true
npm start
Go to http://localhost:3000/login
Observe console output and copy the refresh_token into the .env
Restart the app
npm start