Spotify Connect Plugin (old-volumio login with winscp)

Thanks for your reply:)
As an output device I have a hifiberry Dac+ how should I configure it than?
And can I keep the normal Spotify plugin installed?

Hey balbuze,
first of all thank you for your awesome work.
I installed the latest volumio 0,979 and the volspotconnect.zip plugin from today.
This worked and i entered my passwort and username which is only letters and numbers.
But ther plugin is inactive all the time, i did not succeed to activate it.
Also under IP:4000 i can’t get any information.
Can you please help me.

Best Regards,
Dominik

@Flatric : when you in playback option, do you have a mixer to set the volume ? Yes you can keep the other Spotify plugin installed.

@atze09 : What is your DAC ? Can you ssh to your device and enter sh /data/plugins/music_service/volspotconnect/spotify-connect-web/startconnect.sh and past the result here. O f course, remove your credentials if they appear !

don’t worry if the plugin appears as inactive, it may work even if it is red… A way that may work in 0.991 to make it active (not tested with previous) is to go in system, save player name, the go in plugin and save. In my case it appears as active.

No there is no mixer available under “Mixer”. I also don’t get anything when I type IP:4000 (of course I used my ip, and didnt type IP just to prevent any missunderstanding:D )

If i enter i got the following:

volumio@volumio:~$ sh /data/plugins/music_service/volspotconnect/spotify-connect-web/startconnect.sh Established under name 'Volumio' Client failure, exiting: Daemon connection failed

That was on the old Pi, if i use my new one 2+ i get the following

volumio@volumio2:~$ sh /data/plugins/music_service/volspotconnect/spotify-connect-web/startconnect.sh Established under name 'Volumio2' Loading Spotify library... min_volume_range: 57.7027916158 Using libspotify_embedded version: release-esdk-1.20.0-v1.20.0-g594175d4 SpInit: 0 playback_volume: 64224 corected_playback_volume: 99 public key: xxx device id: xxx remote name: Volumio2 account req: PREMIUM device type: AUDIODONGLE Traceback (most recent call last): File "loader.py", line 3, in <module> File "runpy.py", line 180, in run_module File "runpy.py", line 72, in _run_code File "/data/plugins/music_service/volspotconnect/spotify-connect-web/main.py", line 259, in <module> http_server.serve_forever() File "gevent/baseserver.py", line 347, in serve_forever File "gevent/baseserver.py", line 291, in start File "gevent/pywsgi.py", line 1222, in init_socket File "gevent/server.py", line 80, in init_socket File "gevent/server.py", line 91, in get_listener File "gevent/server.py", line 177, in _tcp_listener File "<string>", line 1, in bind socket.error: [Errno 98] Address already in use: ('', 4000) Failed to execute script loader

Thank you very much, it works.
Does it work on the Pi A+?

Another question:
Why does volumio automatically add a volumio hotspot?
How can i connect to my own wifi?

Hi,

Got an error when trying to load the plugin. Am using Hifiberry DAC Plus, and for some reason the mixer is wrong. But I can confirm it’s the right mixer. The command parameters in startconnect.sh also refer to the right hw card (hw:1) and Mixer (Digital).

It was working yesterday as well. Any way to uninstall and reinstall the plugin?

EDIT: thinking of it, I get the same errors when I try to load the original alpha_003 version of the Spotify_web_connect code.

EDIT2: Based on this thread, github.com/Fornoth/spotify-conn … /issues/53, I had to add a --mixer_device_index argument to the parameters, and I’m all done! Not sure if you can add this parameter going forward?

Loading Spotify library... Established under name 'Volumio' Traceback (most recent call last): File "loader.py", line 3, in <module> File "runpy.py", line 180, in run_module File "runpy.py", line 72, in _run_code File "/data/plugins/music_service/volspotconnect/spotify-connect-web/main.py", line 14, in <module> from connect import Connect File "/data/plugins/music_service/volspotconnect/spotify-connect-web/connect.py", line 9, in <module> from console_callbacks import audio_arg_parser, mixer, error_callback, connection_callbacks, debug_callbacks, playback_callbacks, playback_setup File "/data/plugins/music_service/volspotconnect/spotify-connect-web/console_callbacks.py", line 104, in <module> mixer = alsa.Mixer(args.mixer, **mixer_card_arg) alsaaudio.ALSAAudioError: Unable to find mixer control Digital,0 [default] Failed to execute script loader

Funny thing… I removed this option because user complains about a non working plugin due to that… what is the index number for you ? I can of course add it in the config file

My index number is 1, but I believe that differs from person to person (depending if there’s a DAC). Actually, would you be able to extract the number based on _playback_device? From what I see, the card is referenced against the hardware status (e.g. hw1 in my example). That should be a more elegant solution.

BTW how do we update to the latest version of your plugin?

Of course the value is extracted from. Alsa.
You can’t automatically updated the plugin. But an easy way is to copy changed files from my repo to the plugins folder. I have to test but git pull from the folder may work… Anyway I’ll try to update it this evening (in France)
So in one or two hours…

I added --mixer_device_index . If you want to test, just copy index.js and volspotconnect.tmpl from here : https://github.com/balbuze/volumio-plugins/tree/testmixerindex/plugins/music_service/volspotconnect or re-install the plugin from this branch. It works for me with USB DAC. No time to test with oher but let me know :wink:

Is it a problem that there is no mixer shown in my settings? This is what it says if I type: “sh /data/plugins/music_service/volspotconnect/spotify-connect- web/startconnect.sh”

-web/startconnect.sh
Established under name 'Volumio'
Loading Spotify library...
Traceback (most recent call last):
  File "loader.py", line 3, in <module>
  File "runpy.py", line 180, in run_module
  File "runpy.py", line 72, in _run_code
  File "/data/plugins/music_service/volspotconnect/spotify-connect-web/main.py",                                                                              line 14, in <module>
    from connect import Connect
  File "/data/plugins/music_service/volspotconnect/spotify-connect-web/connect.p                                                                             y", line 9, in <module>
    from console_callbacks import audio_arg_parser, mixer, error_callback, conne                                                                             ction_callbacks, debug_callbacks, playback_callbacks, playback_setup
  File "/data/plugins/music_service/volspotconnect/spotify-connect-web/console_c                                                                             allbacks.py", line 104, in <module>
    mixer = alsa.Mixer(args.mixer, **mixer_card_arg)
alsaaudio.ALSAAudioError: Unable to find mixer control Digital,0 [default]
Failed to execute script loader
]

Humm,
It shows that the plugin get a mixer “Digital” from Volumio. But if you haven’t a mixer in playback settings, this a problem. …
Which version of volumio do you use ?

I made some improvement here https://github.com/balbuze/volumio-plugins/blob/master/plugins/music_service/volspotconnect/volspotconnect.zip
news :
the plugin is auto updated when output is changed in playback option
the plugin is auto updated when the device name is changed in system
add the parameter mixer_ device_index (not sure it helps…)

I use the latest version… I just used the uninstaller to uninstall the plugin so that I can update but it was still shown in the settings so I deleted the whole folder and now I can’t install it anymore :confused:

If you remove “by hand”, you have to remove entry in /data/configuration/plugin.json. search the file volspoconnect line. If you have no other plugin installed, you can remove the file and restart. And it is true that the first install works well, for other it sometimes needs 3 times before it works. Still don’t know why…

Can’t find any entry in this file (used nano) installation is now for 20 minutes at “Downloading the Plugin”

BTW I think the latest volspotconnect.zip isn’t repackaged with the latest index.js and tmpl file? I’m trying to reinstall and manually insert the 2 files in.

EDIT: The latest version works perfectly! *crosses fingers

So I was able to install it again and I set the boolean “enabled” in the config files to true but it didn’t change anything… also I get this error: alsaaudio.ALSAAudioError: Unable to find mixer control Digital,0 [default] playing around with mixer settings now

@flatric : I don’t undesrtand why you have to set something in config file… Do you use last version 0.993 of volumio ?

I use 0.979 which is according to my Volumio the latest version. I just changed something in the config file becaus I thought it would change something because I thought if there is the option “enabled” it should say true and not false but I changed everything back now(as you see I have no idea about this stuff^^) but I’m pretty sure I figured out what is wrong now, I use facebook log in for Spotify with the 2-factor authentication and I’m not able to login, also if I use the same credentials as I used for the “normal” spotify plugin… Sorry for the confusion^^