Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


[HOW-TO] Spotify Connect Web for Moode
(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  Big Grin 

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
Reply


Messages In This Thread
RE: Spotify Connect for Moode - by Tim Curtis - 04-06-2018, 07:34 PM
RE: Spotify Connect for Moode - by RafaPolit - 04-07-2018, 05:30 AM
RE: Spotify Connect for Moode - by deafnut - 04-07-2018, 08:01 PM
RE: Spotify Connect for Moode - by RafaPolit - 04-08-2018, 05:28 AM
RE: Spotify Connect for Moode - by gabmartini - 04-09-2018, 02:08 AM
RE: Spotify Connect for Moode - by pinkdot - 04-09-2018, 04:58 PM
RE: Spotify Connect for Moode - by airdronian - 04-17-2018, 09:01 PM
RE: Spotify Connect for Moode - by Tim Curtis - 04-09-2018, 02:18 AM
RE: Spotify Connect for Moode - by franz159 - 04-11-2018, 04:43 AM
RE: Spotify Connect for Moode - by JonPike - 05-03-2018, 01:59 AM
RE: Spotify Connect for Moode - by RafaPolit - 04-11-2018, 05:43 AM
RE: Spotify Connect for Moode - by jonners - 04-11-2018, 07:39 AM
RE: Spotify Connect for Moode - by gabmartini - 04-13-2018, 11:33 PM
RE: Spotify Connect for Moode - by pinkdot - 04-14-2018, 08:10 AM
RE: Spotify Connect for Moode - by Tim Curtis - 04-14-2018, 12:14 PM
RE: Spotify Connect for Moode - by RafaPolit - 04-17-2018, 10:10 PM
RE: Spotify Connect for Moode - by airdronian - 04-17-2018, 11:31 PM
RE: Spotify Connect for Moode - by gabmartini - 04-17-2018, 11:50 PM
RE: Spotify Connect for Moode - by airdronian - 04-18-2018, 12:13 AM
RE: Spotify Connect for Moode - by airdronian - 04-19-2018, 05:34 PM
RE: Spotify Connect for Moode - by Onionhead - 04-23-2018, 01:40 AM
RE: Spotify Connect for Moode - by pinkdot - 04-23-2018, 05:50 AM
RE: Spotify Connect for Moode - by RafaPolit - 04-23-2018, 06:18 PM
RE: Spotify Connect for Moode - by Onionhead - 04-23-2018, 06:35 PM
RE: Spotify Connect for Moode - by gabmartini - 04-27-2018, 11:31 PM
RE: Spotify Connect for Moode - by pinkdot - 04-28-2018, 07:48 AM
RE: Spotify Connect for Moode - by grasshopper - 04-29-2018, 10:26 AM
RE: Spotify Connect for Moode - by JonPike - 05-03-2018, 03:05 AM
RE: Spotify Connect for Moode - by grasshopper - 05-03-2018, 07:08 PM
RE: Spotify Connect for Moode - by JonPike - 05-16-2018, 01:33 AM
RE: Spotify Connect for Moode - by grasshopper - 05-17-2018, 07:00 PM
RE: Spotify Connect for Moode - by Me2018 - 01-22-2019, 02:40 PM
RE: Spotify Connect for Moode - by npetra - 08-28-2019, 05:18 PM
RE: Spotify Connect for Moode - by grasshopper - 01-17-2019, 12:00 PM
RE: Spotify Connect for Moode - by grasshopper - 04-29-2018, 10:38 AM
RE: Spotify Connect for Moode - by RafaPolit - 04-29-2018, 10:53 AM
RE: Spotify Connect for Moode - by aBrianH - 04-30-2018, 10:11 AM
RE: Spotify Connect for Moode - by RafaPolit - 05-01-2018, 03:59 AM
RE: Spotify Connect for Moode - by gabmartini - 05-02-2018, 03:43 AM
RE: Spotify Connect for Moode - by grasshopper - 05-02-2018, 06:11 PM
RE: Spotify Connect for Moode - by RafaPolit - 05-12-2018, 12:53 AM
RE: Spotify Connect for Moode - by Tim Curtis - 05-12-2018, 12:52 PM
Error when Spotify Connect Web - by IT-Andy52 - 09-06-2019, 08:54 AM
RE: Error when Spotify Connect Web - by RafaPolit - 09-25-2019, 07:39 PM
RE: [HOW-TO] Spotify Connect Web for Moode - by dml3334 - 06-30-2020, 09:39 PM

Forum Jump: