12-14-2018, 01:11 PM
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 &';
-Tim
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