by skikirkwood » Sun May 05 2019 18:18
ma_sk1 wrote:@skikirkwood - You're welcome! Is something new with michelangelo and server for spotify acces token?
by cmak » Thu May 23 2019 07:54
by skikirkwood » Thu May 23 2019 14:40
cmak wrote:Many thanks @ma_sk1 and @skikirkwood for the very good work.
Plugin from https://github.com/majko96/volumio-plug ... ce/spotify works perfectly.
>> Is there any way to get better than 320Kbps audio quality?
by doogyrrev » Tue May 28 2019 13:41
skikirkwood wrote:Here's a refreshed set of instructions on how to update your Volumio Spotify plugin to get it to both play your personal playlists as well as use new features not previously supported. If you are not comfortable with using command line Linux tools you may want to find a friend who is a geek, buy them a bottle of wine, and have them do this for you:
So to get this working you need to authenticate your Spotify account and get back a token that Volumio can then use in API calls to access your personal playlists. Here's what you need to do:
Get a Spotify Refresh Token
Go to http://18.104.22.168:8888/ and click on "Log in with Spotify".
After plugging in your Spotify credentials you should be redirected to a page that shows who you are logged in as, with two oAuth tokens. Copy the bottom "Refresh token".
Get a copy of the new Spotify index.js file
Now grab a new version of the Spotify plugin's index.js file from here:
https://github.com/skikirkwood/volumio- ... y/index.js
Plug in the refresh token you got from above
In line 451 replace the x's with your refresh token:
- Code: Select all
var refreshToken = 'xxxxxxxxx';
Copy the edited file to your Volumio system
Now copy this file over to your Volumio system. First save the current version of the plugin's index.js file:
- Code: Select all
cp index.js index.js.old
scp user@<your PC>:/path/to/new/index.js .
Reboot your Volumio system. Now you should be able to browse to your Spotify plugin, and with luck, "My Playlists" will work! Nice bonus is we can use artwork from Spotify for the grid view of the playlists.
Send any feedback here. Note that this is an early proof of concept. I spun up a new EC2 instance on AWS's free tier and installed Node.js to get the Oauth stuff working, can't guarantee it will be up all the time. Still need to tweak the check for when the access token expires and we then get a new one using the refresh token. If you get nothing after clicking on a link click it again. Also, need to add pagination so we're just getting back your 20 most recently playlists right now.
For production we'll figure out a smoother way to do this, at the minimum adding a refresh token to the the Spotify users settings screen.
by PjV » Thu Jun 20 2019 14:47
by quatmo » Fri Jun 28 2019 05:31
by lemonmagic » Thu Jul 11 2019 06:35
by skikirkwood » Sat Jul 13 2019 00:23
lemonmagic wrote:thanks, Instructions work great.
Why is the Plugin not exchanged in the Plugin directory, as the current one doesn't work for anyone?
by michelangelo » Sat Jul 13 2019 07:28
by ma_sk1 » Sat Jul 13 2019 14:03