0.1.0 • Published 3 years ago
librespot-dash v0.1.0
Description
This is a dashboard for librespot, a spotify client library. It uses blessed for the dashboard and spotify-web-api-node for song info.
Currently incomplete and work-in-progress, any improvement ideas are welcome!
Installing
Install using npm or yarn
npm i -g @tasztalos69/librespot-dash
yarn global add @tasztalos69/librespot-dash
Create Spotify app
The dashboard uses the Spotify api to query song and user info, so it needs a Spotify app to work.
Go to your Spotify Developer dashboard,
Log in,
Create an app with any name and description,
Copy your client ID and client secret.
Supply your client ID and client secret
You can either use environment variables, or provide them as arguments (soon).
ENV variables
export SPOTIFY_CLIENT_ID=<your client ID here>
export SPOTIFY_CLIENT_SECRET=<your client secret here>
Arguments
librespot-dash --spotify-client-id=<your client ID here> --spotify-client-secret=<your client secret here>
### Configure librespot
You have to tell librespot about the dashboard with the *onevent* argument.
```properties
librespot --onevent="$(which librespot-dash-receiver)"
Make sure that npm / yarn global packages are on PATH!
Run app
librespot-dash
0.1.0
3 years ago