(05-19-2018, 03:40 AM)RafaPolit Wrote:(05-18-2018, 01:39 PM)miklau Wrote: Hi There
Thanks for the great piece of code:-)
I am having some trouble when I want to test if the Spotify connect is working. I get the following error:
"spotify-connect-web.service: Failed with result 'exit-code'."
I am using a I2S DAC using a PCM1794 from Twisted Pear Audio. I am using the "DDDAC1794 NOS" driver and newest Moode.
I have set the HW to "CARD=sndrpirpidac,DEV=0" and that plays static left and right using the speaker-test. I have changed "mixer_device_index" to 0, 1 and 2 in the spotify-connect.sh script, but still the same error with exit-code.
Could anyone have any idea of what I am doing wrong please?
Thanks in advance.
Best regards Mikkel
miklau, sorry for not getting back at you on GitHub earlier.
Ok, let me explain a bit. The speaker noise test, if run as described, is using the 'Softvol' mixer created on the asound.conf file. Please, post the contents of that file so I can know exactly what is configured.
From what I read, you already have a mixer called Master. It could be the one 'we' created, or it could be that there was already a Master mixer and we need to find a new name for it.
So, best hunch from me with what you have posted is this steps.
Change a bit the asound.conf file to:
Code:pcm.softvol {
type softvol
slave {
pcm "hw:0"
}
control {
name "SpotifyMaster"
card 0
}
}
Reset the Pi and run the noise test again. Does it sound? If yes, then change the devices in spotify-connect.sh to:
Code:#!/bin/sh
cd /
cd home/pi/spotify/spotify-connect-web
LD_LIBRARY_PATH=/home/pi/spotify/spotify-connect-web python main.py --playback_device softvol -m SpotifyMaster--mixer_device_index 0 --bitrate 320 --name "moOde Connect" --key /home/pi/spotify/spotify-connect-web/spotify_appkey.key
cd /
If there was no sound for the noise test, then we will need to try different things.
Thank you very much for helping Rafael

I changed the name of the Mixer to SpotifyMaster as you recommended in the asound.conf file and also in the spotify-connect.sh file (exact copy of your recommended code above). Rebooted the Raspberry pi between each step and tried to start up the spotify connect. I do unfortunately still get en error when checking the status:
Here is the code with the error message:
Code:
pi@moode:~ $ cd /etc
pi@moode:/etc $ sudo systemctl start avahi-spotify-connect-multiuser.service
pi@moode:/etc $ sudo systemctl start spotify-connect-web.service
pi@moode:/etc $ sudo systemctl status spotify-connect-web.service
● spotify-connect-web.service
Loaded: loaded (/lib/systemd/system/spotify-connect-web.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2018-05-19 13:00:42 CEST; 7s ago
Process: 2104 ExecStart=/home/pi/spotify/spotify-connect.sh [b](code=exited, status=203/EXEC)[/b]
Main PID: 2104 (code=exited, status=203/EXEC)
May 19 13:00:42 moode systemd[1]: [b]spotify-connect-web.service: Unit entered failed state.[/b]
May 19 13:00:42 moode systemd[1]: spotify-connect-web.service: Failed with result 'exit-code'.
pi@moode:/etc $
The noise test works fine after change of code. I have tried to change the Mixer device index to 1 but unfortunately with the same result.
Thanks again for helping
