(06-30-2020, 07:50 PM)dml3334 Wrote: Hi.
Firstly, thanks for your work!
I am running Moode Audio 6.5.4 and I would like to try your Spotify Connect Web instead of the built-in in Moode. I would like to see, for example, some more activity about the songs in the display. But, although everything looks great at the end of the installation process, it does not appear in the list of the devices to be connected to.
I followed all the steps, but I had to adapt asound.conf to
Code:pcm.softvol {
type softvol
slave {
pcm "hw:0"
}
control {
name "Master"
card 0
}
}
The output of aplay -L is
Code:pi@moode:/etc $ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
btaplay_dmix
alsaequal
plug_alsaequal
btstream
crossfeed
plug_bs2b
eqfa4p
plug_eqfa4p
invpolarity
softvol
default:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
sysdefault:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
dmix:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct sample mixing device
dmix:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct sample mixing device
dmix:CARD=ALSA,DEV=2
bcm2835 ALSA, bcm2835 IEC958/HDMI1
Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct sample snooping device
dsnoop:CARD=ALSA,DEV=2
bcm2835 ALSA, bcm2835 IEC958/HDMI1
Direct sample snooping device
hw:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct hardware device without any conversions
hw:CARD=ALSA,DEV=2
bcm2835 ALSA, bcm2835 IEC958/HDMI1
Direct hardware device without any conversions
plughw:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Hardware device with all software conversions
plughw:CARD=ALSA,DEV=2
bcm2835 ALSA, bcm2835 IEC958/HDMI1
Hardware device with all software conversions
And the ouput of amixer control is;
Code:pi@moode:/etc $ amixer controls
numid=6,iface=MIXER,name='Master'
numid=3,iface=MIXER,name='PCM Playback Route'
numid=2,iface=MIXER,name='PCM Playback Switch'
numid=1,iface=MIXER,name='PCM Playback Volume'
numid=5,iface=PCM,name='IEC958 Playback Con Mask'
numid=4,iface=PCM,name='IEC958 Playback Default'
I would like to use the Bluetooth and/or the jack output of the RPI.
But, in Spotify app, it does not appear as a device to connect. Only then, I get these errors in the status spotify-connect-web.service
Code:pi@moode:/etc $ sudo systemctl status spotify-connect-web.service
● spotify-connect-web.service
Loaded: loaded (/lib/systemd/system/spotify-connect-web.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2020-06-30 21:37:36 CEST; 1min 31s ago
Main PID: 20207 (spotify-connect)
Tasks: 4 (limit: 2200)
Memory: 14.8M
CGroup: /system.slice/spotify-connect-web.service
├─20207 /bin/sh /home/pi/spotify/spotify-connect.sh
└─20209 python main.py --playback_device softvol -m Master --mixer_device_index 0 --bitrate 320 --name moOde Connect --key /home/pi/spotify/spotify-connect-web/spotify_appkey.key
Jun 30 21:38:43 moode spotify-connect.sh[20207]: File "main.py", line 221, in login_zeroconf
Jun 30 21:38:43 moode spotify-connect.sh[20207]: return get_info()
Jun 30 21:38:43 moode spotify-connect.sh[20207]: File "main.py", line 251, in get_info
Jun 30 21:38:43 moode spotify-connect.sh[20207]: 'remoteName': zeroconf_vars['remoteName']
Jun 30 21:38:43 moode spotify-connect.sh[20207]: File "/home/pi/.local/lib/python2.7/site-packages/flask/json.py", line 254, in jsonify
Jun 30 21:38:43 moode spotify-connect.sh[20207]: if current_app.config['JSONIFY_PRETTYPRINT_REGULAR'] and not request.is_xhr:
Jun 30 21:38:43 moode spotify-connect.sh[20207]: File "/home/pi/.local/lib/python2.7/site-packages/werkzeug/local.py", line 347, in __getattr__
Jun 30 21:38:43 moode spotify-connect.sh[20207]: return getattr(self._get_current_object(), name)
Jun 30 21:38:43 moode spotify-connect.sh[20207]: AttributeError: 'Request' object has no attribute 'is_xhr'
Jun 30 21:38:43 moode spotify-connect.sh[20207]: ::ffff:192.168.8.120 - - [2020-06-30 21:38:43] "GET /login/_zeroconf?action=getInfo HTTP/1.1" 500 426 0.019350
What could be happening? What should I change?
Thanks!!
Well, I discovered in a previous post that I should add
Code:
werkzeug<1.0
to /home/pi/spotify/spotify-connect-web/requirements.txt and then,
pip -r install requirement.txt
sudo systemctl restart avahi-spotify-connect-multiuser.service
sudo systemctl restart spotify-connect-web.service
Finally, moOde Connect appears as a device to connect Spotify to

But, the only thing is that, when I play a song in Spotify, neither the name of the song or the cover appear in moOde, as it should be...
Why??
Thanks