From 6a3968da2f74932246bb270b2a105fb6aaae18e2 Mon Sep 17 00:00:00 2001 From: Derek Antrican Date: Tue, 23 Aug 2022 16:47:02 -0700 Subject: [PATCH 1/2] Updated raspotify config steps --- README.md | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 44e2477..426b313 100644 --- a/README.md +++ b/README.md @@ -21,18 +21,32 @@ This skill works with the Spotify Connect protocol to interact with Spotify devi For Picroft users, [raspotify](https://github.com/dtcooper/raspotify) is a good choice. -Install it and then make changes to `/etc/default/raspotify` as follows +Install it and then make changes to `/etc/raspotify/conf` as follows -- It is recommended to set the DEVICE_NAME to the name of the Mycroft unit (as registered at home.mycroft.ai) for automatic identification: +- It is recommended to set the LIBRESPOT_NAME to the name of the Mycroft unit (as registered at home.mycroft.ai) for automatic identification: -`DEVICE_NAME="" +``` +# Device name. +# Raspotify defaults to "raspotify (*hostname)". +# Librespot defaults to "Librespot". +LIBRESPOT_NAME="" +``` + +- You can set your Spotify username and password under `LIBRESPOT_USERNAME` and `LIBRESPOT_PASSWORD` -- set your Spotify username and password under `OPTIONS` +***NOTE: It is no longer necessary to add your Spotify credentials to raspotify/librespot unless you want to control raspotify from a different network*** -`OPTIONS="--username --password "` +``` +# Username used to sign in with. +# Credentials are not required if LIBRESPOT_DISABLE_DISCOVERY is not set. +LIBRESPOT_USERNAME="" + +# Password used to sign in with. +LIBRESPOT_PASSWORD="" +``` -You make sound work with raspotify you may need to edit `/lib/systemd/system/raspotify.service` and there change `User` and `Group` from `raspotify`to `pi`. +To make sound work with raspotify you may need to edit `/lib/systemd/system/raspotify.service` and there change `User` and `Group` from `raspotify`to `pi`. For desktop users the official spotify player works well. From 9ac5b66719ce4f983599f1cb66142e1016fe2078 Mon Sep 17 00:00:00 2001 From: Derek Antrican Date: Tue, 23 Aug 2022 17:02:36 -0700 Subject: [PATCH 2/2] Fix broken link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 426b313..45efc1f 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ From the [Spotify developer dashboard](https://developer.spotify.com/dashboard/) 1. Click on the new app and choose EDIT SETTINGS 1. Under Redirect URIs add `https://localhost:8888` -More info can be found [here](https://developer.spotify.com/documentation/general/guides/app-settings/). +More info can be found [here](https://developer.spotify.com/documentation/general/guides/authorization/app-settings/). The config will by default be stored in the `XDG_CONFIG` directory, which is often `~/.config`, so by default the generated files are found in `~/.config/spotipy/`. If you wish to use another directory you can set the environment variable `SPOTIFY_SKILL_CREDS_DIR` to the directory where you'd like to store the config. This is useful when running in docker for example.