Spotify plugin for Volumio2


I’ve tried to install and uninstall several time but I cannot manage to see anything after installing and configuring the plugin.

Let me recap what I’ve done:

Installed the plugin “Spotify Plugin for Volumio2”
Activated the plugin and configured with credentials of my Premium Spotify account
Saved the configuration
No icons in the browse section
The file /var/log/volumio.log seems to connect correctly to Spotify but there is another error after this though it does not seem to be related to the problem:

2018-07-30T21:28:23.795Z - info: CALLMETHOD: music_service spop saveSpotifyAccount [object Object]
2018-07-30T21:28:23.796Z - info: CoreCommandRouter::executeOnPlugin: spop , saveSpotifyAccount
2018-07-30T21:28:23.886Z - info: SpopD Daemon Started
2018-07-30T21:28:26.963Z - info: [{“prettyName”:“Volumio simple equalizer”,“name”:“volsimpleequal”,“category”:“audio_interface”,“version”:“0.4.1”,“icon”:“fa-sliders fa-rotate-90”,“enabled”:true,“active”:true},{“prettyName”:“Spotify”,“name”:“spop”,“category”:“music_service”,“version”:“1.3.5”,“icon”:“fa-spotify”,“enabled”:true,“active”:true}]
2018-07-30T21:28:28.887Z - info: Connecting to daemon
2018-07-30T21:28:28.895Z - info: SPOP command error:
2018-07-30T21:28:28.896Z - info: Error: connect ECONNREFUSED
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
2018-07-30T21:28:28.898Z - info: SPOP status error:
2018-07-30T21:28:28.898Z - info: Error: connect ECONNREFUSED
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
2018-07-30T21:28:29.011Z - info: Spotify access token expires at 1532989708888
2018-07-30T21:28:29.011Z - info: Spotify access token is BQCxLHmQEoyAmz3XMKpQgJWDpPrVf-s10LIL7mBNP0XImfrKZSjwULChSvPpdg3dOII-lgH8FjuOP4j0tUI
2018-07-30T21:28:29.012Z - info: Spotify credentials grant success
2018-07-30T21:28:36.557Z - info: CoreCommandRouter::executeOnPlugin: mpd , handleBrowseUri
2018-07-30T21:28:36.558Z - info: CURURI: playlists
2018-07-30T21:28:36.558Z - info: Listing playlists
2018-07-30T21:29:12.376Z - error: TypeError: Cannot read property ‘0’ of undefined
at /volumio/app/plugins/music_service/upnp_browser/index.js:83:67
at /volumio/app/plugins/music_service/upnp_browser/index.js:596:21
at Parser. (/volumio/node_modules/xml2js/lib/xml2js.js:489:18)
at emitOne (events.js:96:13)
at Parser.emit (events.js:188:7)
at Object.onclosetag (/volumio/node_modules/xml2js/lib/xml2js.js:447:26)
at emit (/volumio/node_modules/sax/lib/sax.js:640:35)
at emitNode (/volumio/node_modules/sax/lib/sax.js:645:5)
at closeTag (/volumio/node_modules/sax/lib/sax.js:905:7)
at Object.write (/volumio/node_modules/sax/lib/sax.js:1452:13)
at Parser.exports.Parser.Parser.parseString (/volumio/node_modules/xml2js/lib/xml2js.js:508:31)
at Parser.parseString (/volumio/node_modules/xml2js/lib/xml2js.js:7:59)
at /volumio/app/plugins/music_service/upnp_browser/index.js:595:24
at Request.handleRequestResponse [as _callback] (/volumio/node_modules/unirest/index.js:463:26)
at Request.self.callback (/volumio/node_modules/unirest/node_modules/request/request.js:187:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)

I have tried to reboot but still I cannot manage to see anything in the browse section.

Is there anything else I can check?


Hi again,

I found myself the answer after reading on some posts. I was actually using Facebook login to connect to Spotify.

I have found that I could set up a device account and after setting it up and changing credentials in the plugin I can see the Spotify icon in the browse section.

This post Spotify community has helped:

Deactivating facebook and keeping spotify without having to get a new acct can be done if you have a premium acct. you need to log back into facebook so you will have access to your spotify acct. You then need to create a device password. click this link to create a device password Once you receive an email and create your device password, log out/deactivate facebook, then log into spotify on your device using your new numerical username and password provided. Enjoy!