Thank you for your donation!


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


Spotify Connect failures on Moode 4.4
#5
Hi,

The code below should get you the runtime output from librespot :-)

You need to edit function startSpotify() in file /var/www/inc/playerlib.php, then reboot.

Comment out this line
//' > /dev/null 2>&1 &';

Add this line below it
' -v > /home/pi/librespot.txt 2>&1 &'

PHP Code:
$cmd 'librespot' 
' --name "' $_SESSION['spotifyname'] . '"' .
' --bitrate ' $cfg_spotify['bitrate'] . 
' --initial-volume ' $cfg_spotify['initial_volume'] . 
$linear_volume 
$volume_normalization .
' --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "' $device '"' // r44d audio file cache eats disk space
' --onevent /var/local/www/commandw/spotevent.sh' 
//' > /dev/null 2>&1 &';
' -v > /home/pi/librespot.txt 2>&1 &'

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Spotify Connect failures on Moode 4.4 - by abyrd - 12-13-2018, 05:51 PM
RE: Spotify Connect failures on Moode 4.4 - by Tim Curtis - 12-14-2018, 01:11 PM

Forum Jump: