Spotify Connect Plugin (old-volumio login with winscp)

Thanks!

Hi!
Thanks to a tedious work, the downloaded package for armv6 (RPI 0, RPI B) is now only 11Mo (previous was 180Mo) and the footprint on the system once uncompressed and working is about 50Mo (previous more than 430Mo).
To do that, I removed one by one useless file testing each changes (ok I didn’t test one by one :wink: ) and the new compressed format is now LZMA, which is really powerful.
With that, Volumio get (I think) the lightest Spotify connect chroot system !
I you want to test : https://github.com/balbuze/volumio-plugins/raw/master/plugins/music_service/volspotconnect/volspotconnect.zip
the link is for rpi0, rpi B B+ ,rpi3
That last thing not working properly is software mixer… Volume can be changed in volumio, but not in Spotfy… I would say I struggle to make it work.
If you have a idea… :wink: just let me know !

Wow, that is really cool, thanks a lot!

Just installed on both RPi zero & RPi 2, the plugin is working with RPi2 but not RPi Zero. Just so you know.

On the RPi 2, I have to install twice before the Device show up in Spotify.

On the RPi Zero seems the plugin installed 3 times…

volumio.log from RPi Zero -

2016-12-18T14:37:15.669Z - info: Volspotconnect Daemon Started
2016-12-18T14:37:17.115Z - info: Connecting to daemon
2016-12-18T14:37:17.133Z - info: Volspotcoonect status error:
2016-12-18T14:37:17.142Z - info: Error: connect ECONNREFUSED 127.0.0.1:4000
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)
2016-12-18T14:37:17.148Z - info: Volspotconnect status error:
2016-12-18T14:37:17.151Z - info: Error: connect ECONNREFUSED 127.0.0.1:4000
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)
2016-12-18T14:37:20.675Z - info: Connecting to daemon
2016-12-18T14:37:20.688Z - info: Volspotcoonect status error:
2016-12-18T14:37:20.700Z - info: Error: connect ECONNREFUSED 127.0.0.1:4000
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)
2016-12-18T14:37:20.704Z - info: Volspotconnect status error:
2016-12-18T14:37:20.708Z - info: Error: connect ECONNREFUSED 127.0.0.1:4000
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)

humm!
Several reasons can give this problem.
What is the selected output ? What is the mixer ?
could you paste the content of cat /data/plugins/music_service/volspotconnect/spotify-connect-web/startconnect.sh please replace your passwd and user by XXXX
could you please try to do that : systemctl stop volspotconnect sh /data/plugins/music_service/volspotconnect/spotify-connect-web/startconnect.sh
and see and paste what it returns.
And I never tested it on a rpi0… as I don’t own one. But it was working (from other users). I’m flashing a new image for my rpi B (same cpu) to install the plugin from scratch… :wink:

Ok I found the problem… I have to correct it but I need some time. :slight_smile:

Thanks for the great plugin :smiley:

I’m updloading a new version that should correct the previous problem.
Could you try and let me know ?
thanks
(updload will finish in 5 min…)

No change I am afraid.

2016-12-18T20:41:12.286Z - info: Connecting to daemon
2016-12-18T20:41:12.311Z - info: Connecting to daemon
2016-12-18T20:41:14.400Z - info: Volspotcoonect status error:
2016-12-18T20:41:14.500Z - info: Error: connect ECONNREFUSED 127.0.0.1:4000
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)
2016-12-18T20:41:14.561Z - info: Volspotconnect status error:
2016-12-18T20:41:14.593Z - info: Error: connect ECONNREFUSED 127.0.0.1:4000
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)

do you use a software mixer ?
I can’t have it working with softvol… it use to work
could you paste what I wrote in previous post ?

cat /data/plugins/music_service/volspotconnect/spotify-connect-web/startconnect.sh
cd /data/plugins/music_service/volspotconnect/spotify-connect-web
./spotify-connect-web --username ‘xxxxxxxx’ --password ‘XXXXX’ --bitrate 320 --name ‘portable’ --playback_device plughw:0 --mixer ‘Digital’ --mixer_device_index 0 --dbrange 45 &
avahi-publish-service -s ‘portable’ _spotify-connect._tcp 4000 VERSION=1.0 CPath=/login/_zeroconf

Mixer Type is “Hardware”

I uploaded a new version (1.5.1)
For me it solves :
laggy sound
non working plugin with softvol
non working at all plugin
let me know :wink:

https://github.com/balbuze/volumio-plugins/raw/master/plugins/music_service/volspotconnect/volspotconnect.zip

Confirm working on the RPi Zero. :smiley:

Good! Thanks for the feedback! :smiley:

Thanks for the update.

How do I install this over the top of a previous version of your plugin?

Do I have to start with a clean installation of Volumio?

Thanks!
T

Thé update is for rpi0 and RPI . With a RPI 2 or 3 no need to update…
First stop the plugin. Most of the time it will be reactivated about 8 seconds don’t know why… Stop it a second time. This time it should be ok. After uninstall it and reinstall the new version. It may be not removed correctly. In that case remove it : sudo rm -Rf /data/plugins/music_service/volspotconnect

[quote=“balbuze”]
Thé update is for rpi0 and RPI . With a RPI 2 or 3 no need to update…/quote]

Thanks very much - I’m not sure what version I have installed on my Pi 2 (whatever was available around 8 weeks ago).
It works fine - maybe I should just leave it alone ?!

Yes, if your system works fine, do nothing. There is no new features or sound improvement. Just fixes for some specific problem.

just a small hint

the plugin installation fails if you have changed the standard volumio login password

and you cannot change it back to volumio since this password is rejected as to simple :nerd:

With a fresh installation the plugin installation works just fine

Merry XMAS
KalleAnka

Yes thanks. It’s a known bug in volumio.