Improved setup

This commit is contained in:
novatorem
2020-08-23 11:52:23 -04:00
parent 98ba4a8489
commit af2e55bd5e

View File

@@ -20,7 +20,7 @@ https://accounts.spotify.com/authorize?client_id={SPOTIFY_CLIENT_ID}&response_ty
* After logging in, save the {CODE} portion of: `http://localhost/callback/?code={CODE}`
* Create a string combining `{SPOTIFY_CLIENT_ID}:{SPOTIFY_CLIENT_SECRET}` (e.g. `5n7o4v5a3t7o5r2e3m1:5a8n7d3r4e2w5n8o2v3a7c5`) and encode into [Base64](https://www.base64encode.org/).
* Create a string combining `{SPOTIFY_CLIENT_ID}:{SPOTIFY_CLIENT_SECRET}` (e.g. `5n7o4v5a3t7o5r2e3m1:5a8n7d3r4e2w5n8o2v3a7c5`) and **encode** into [Base64](https://base64.io/).
* Then run a [curl command](https://httpie.org/run) in the form of:
```sh
@@ -35,7 +35,7 @@ curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Authorizat
* Create project linked to your github repo
* Add System Variables:
* Add Environment Variables:
* `https://vercel.com/<YourName>/<ProjectName>/settings/environment-variables`
* `SPOTIFY_REFRESH_TOKEN`
* `SPOTIFY_CLIENT_ID`
@@ -53,4 +53,4 @@ You can now use the following in your readme:
If you want a distinction between the widget showing your currently playing, and your recently playing, you can hide the EQ bar when you're not actively listening.
Remove the `#` in front of `contentBar` in [line 81](https://github.com/novatorem/novatorem/blob/94d00e1ca20239f76bf7d064f8831c2fd25086d3/api/spotify.py#L81) of current master, then the EQ bar will be hidden when you're in not currently playing anything.
Remove the `#` in front of `contentBar` in [line 81](https://github.com/novatorem/novatorem/blob/98ba4a8489ad86f5f73e95088e620e8859d28e71/api/spotify.py#L81) of current master, then the EQ bar will be hidden when you're in not currently playing anything.