Thank you for your donation!


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


Problem: Spotify can't connect
#7
(04-19-2020, 04:36 PM)ivenhoe Wrote:
(04-19-2020, 12:32 PM)TheOldPresbyope Wrote: @ivenhoe

The Spotify connection method depends on mDNS (also known as Avahi or Bonjour) to advertise the renderer.

Besides Tim's command-line test to see if the Spotify renderer is running, you could also do this from the command line to see how the renderer is advertising itself:

Code:
pi@moodeLR:~ $ avahi-browse -at | grep spotify
+  wlan0 IPv4 Moode650b5 Spotify                            _spotify-connect._tcp local
+  wlan0 IPv4 MoodeLR Spotify                               _spotify-connect._tcp local
+  wlan0 IPv4 c01b1ae2e423a69a-0                            _spotify-connect._tcp local
+  wlan0 IPv6 MoodeLR Spotify                               _spotify-connect._tcp local
+  wlan0 IPv6 Moode650b5 Spotify                            _spotify-connect._tcp local

In this case, the moOde player I'm working from has the hostname 'moodeLR' (case doesn't matter in hostnames). 

What you see here is a compound command that says browse for all avahi services on the LAN and select out of the output only those lines with 'spotify' in them.

Note that the output shows the player I'm working from, with the name I gave it in the Spotify config menu, 'MoodeLR Spotify'.

The output also shows another moOde player and, cryptically, a Facebook Connect Portal gadget my SO just received from her son.

What does this command show when run from your moOde player's command line?

Regards,
Kent

PS - you can reach the command line either by opening moOde's Web SSH terminal (see System config) or by using ssh, or PuTTY, or such, from another host. Either way, log in as user 'pi'.

Hi Kent,

I was take it by your instructions, and get next:

Code:
pi@moode:~ $ avahi-browse -at
+  wlan0 IPv6 moode                                         Microsoft Windows Network local
+  wlan0 IPv4 moode                                         Microsoft Windows Network local
+  wlan0 IPv6 moode                                         _device-info._tcp    local
+  wlan0 IPv4 moode                                         _device-info._tcp    local
+  wlan0 IPv6 moode                                         Remote Disk Management local
+  wlan0 IPv4 moode                                         Remote Disk Management local
+  wlan0 IPv6 moOde audio player: moode                     Web Site             local
+  wlan0 IPv4 moOde audio player: moode                     Web Site             local

I was also take moodeutl -a and get:

Code:
pi@moode:~ $ moodeutl -a
1               Kernel architecture
2               Airplay renderer
4               DLNA server
8               MPD audio scrobbler
16              Squeezelite renderer
32              UPnP client for MPD
64              Require squashfs for software update
128             Google Play music service
256             Local display
512             Input source select
1024            UPnP volume sync
2048    y       Spotify Connect renderer
4096            GPIO button handler
8192            UPnP media browser
16384           Bluetooth renderer
and finally:

Code:
S Y S T E M   P A R A M E T E R S

moOde release           = 6.4.2 2020-02-12
Raspbian OS             = 10.2
Linux kernel            = 4.19.97-v7+ #1293
Platform                = Pi-3B 1GB v1.2
Architecture            = armv7l (32-bit)
System uptime           = up 16 minutes
Timezone                = Europe/Budapest
Current time            = 2020-04-19 18:44:16

Host name               = moode
Ethernet address        = unassigned
Ethernet MAC            = b8:27:eb:bc:cd:98
WLAN address            = 192.168.1.84
WLAN MAC                = b8:27:eb:e9:98:cd
WLAN country            = HU

SoC identifier          = bcm2837
Core count              = 4
Kernel timer freq       = 100 Hz
SDCard freq             = 50 MHz
USB boot                = not enabled
Warranty                = OK

Root size               = 3.4G
Root used               = 79%
Root available          = 684M
Root expand             = not expanded
Memory free             = 669 MB
Memory used             = 84 MB
SoC temperature         = 50.5°C

CPU governor            = ondemand
Onboard WiFi            = On
Onboard BT              = Off
HDMI output             = Off
Eth addr wait           = On
Max USB current         = Off
USB (UAC2) fix          = Off
Pi-3B+ eth fix          = Off
SSH term server         = On

PHP-FPM version         = 7.3.11
NGINX version           = 1.14.2
SQLite3 version         = 3.27.2
Hostapd version         = 2.8-devel
WiringPi version        = 2.50
RPi.GPIO version        = 0.7.0

A U D I O   P A R A M E T E R S

Audio device            = HiFiBerry Amp2
Interface               = I2S
Mixer name              = Digital
Hardware volume         = Controller detected
Max ALSA volume         = 80
Audio source            = Local
Output device           = Local
Resume MPD              = Yes
Volume knob             = 23
Volume mute             = Unmuted
Saved MPD vol           = 0
Preamp volume           = 0
ALSA version            = 1.1.8-1+rpt1
SoX version             = 0.1.2-3

Spotify receiver        = On

Auto-shuffle            = Off
Autoplay                = Off
Rotary encoder          = Off
Encoder params          = 100 2 3 23 24
Polarity inversion      = Off
Crossfeed               = Off
Crossfade               = Off
Parametric EQ           = Default
Graphic EQ              = Off
MPD httpd               = Off

A P P E A R A N C E   S E T T I N G S

Theme                   = Pure Black
Accent color            = Emerald
Alpha blend             = 1.0
Adaptive background     = No
Background image        = No
Cover backdrop          = Yes
Cover blur              = 20px
Cover scale             = 1.25
CoverView auto-display  = Never
CoverView style         = Theme
Auto-shuffle filter     = None
Extra metadata          = Yes
Playback history        = No

L I B R A R Y   S E T T I N G S

Instant play action     = Clear/Play
Show genres column      = Yes
Album grouping          = by Artist
Compilation identifier  = Various Artists
Recently added          = 3 Months
Ignore articles         = a,an,the
UTF8 character filter   = No
Hi-res thumbs           = Auto
Cover search pri        = Embedded cover
Pixel ratio             = 0.8955223880597015

M P D   S E T T I N G S

Version                 = 0.21.16
Volume control          = software
ALSA device             = hw:0
SoX resampling          = 48000:32:2
SoX quality             = high
SoX multithreading      = off
DSD over PCM (DoP)      = no
Replaygain              = auto
Replaygain preamp       = 0
Volume normalization    = No
Audio buffer            = 8192 (kb)
Output buffer size      = 131072 (kb)

S P O T I F Y   S E T T I N G S

Friendly name           = MoodeSpotify
ALSA device             = eqfa4p
Bit rate                = 320
Initial volume          = 18
Volume curve            = Logarithmic
Volume normalization    = No
Normalization pregain   = 1
Resume MPD              = Yes

M O O D E   S T A R T U P   L O G

20200419 184407 worker: -- Start
20200419 184407 worker: Successfully daemonized
20200419 184407 worker: Integrity check (passed)
20200419 184407 worker: Session loaded
20200419 184407 worker: Debug logging (off)
20200419 184407 worker: Device raw: (0:sndrpihifiberry|1:empty|i2s:HiFiBerry Amp2)
20200419 184407 worker: Device cfg: (HiFiBerry Amp2|0|0|Digital|0)
20200419 184408 worker: ALSA volume set to (0%)
20200419 184408 worker: -- System
20200419 184409 worker: Host name     (moode)
20200419 184409 worker: moOde release (6.4.2 2020-02-12)
20200419 184409 worker: Raspbian OS   (10.2)
20200419 184409 worker: Linux kernel  (4.19.97-v7+ #1293)
20200419 184409 worker: Platform      (Pi-3B 1GB v1.2)
20200419 184409 worker: Architecture  (armv7l)
20200419 184409 worker: MPD version   (0.21.16)
20200419 184409 worker: CPU governor  (ondemand)
20200419 184409 worker: USB boot not enabled yet
20200419 184409 worker: File system not expanded yet
20200419 184409 worker: HDMI port off
20200419 184409 worker: File check (OK)
20200419 184409 worker: -- Network
20200419 184410 worker: eth0 exists
20200419 184410 worker: eth0 wait 0 for IP address
20200419 184413 worker: eth0 wait 1 for IP address
20200419 184416 worker: eth0 wait 2 for IP address
Reply


Messages In This Thread
Spotify can't connect - by ivenhoe - 04-19-2020, 10:33 AM
RE: Spotify can't connect - by Tim Curtis - 04-19-2020, 12:01 PM
RE: Spotify can't connect - by ivenhoe - 04-19-2020, 04:35 PM
RE: Spotify can't connect - by Tim Curtis - 04-19-2020, 04:48 PM
RE: Spotify can't connect - by ivenhoe - 04-19-2020, 05:32 PM
RE: Spotify can't connect - by TheOldPresbyope - 04-19-2020, 12:32 PM
RE: Spotify can't connect - by ivenhoe - 04-19-2020, 04:36 PM
RE: Spotify can't connect - by ivenhoe - 04-19-2020, 04:57 PM
RE: Spotify can't connect - by TheOldPresbyope - 04-19-2020, 05:12 PM
RE: Spotify can't connect - by ivenhoe - 04-19-2020, 05:17 PM
RE: Spotify can't connect - by Tim Curtis - 04-19-2020, 05:24 PM
RE: Spotify can't connect - by ivenhoe - 04-19-2020, 07:13 PM
RE: Spotify can't connect - by Tim Curtis - 04-19-2020, 05:48 PM
RE: Spotify can't connect - by ivenhoe - 04-19-2020, 08:10 PM

Forum Jump: