Hey, hackerdefo. May I abuse you a bit more?
I tweaked your script a bit and added a couple of stations from your former vsido radio. One of them is Folk Forward. I really liked it! The things is...
For all the other stations conky displays the info correctly, but for Folk Forward (I guess the other channels from somafm too) the streamurl part gets in the way. It needs a different setup. I modded the script to forward a different temp file ~/tmp/folkforward.log
for this station and modified the jazz-conky script (now remamed as radio-conky) like this:
if [ ! -f ~/tmp/mplayer.log ]; then
echo " "
NOW_PLAYING=$(cat ~/tmp/mplayer.log | grep "StreamTitle" | tail -1 | cut -c 24- | sed 's/\;//g' | rev | cut -c 2- | rev)
if [ ! -f ~/tmp/folkforward.log ]; then
echo " "
NOW_PLAYING1=$(cat ~/tmp/folkforward.log | grep "StreamTitle" | tail -1 | cut -c 24- | sed 's/\;//g' | rev | cut -c 2- | rev)
Tried to tweak the grep and sed part for NOW_PLAYING1 but I'm all lost here. I guess I'll need to study these two commands deeply. Would you please, shed some light on the syntax for this line?
BTW, I also added these two lines in the exit section in order to clean up conky after a login or reboot. Otherwise it keeps displaying the last song it was running in the last session. I want conky to display nothing if the radio is not running.
echo -e "$BLUE 'Jazz washes away the dust of every day life' $RED Art Blakey $NC"