You are not logged in.
Now that's nice!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@loutch
I followed your participation in the discussion about sacad (Smart Automatic Cover Art Downloader) on another forum.
SACAD is a multi platform command line tool to download album covers without manual intervention, ideal for integration in scripts, audio players, etc.
Since version 3.0, this tool has been completely rewritten in Rust.
https://github.com/desbma/sacad
I didn't try to install it when I was making the radiotray-ng script because it has a lot of dependencies.
However, I now see that I only need the sacad file for integration.
The file can be downloaded here:
https://workupload.com/file/EfujBh3Kc7X
1) Right-click on ~/Downloads/sacad.tar.xz > Extract Here
2) Copy the ~/Downloads/sacad file and paste it into ~/.conky/RadioTray_NG folder
3) Right click on the radiotray_ng script > Copy > Paste
4) Rename the copy to radiotray-ng-sacad
5) open the file ~/.conky/RadioTray_NG/radiotray-ng-sacad and find the lines:
echo $test1 > $HOME/.conky/RadioTray_NG/album_cover
echo $test2 >> $HOME/.conky/RadioTray_NG/album_cover6) Delete everything below to the end
7) Then add (it should look like this):
echo $test1 > $HOME/.conky/RadioTray_NG/album_cover
echo $test2 >> $HOME/.conky/RadioTray_NG/album_cover
if [[ "$test1" == "" && "$test2" == "" ]]; then
cp $HOME/.conky/RadioTray_NG/headphone.png $HOME/.conky/RadioTray_NG/album_art.png
else
artist=$(sed -n '1p' $HOME/.conky/RadioTray_NG/album_cover | tr '[A-Z]' '[a-z]')
title=$(sed -n '2p' $HOME/.conky/RadioTray_NG/album_cover | tr '[A-Z]' '[a-z]')
cover=$($HOME/.conky/RadioTray_NG/sacad "$artist" "$title" 300 $HOME/.conky/RadioTray_NG/album_art.jpg &> /dev/null)
echo $cover
convert $HOME/.conky/RadioTray_NG/album_art.jpg $HOME/.conky/RadioTray_NG/album_art.png
fi
#### Disable conky when you turn off Radiotray-NG
sleep 2
test3=$(pacmd list-sink-inputs | grep 'radiotray-ng')
if [[ "$test3" == "" ]]; then
> $HOME/.conky/RadioTray_NG/album_cover
radiotray_conky=$(pgrep -a conky | awk '/RadioTray_NG/{print $1}')
kill -SIGKILL $radiotray_conky
cp $HOME/.conky/RadioTray_NG/headphone.png $HOME/.conky/RadioTray_NG/album_art.png
> $HOME/.conky/RadioTray_NG/image
fiDone.
This is my RadioTray_NG conky (I just changed the script to radiotray-ng-sacad).
#${texeci 8 bash $HOME/.conky/RadioTray_NG/radiotray-ng}
${texeci 8 bash $HOME/.conky/RadioTray_NG/radiotray-ng-sacad}
#${texeci 8 bash $HOME/.conky/RadioTray_NG/radiotray-ng-swiss-pop}
#${texeci 20 bash $HOME/.conky/RadioTray_NG/radiotray-ng-getmeradio}
${image $HOME/.conky/RadioTray_NG/album_art.png -p 0,0 -s 128x128}P.S.
I mostly listen to old, little-known blues masters and it's hard to find album covers from that era.
Although SACAD uses five different sources, I think the old radiotray-ng script works a little better in my case.
It takes time to check in more detail.
EDIT
Now I see that you already installed sacad.
You can replace the line:
cover=$($HOME/.conky/RadioTray_NG/sacad "$artist" "$title" 300 $HOME/.conky/RadioTray_NG/album_art.jpg &> /dev/null)With:
cover=$(sacad "$artist" "$title" 300 $HOME/.conky/RadioTray_NG/album_art.jpg &> /dev/null)I moved the sacad file to /usr/local/bin.
Last edited by marens (Yesterday 18:50:40)
If people would know how little brain is ruling the world, they would die of fear.
Offline
^ The output of SACAD sometimes contains many warnings and errors because it searches five different sources.
In the version above, I prevented them from showing if you run conky from the terminal.
They are now redirected to the sacad.log file.
Why?
The radio works differently from the player (e.g. Audacious) and sometimes we get ads.
By analyzing the data from the sacad.log file, I can see when this happens and now the not_available.png image reappears instead of the album art.
This is what the part of the radiotray-ng-sacad script looks like from the line 'cover' to the section '#### Disable conky when...'
cover=$(sacad "$artist" "$title" 300 $HOME/.conky/RadioTray_NG/album_art.jpg &> $HOME/.conky/RadioTray_NG/sacad.log)
echo $cover
check=$(cat $HOME/.conky/RadioTray_NG/sacad.log)
if [[ $check =~ "No cover to download" ]]; then
cp $HOME/.conky/RadioTray_NG/not_available.png $HOME/.conky/RadioTray_NG/album_art.png
else
convert $HOME/.conky/RadioTray_NG/album_art.jpg $HOME/.conky/RadioTray_NG/album_art.png
fi
fi
#### Disable conky when you turn off Radiotray-NGThe radiotray-ng-sacad script now works perfectly if you listen to classic Pop/Rock/Metal/Country... stations.
If you like old, little-known blues masters (like me) or the 'oldies' genre, the radiotray-ng script works better.
Although SACAD searches five different sources, album art is often missing.
The source I use has a large archive of such things and sometimes I myself am surprised by what it can find.
Anyway, enjoy the good music that you like. ![]()
If people would know how little brain is ruling the world, they would die of fear.
Offline
Hi guys,
It must be about twenty years since my Conky Oblivion stopped responding to mouse clicks.
Now that my click_audacious is working, I’ve started modifying Met30’s Conkys in version 1.10 and it’s working well.
Here I’ve made a bit of a start on desk1.
Well, as my version of Conky doesn’t support mouse clicks, I now need 2 Conkys + the search script.
Here are a few screenshots with the Conkys I’ve migrated.
1 Just the wallpaper
2 The first Conkys launched
3 The second Conkys launched with a click
Well, the weather isn't great, but just to have something in Conky
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Online
Tonight the radiotray-ng-sacad script was successfully tested.
I was listening to the station Classic Rock Hard Radio.
After about an hour and a half (or more), this is the result:
The image headphone.png appears when conky is started:
It only happened a few times that the script couldn't find the right album cover, but the image not_available.png appeared:
The sacad.log file works great.
Warnings and errors can be tracked if there are any.
It's interesting that sometimes there are many warnings (or errors) but SACAD uses five different sources and mostly finds the right album cover.
If not, my script has a solution. ![]()
If people would know how little brain is ruling the world, they would die of fear.
Offline