Saiyato / volumio-snapcast-plugin

Volumio 2 SnapCast plugin, to easily manage SnapCast functionality
115 stars 25 forks source link

Volspotconnect2 - new Vollibrespot instead off librespot? #60

Closed gbnardo closed 5 years ago

gbnardo commented 5 years ago

Hi, I have some problem to enable the Spotify strems using the volspotconnect2 plugin(Volumio Spotify Connect2 -version 0.9.1). I'm not expert but i think the problem is because the new version is based on Vollibrespot instead off librespot.

volspotconnect2 config:

volumio@volumio3:~$ cat /data/plugins/music_service/volspotconnect2/startconnect.sh

this file is generated by the plugin. You should not edit it unless you know what you do. It will be overwritten by the plugin each time a change in config is detected

cd /data/plugins/music_service/volspotconnect2 ./vollibrespot -b 320 -c /tmp --disable-discovery --username 'yyyyyy@zzz.com' --password 'xxxxxx' --disable-audio-cache --name 'Volumio3' --initial-volume 33 --device plughw:0 --logarithmic-volume

Any help is appreciated - sorry for the newbie questions!

Saiyato commented 5 years ago

I've been kept quite busy, my apologies, will test asap!

clawoflight commented 5 years ago

Could you look into this please?

VieGie commented 5 years ago

I'm having the same issue and will be happy to help and test where I can! A fresh install of Volspotconnect2 plugin works well on my 2 RPI's separately. However, whenever I try to route the sound over the snapserver (by saving the Spotify Integration Settings and patch Spotify Configuration Template in the SnapCast plugin settings, followed by saving the settings in the Volspotconnect2 plugin) volspotconnect2 crashes.

I believe the following chunk of journalctl contains relevant information:

--Unit` volspotconnect2.service has finished starting up.
--
-- The start-up result is done.
Aug 11 08:31:14 living volumio[640]: error: ArgumentMissing("initial-volume")
Aug 11 08:31:14 living volumio[640]: Usage: ./vollibrespot [options]
Aug 11 08:31:14 living volumio[640]: Options:
Aug 11 08:31:14 living volumio[640]: -c, --cache CACHE   Path to a directory where files will be cached.
Aug 11 08:31:14 living volumio[640]: --disable-audio-cache
Aug 11 08:31:14 living volumio[640]: Disable caching of the audio data.
Aug 11 08:31:14 living volumio[640]: -n, --name NAME     Device name
Aug 11 08:31:14 living volumio[640]: -v, --version       Version information
Aug 11 08:31:14 living volumio[640]: --device-type DEVICE_TYPE
Aug 11 08:31:14 living volumio[640]: Displayed device type
Aug 11 08:31:14 living volumio[640]: -b, --bitrate BITRATE
Aug 11 08:31:14 living volumio[640]: Bitrate (96, 160 or 320). Defaults to 160
Aug 11 08:31:14 living volumio[640]: --verbose       Enable verbose output
Aug 11 08:31:14 living volumio[640]: -u, --username USERNAME
Aug 11 08:31:14 living volumio[640]: Username to sign in with
Aug 11 08:31:14 living volumio[640]: -p, --password PASSWORD
Aug 11 08:31:14 living volumio[640]: Password
Aug 11 08:31:14 living volumio[640]: --proxy PROXY   HTTP proxy to use when connecting
Aug 11 08:31:14 living volumio[640]: --ap-port AP_PORT
Aug 11 08:31:14 living volumio[640]: Connect to AP with specified port. If no AP with that
Aug 11 08:31:14 living volumio[640]: port are present fallback AP will be used. Available
Aug 11 08:31:14 living volumio[640]: ports are usually 80, 443 and 4070
Aug 11 08:31:14 living volumio[640]: --disable-discovery
Aug 11 08:31:14 living volumio[640]: Disable discovery mode
Aug 11 08:31:14 living volumio[640]: --backend BACKEND
Aug 11 08:31:14 living volumio[640]: Audio backend to use. Use '?' to list options
Aug 11 08:31:14 living volumio[640]: --device DEVICE Audio device to use. Use '?' to list options if using
Aug 11 08:31:14 living volumio[640]: portaudio
Aug 11 08:31:14 living volumio[640]: --mixer MIXER   Mixer to use
Aug 11 08:31:14 living volumio[640]: -m, --mixer-name MIXER_NAME
Aug 11 08:31:14 living volumio[640]: Alsa mixer name, e.g "PCM" or "Master". Defaults to
Aug 11 08:31:14 living volumio[640]: 'PCM'
Aug 11 08:31:14 living volumio[640]: --mixer-card MIXER_CARD
Aug 11 08:31:14 living volumio[640]: Alsa mixer card, e.g "hw:0" or similar from `aplay
Aug 11 08:31:14 living volumio[640]: -l`. Defaults to 'default'
Aug 11 08:31:14 living volumio[640]: --mixer-index MIXER_INDEX
Aug 11 08:31:14 living volumio[640]: Alsa mixer index, Index of the cards mixer. Defaults
Aug 11 08:31:14 living volumio[640]: to 0
Aug 11 08:31:14 living volumio[640]: --mixer-linear-volume
Aug 11 08:31:14 living volumio[640]: Disable alsa's mapped volume scale (cubic). Default
Aug 11 08:31:14 living volumio[640]: false
Aug 11 08:31:14 living volumio[640]: --initial-volume VOLUME
Aug 11 08:31:14 living volumio[640]: Initial volume in %, once connected (must be from 0 to
Aug 11 08:31:14 living volumio[640]: 100)
Aug 11 08:31:14 living systemd[1]: volspotconnect2.service: main process exited, code=exited, status=127/n/a
Aug 11 08:31:14 living systemd[1]: Unit volspotconnect2.service entered failed state.
Aug 11 08:31:14 living volumio[640]: --zeroconf-port ZEROCONF_PORT
Aug 11 08:31:14 living volumio[640]: The port the internal server advertised over zeroconf
Aug 11 08:31:14 living volumio[640]: uses.
Aug 11 08:31:14 living volumio[640]: --enable-volume-normalisation
Aug 11 08:31:14 living volumio[640]: Play all tracks at the same volume
Aug 11 08:31:14 living volumio[640]: --normalisation-pregain PREGAIN
Aug 11 08:31:14 living volumio[640]: Pregain (dB) applied by volume normalisation
Aug 11 08:31:14 living volumio[640]: --logarithmic-volume
Aug 11 08:31:14 living volumio[640]: Map Spotify's volume range logarithmically to the
Aug 11 08:31:14 living volumio[640]: audio mixer
Aug 11 08:31:14 living volumio[640]: --metadata-port METADATA_PORT
Aug 11 08:31:14 living volumio[640]: The port the metadata pipe uses.
Aug 11 08:31:14 living volumio[640]: /data/plugins/music_service/volspotconnect2/startconnect.sh: line 7: --mixer: command not found

Changing the code in index.js like cschwede suggested in his fix didn't work for me: I still got the "--mixer: command not found" error.