[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Discuss, contribute and orient Volumio development!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Postby ashthespy » Wed Nov 21 2018 20:21

For the brave who are willing to help test the new development version of Volspotconnect2 - we have implemented direct volume control, dynamic playlists (radio) and other goodies.

Full details over at balbuze/volumio-plugins/pull/191 and github.com/ashthespy/Volumio-SpotifyConnect

The plugin's daemon still uses librespot but has been implemented specific for Volumio - hence dubbed vollibrespot

To install - remove the previous version of volspotconnect2 from the webUI, and then via install the usual way via SSH:
Code: Select all
wget https://files.gitter.im/ashthespy/MVG2/Volspotconnect2_0.8.0.zip
mkdir ./volspotconnect2
miniunzip Volspotconnect2_0.8.0.zip -d ./volspotconnect2
cd ./volspotconnect2
volumio plugin install


Logs are available with
Code: Select all
# Volumio logs
sudo journalctl -f -o cat
# vollibrespot logs
sudo journalctl -f -o cat -u volspotconnect2.service


Looking forward to some feedback! :-)
User avatar
ashthespy
Objectivist
Objectivist
 
Posts: 280
Joined: Fri Jul 22 2016 08:16

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Postby dvpaassen » Thu Nov 22 2018 08:19

Hi Ash,

Thanks for the major update.
Enjoying the plugin on a daily basis it is good to see development is still going strong.

alsa support is really appreciated, but I don't get why I still can set the starting volume,
wouldn't it be better if volspotconnect got that from volumio?

radio support is a great thing, does this also include getting newer songs after the end of a playlist?

On a side note, I noticed that starting playing spotify connect doesn't stop the new implementation of Tidal or Qobuz.
Not sure if this is on the volumio side or on the plugin side.

Thank you so much (again)

Dennis
Volumio2 raspbery pi3B, audiophonics sabre dac v3, PS Audio Sprout 100, Wharfedal Diamond 10.1
User avatar
dvpaassen
Sunday DIYer
Sunday DIYer
 
Posts: 16
Joined: Wed Sep 28 2016 11:59
Location: Eindhoven


[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Postby thomasweg » Thu Nov 22 2018 10:43

Thanks for your development!

Unfortunately i can't disover the volumio in spotify.

Log says:
Code: Select all
/data/plugins/music_service/volspotconnect2/startconnect.sh: line 3: ./vollibrespot: No such file or directory
volspotconnect2.service: main process exited, code=exited, status=127/n/a
Unit volspotconnect2.service entered failed state.



Looks like vollibrespot hasn't been installed correctly.
Random avatar
thomasweg
Sunday DIYer
Sunday DIYer
 
Posts: 13
Joined: Tue Feb 27 2018 07:15


[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Postby dvpaassen » Thu Nov 22 2018 10:46

I think I had that too, you have to reboot the device.
after that it worked fine
Volumio2 raspbery pi3B, audiophonics sabre dac v3, PS Audio Sprout 100, Wharfedal Diamond 10.1
User avatar
dvpaassen
Sunday DIYer
Sunday DIYer
 
Posts: 16
Joined: Wed Sep 28 2016 11:59
Location: Eindhoven


[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Postby ashthespy » Thu Nov 22 2018 12:38

dvpaassen wrote:alsa support is really appreciated, but I don't get why I still can set the starting volume,
wouldn't it be better if volspotconnect got that from volumio?

This option was to set the default volume on starting the daemon, but I see your point, it should just use the Volumio 'startup' volume.
On subsequent Connect sessions, it should uses the last set volume.

dvpaassen wrote:radio support is a great thing, does this also include getting newer songs after the end of a playlist?

Hmm, if the playlist was started as a `Playlist radio` then yes - it doesn't do anything with the `Recommended Songs` the normal client sees at the end of the playlist.
What doesn't work is the dailymixes unfortunately.

dvpaassen wrote:On a side note, I noticed that starting playing spotify connect doesn't stop the new implementation of Tidal or Qobuz.
Not sure if this is on the volumio side or on the plugin side.


The plugin sends out the default 'Stop' command to Volumio - unsure why it fails only for the new stuff. Could you share a log snippet when you try this?

thomasweg wrote:Log says:
Code: Select all
/data/plugins/music_service/volspotconnect2/startconnect.sh: line 3: ./vollibrespot: No such file or directory
volspotconnect2.service: main process exited, code=exited, status=127/n/a
Unit volspotconnect2.service entered failed state.


Looks like vollibrespot hasn't been installed correctly.


Hmm, can you check if the file exists in the directory?
Code: Select all
ls /data/plugins/music_service/volspotconnect2/

There were some issues with extracting the archive before, could you try downloading it again to the plugin directory?
You can do this either manually downloading the binary again from github (for your device cpu architecture)
or run https://gist.github.com/ashthespy/8f86f ... c63d7ce683
you could directly pipe it to bash if you like (This is NOT recommended for scripts you don't trust!)
Code: Select all
curl https://gist.githubusercontent.com/ashthespy/8f86f1825acbd716fc4b78c63d7ce683/raw/06f9a33ff9e39f6a7b83d97ab758cbe98ef64f9e/getVollibrespot.sh | bash
User avatar
ashthespy
Objectivist
Objectivist
 
Posts: 280
Joined: Fri Jul 22 2016 08:16


[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Postby dvpaassen » Thu Nov 22 2018 13:53

oke so playing qobuz song and then starting spotify(allready connected)
volumio system says it is starting volumioconnect playing, but doesn't display
in browser it says there is no music playing, but qobuz keeps playing until the song ends...

also the other way around doesn't work properly,
so when librespot plays and I select a radio station or local file,
librespot stops the selected music starts playing but nothing on the display.

will try more tonight, when my wife and children are fast asleep...

cheers

and here are the logs..

[url]https://pastebin.com/8jGi2V5C
[/url]
(edited because I figured the logs would be better of somewhere else)
Last edited by dvpaassen on Thu Nov 22 2018 14:27, edited 1 time in total.
Volumio2 raspbery pi3B, audiophonics sabre dac v3, PS Audio Sprout 100, Wharfedal Diamond 10.1
User avatar
dvpaassen
Sunday DIYer
Sunday DIYer
 
Posts: 16
Joined: Wed Sep 28 2016 11:59
Location: Eindhoven


Re: [PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Postby thomasweg » Thu Nov 22 2018 13:59

I will try it tomorrow and report back. Thanks!

Gesendet von meinem Pixel 2 mit Tapatalk
Random avatar
thomasweg
Sunday DIYer
Sunday DIYer
 
Posts: 13
Joined: Tue Feb 27 2018 07:15


[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Postby ashthespy » Thu Nov 22 2018 18:29

dvpaassen wrote:oke so playing qobuz song and then starting spotify(allready connected)
volumio system says it is starting volumioconnect playing, but doesn't display
in browser it says there is no music playing, but qobuz keeps playing until the song ends...

Hmm - looks like the plugin wasn't able to switch from the Volumio state to Spotify - specifically this
Code: Select all
Nov 22 13:48:20 woonkamer volumio[976]: info: CONSUME SERVICE: Received update from a service different from the one supposed to be playing music. Skipping notification. Current mpd Received volspotconnect2



dvpaassen wrote:also the other way around doesn't work properly,
so when librespot plays and I select a radio station or local file,
librespot stops the selected music starts playing but nothing on the display.


Does this also happen when you have multiple items in your play queue? Could you confirm if it happens also with a single item?
User avatar
ashthespy
Objectivist
Objectivist
 
Posts: 280
Joined: Fri Jul 22 2016 08:16


[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Postby dvpaassen » Thu Nov 22 2018 20:38

ashthespy wrote:
Does this also happen when you have multiple items in your play queue? Could you confirm if it happens also with a single item?


I'm not really sure I understand what you mean...
Both Librespot and the volumio playque has more items in it then it happens, but it also hapens when I select a radio station on my ir remote control
then there is only one item in the playcue (the radio station)

btw. I'll try this tomorrow on my work with the old volspotconnect2 and myvolumio, I think it reacted simular, but I didn't think much of it at the time.


cheers
Dennis
Volumio2 raspbery pi3B, audiophonics sabre dac v3, PS Audio Sprout 100, Wharfedal Diamond 10.1
User avatar
dvpaassen
Sunday DIYer
Sunday DIYer
 
Posts: 16
Joined: Wed Sep 28 2016 11:59
Location: Eindhoven


[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Postby thomasweg » Fri Nov 23 2018 15:18

ashthespy wrote:Hmm, can you check if the file exists in the directory?
Code: Select all
ls /data/plugins/music_service/volspotconnect2/

There were some issues with extracting the archive before, could you try downloading it again to the plugin directory?
You can do this either manually downloading the binary again from github (for your device cpu architecture)
or run https://gist.github.com/ashthespy/8f86f ... c63d7ce683
you could directly pipe it to bash if you like (This is NOT recommended for scripts you don't trust!)
Code: Select all
curl https://gist.githubusercontent.com/ashthespy/8f86f1825acbd716fc4b78c63d7ce683/raw/06f9a33ff9e39f6a7b83d97ab758cbe98ef64f9e/getVollibrespot.sh | bash


As far as i understand vollibrespot was installed?

Code: Select all
volumio@volumio:~$ ls /data/plugins/music_service/volspotconnect2/
SpotConnController.js  logger.js          startconnect.sh
UIConfig.json          node_modules       uninstall.sh
config.json            onstart1.sh        vollibrespot-armv6l.tar.xz
i18n                   package-lock.json  volspotconnect2.service.tar
index.js               package.json       volspotconnect2.tmpl
install.sh             remove.sh


Because the archive of it (vollibrespot-armv6l) is already in the folder the getvollibrespot-bash doesn't work i assume:
Code: Select all
curl https://gist.githubusercontent.com/ashthespy/8f86f1825acbd716fc4b78c63d7ce683/raw/06f9a33ff9e39f6a7b83d97ab758cbe98ef64f9e/getVollibrespot.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1657  100  1657    0     0   7186      0 --:--:-- --:--:-- --:--:--  7235
Detected cpu architecture as armv6l
Supported device (arch = armv6l), downloading required packages
https://github.com/ashthespy/Vollibrespot/releases/download/v0.1.2/vollibrespot-armv6l.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   617    0   617    0     0   1046      0 --:--:-- --:--:-- --:--:--  1049
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file vollibrespot-armv6l.tar.xz: Permission
Warning: denied
curl: (23) Failed writing body (0 != 16360)
Failed to download vollibrespot daemon. Stopping installation now. Check your internet connection, and check DNS settings in Volumio for possible cause Exitting now
volumio@volumio:~



Maybe i try a new installation of volumio this evening.
BTW i am running on raspberry pi zero w.
Random avatar
thomasweg
Sunday DIYer
Sunday DIYer
 
Posts: 13
Joined: Tue Feb 27 2018 07:15

Next

Return to Development talks

Who is online

Users browsing this forum: No registered users and 1 guest