You are not logged in.
BTW, I have Radio SwissPop as station (as always
)
https://stream.srg-ssr.ch/m/rsp/aacp_96
I found and tried your radio station with a different stream URL:
https://stream.srg-ssr.ch/m/rsp/mp3_128
Source:
https://forums.bunsenlabs.org/viewtopic … 88#p139988
I also followed in the browser:
https://www.radioswisspop.ch/en
After more than half an hour of listening, I can say that I am satisfied with what I was able to see.
My script worked great and sometimes the album cover was better than what was shown on the website.
My system font supports German special characters, but such album covers are harder to find.
Sometimes I get the image not_available.png.
Enjoy!
EDIT
Your text editor is Geany?
You can probably change the font in the settings like I can in Gedit:
Last edited by marens (2025-05-02 02:14:20)
If people would know how little brain is ruling the world, they would die of fear.
Offline
I found and tried your radio station with a different stream URL:
^Yes.
aacPlus Stream *
Quality: 96 kbps - Best listening quality
https://stream.srg-ssr.ch/m/rsp/aacp_96
aacPlus Stream *
Quality: 48 kbps - Good listening quality
https://stream.srg-ssr.ch/m/rsp/aacp_48
MP3 Stream
Quality: 128 kbps - Good listening quality
https://stream.srg-ssr.ch/m/rsp/mp3_128
BTW
if you'd like to record radio from FF, and use pipewire, check out this link (although recorder does it even easier.
Last edited by unklar (2025-05-02 10:12:43)
Offline
BTW
if you'd like to record radio from FF, and use pipewire, check out this link (although recorder does it even easier.
^ You forgot that I wrote the basic radiotray-ng script for the PulseAudio sound server?
Now we also have a PipeWire version and that's great.
You are a tester with a lot of experience and I expect useful feedback.
If people would know how little brain is ruling the world, they would die of fear.
Offline
@unklar
Replace German special characters
Explanation:
Ä – \u00c4 > A sed 's/\u00c4/A/g'
ä – \u00e4 > a sed 's/\u00e4/a/g'
Ö – \u00d6 > O sed 's/\u00d6/O/g'
ö – \u00f6 > o sed 's/\u00f6/o/g'
Ü – \u00dc > U sed 's/\u00dc/U/g'
ü – \u00fc > u sed 's/\u00fc/u/g'
ẞ – \u1e9e > SS sed 's/\u1e9e/SS/g'
ß – \u00df > ss sed 's/\u00df/ss/g'
Try:
test1=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep artist |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed 's/é/e/g' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//' | sed 's/\u00c4/A/g' | sed 's/\u00e4/a/g' | sed 's/\u00d6/O/g' | sed 's/\u00f6/o/g' | sed 's/\u00dc/U/g' | sed 's/\u00fc/u/g' | sed 's/\u1e9e/SS/g' | sed 's/\u00df/ss/g')
test2=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep title |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//' | sed 's/\u00c4/A/g' | sed 's/\u00e4/a/g' | sed 's/\u00d6/O/g' | sed 's/\u00f6/o/g' | sed 's/\u00dc/U/g' | sed 's/\u00fc/u/g' | sed 's/\u1e9e/SS/g' | sed 's/\u00df/ss/g')
I can't test it, but it's interesting to see how the radiotray-ng script works and whether it finds album covers better?
EDIT
Also check the album_cover file.
Can it be used for conky now?
Last edited by marens (2025-05-03 23:44:20)
If people would know how little brain is ruling the world, they would die of fear.
Offline
^you forgot that I am "always old" and "forgot" with me is standard. A year has come again.
----
That's why I'm currently in Sardinia and test it when I'm home. Please, be patient.
Offline
That's why I'm currently in Sardinia and test it when I'm home. Please, be patient.
Enjoy!
If people would know how little brain is ruling the world, they would die of fear.
Offline
Unfortunately, this does not work with German umlauts/special characters.
Lucky W\uthrich
Able To Love
I have also tested with the 'version' made by TBG/loutch due to your good instructions.
test1=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep artist |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed 's/é/e/g' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//' | sed 's/\'/'"'"'/g')
test2=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep title |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//' | sed 's/\'/'"'"'/g')
However, it behaves similarly(although I have no idea about sed and the script ).
-----
One more thought. Could it be that 'artist' and 'title' should be swapped in the script call?
Because, these examples occur very often with the album_art.png, a confusion:
Thanks for your work.
Offline
Welcome back from vacation, @unklar.
I really don't know why your text editor (OS) doesn't support special (Unicode) characters (German, French...)?
There may be a problem with the locale.
You should probably create a new topic in the Basic Help & Support.
Maybe conky can fix this if you play around with override_utf8_locale in the configuration?
Just add the artist and title to conky.
Anyway, this looks good:
Lucky W\uthrich
Able To Love
The German special character ' ü ' was replaced with ' u " , but for some reason the character ' \ ' remained.
Try:
test1=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep artist |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed 's/é/e/g' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//' | sed 's/\u00e9/e/g' | sed 's/\u00c4/A/g' | sed 's/\u00e4/a/g' | sed 's/\u00d6/O/g' | sed 's/\u00f6/o/g' | sed 's/\u00dc/U/g' | sed 's/\u00fc/u/g' | sed 's/\u1e9e/SS/g' | sed 's/\u00df/ss/g' | sed 's/\\//g')
test2=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep title |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//' | sed 's/\u00e9/e/g' | sed 's/\u00c4/A/g' | sed 's/\u00e4/a/g' | sed 's/\u00d6/O/g' | sed 's/\u00f6/o/g' | sed 's/\u00dc/U/g' | sed 's/\u00fc/u/g' | sed 's/\u1e9e/SS/g' | sed 's/\u00df/ss/g' | sed 's/\\//g')
Or:
test1=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep artist |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed 's/é/e/g' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//' | sed 's/\\u00e9/e/g' | sed 's/\\u00c4/A/g' | sed 's/\\u00e4/a/g' | sed 's/\\u00d6/O/g' | sed 's/\\u00f6/o/g' | sed 's/\\u00dc/U/g' | sed 's/\\u00fc/u/g' | sed 's/\\u1e9e/SS/g' | sed 's/\\u00df/ss/g')
test2=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep title |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//' | sed 's/\\u00e9/e/g' | sed 's/\\u00c4/A/g' | sed 's/\\u00e4/a/g' | sed 's/\\u00d6/O/g' | sed 's/\\u00f6/o/g' | sed 's/\\u00dc/U/g' | sed 's/\\u00fc/u/g' | sed 's/\\u1e9e/SS/g' | sed 's/\\u00df/ss/g')
As far as I know, the official languages in Switzerland are German, French, and Italian.
It will take time for your local radio station to be tuned the way we want it.
I need to see the original data from the site and the contents of the album_cover file.
EDIT
Added solution for ' Céline Dion ' .
It is a French special character.
Last edited by marens (2025-05-13 00:32:40)
If people would know how little brain is ruling the world, they would die of fear.
Offline
With the umlauts, I found the solution from @TBG/loutch in my documents:
sed -i -e 's/\'/'"'"'/g'
About umlauts
After searching I found this:
iconv -f utf8 -t ascii//TRANSLIT
It works perfectly:
$ echo 'Replace Ä, ä, Ö, ö, Ü, ü, ẞ, ß'
Replace Ä, ä, Ö, ö, Ü, ü, ẞ, ß
$ echo 'Replace Ä, ä, Ö, ö, Ü, ü, ẞ, ß' | iconv -f utf8 -t ascii//TRANSLIT
Replace A, a, O, o, U, u, SS, ss
If you create a test1 file in HOME with the content:
Replace ā, á, ǎ, and à with a.
Replace ē, é, ě, and è with e.
Replace ī, í, ǐ, and ì with i.
Replace ō, ó, ǒ, and ò with o.
Replace ū, ú, ǔ, and ù with u.
Replace ǖ, ǘ, ǚ, and ǜ with ü.
Replace Ā, Á, Ǎ, and À with A.
Replace Ē, É, Ě, and È with E.
Replace Ī, Í, Ǐ, and Ì with I.
Replace Ō, Ó, Ǒ, and Ò with O.
Replace Ū, Ú, Ǔ, and Ù with U.
Replace Ǖ, Ǘ, Ǚ, and Ǜ with U.
Ä, ä, Ü, Ü, Ö, ö, ß, ẞ
Then:
$ cat test1 | iconv -f utf8 -t ascii//TRANSLIT > test2
Open the file test2 and you will see that the umlauts are gone:
Replace a, a, a, and a with a.
Replace e, e, e, and e with e.
Replace i, i, i, and i with i.
Replace o, o, o, and o with o.
Replace u, u, u, and u with u.
Replace u, u, u, and u with u.
Replace A, A, A, and A with A.
Replace E, E, E, and E with E.
Replace I, I, I, and I with I.
Replace O, O, O, and O with O.
Replace U, U, U, and U with U.
Replace U, U, U, and U with U.
A, a, U, U, O, o, ss, SS
@loutch
French has a lot of umlauts and you can play around with them a bit if necessary.
If people would know how little brain is ruling the world, they would die of fear.
Offline
The test with me:
echo 'Replace Ä, ä, Ö, ö, Ü, ü, ẞ, ß'
Replace Ä, ä, Ö, ö, Ü, ü, ẞ, ß
echo 'Replace Ä, ä, Ö, ö, Ü, ü, ẞ, ß' | iconv -f utf8 -t ascii//TRANSLIT
Replace AE, ae, OE, oe, UE, ue, SS, ss
cat test1 | iconv -f utf8 -t ascii//TRANSLIT > test2
test2
Replace a, a, a, and a with a.
Replace e, e, e, and e with e.
Replace i, i, i, and i with i.
Replace o, o, o, and o with o.
Replace u, u, u, and u with u.
Replace u, u, u, and u with ue.
Replace A, A, A, and A with A.
Replace E, E, E, and E with E.
Replace I, I, I, and I with I.
Replace O, O, O, and O with O.
Replace U, U, U, and U with U.
Replace U, U, U, and U with U.
AE, ae, UE, UE, OE, oe, ss, SS
Offline
I really don't know why your text editor (OS) doesn't support special (Unicode) characters (German, French...)?
There may be a problem with the locale.
You should probably create a new topic in the Basic Help & Support.
Maybe this will help:
https://www.thomas-krenn.com/en/wiki/Co … _in_Ubuntu
https://www.tecmint.com/set-system-locales-in-linux
If people would know how little brain is ruling the world, they would die of fear.
Offline
Here is Geany on carbon.
How do you recognize a possible error in the settings?
Offline
^ I don't think that's an error.
Honestly, I don't know what the cause is.
I suspect the locale or font you are using.
It's happened before:
https://forums.bunsenlabs.org/viewtopic … 38#p128638
Unfortunately, I don't know how to help you because I always install the OS with en(US).
I'm just changing the setting so that Monday is the first day of the calendar within locale (instead of Sunday).
If people would know how little brain is ruling the world, they would die of fear.
Offline
That has nothing to do with it, because ... 2 years ago, and, I don't know which OS and which editor was current then.
Used now, it's ok.
--------------------------
up on your suggestions 1 and 2:
Try:
test1=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep artist |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed 's/é/e/g' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//' | sed 's/\u00e9/e/g' | sed 's/\u00c4/A/g' | sed 's/\u00e4/a/g' | sed 's/\u00d6/O/g' | sed 's/\u00f6/o/g' | sed 's/\u00dc/U/g' | sed 's/\u00fc/u/g' | sed 's/\u1e9e/SS/g' | sed 's/\u00df/ss/g' | sed 's/\\//g') test2=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep title |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//' | sed 's/\u00e9/e/g' | sed 's/\u00c4/A/g' | sed 's/\u00e4/a/g' | sed 's/\u00d6/O/g' | sed 's/\u00f6/o/g' | sed 's/\u00dc/U/g' | sed 's/\u00fc/u/g' | sed 's/\u1e9e/SS/g' | sed 's/\u00df/ss/g' | sed 's/\\//g')
Luca Hanni
Wonderful
Or:
test1=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep artist |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed 's/é/e/g' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//' | sed 's/\\u00e9/e/g' | sed 's/\\u00c4/A/g' | sed 's/\\u00e4/a/g' | sed 's/\\u00d6/O/g' | sed 's/\\u00f6/o/g' | sed 's/\\u00dc/U/g' | sed 's/\\u00fc/u/g' | sed 's/\\u1e9e/SS/g' | sed 's/\\u00df/ss/g') test2=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep title |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//' | sed 's/\\u00e9/e/g' | sed 's/\\u00c4/A/g' | sed 's/\\u00e4/a/g' | sed 's/\\u00d6/O/g' | sed 's/\\u00f6/o/g' | sed 's/\\u00dc/U/g' | sed 's/\\u00fc/u/g' | sed 's/\\u1e9e/SS/g' | sed 's/\\u00df/ss/g')
Lucky Wuthrich
I vermisse Di
---------------------
By the way, the script from @TBG specifically about this radio stream (if it helps you. It's broken though).
#!/usr/bin/env bash
# 2021-02-25 TeoBigusGeekus
line_1=$(sed -n 1p temp)
curr_playing=$(audtool current-song-tuple-data title)
if [[ $line_1 != $curr_playing ]]; then
echo $curr_playing > temp
wget -O - -q current_playing "http://www.radioswisspop.ch/en"
sed -i '/<div class="current-airplay">/,/<div class="vol-ctr hidden-md hidden-lg">/!d' current_playing
sed -i -e 's/^.*"titletag">//' -e 's/^.*"artist">//' -e 's/^.*src="//' current_playing
sed -i -e 's/<\/span>//g' -e 's/" \/>//g' -e '/<\|>/d' -e '/^ *$/d' current_playing
wget -O -q current_playing_thumb.jpg "http://www.radioswisspop.ch$(sed -n 1p current_playing)"
sed -i -e 's/\'/'"'"'/g' $HOME/current_playing
fi
I have always used it with 'audacious'.
Offline
^ Very nice.
It seems that the German special characters have been successfully replaced.
The source I use for the radiotray-ng script has a huge archive of album covers (maybe more than a few hundred thousand).
However, no one can have everything because it is impossible.
If we listen to local radio stations (artists), sometimes we get not_available.png image or the wrong album cover.
But the next song is coming soon.
I mainly listen to these radio stations:
Country 108 (already exists)
XRDS.fm (Blues)
https://forums.bunsenlabs.org/viewtopic … 05#p139305
113.fm - Bluesville (Blues)
https://forums.bunsenlabs.org/viewtopic … 37#p141737
Majestic Jukebox Radio (Oldies)
https://forums.bunsenlabs.org/viewtopic … 70#p140170
I can say that the radiotray-ng script works much better than I expected when I created it.
Of course there will be wrong album covers, but like I said, the next song is coming soon.
P.S.
Do you know why @loutch/TBG/nic80's and my radiotray-ng scripts are the best?
Because there are no others or I haven't found them.
Last edited by marens (2025-05-15 16:02:20)
If people would know how little brain is ruling the world, they would die of fear.
Offline
@unklar
I manually checked the my radiotray-ng script for your examples:
Luca Hanni
Wonderful
Lucky Wuthrich
I vermisse Di
The results are excellent.
I'm glad that both solutions for removing German special characters work.
This helps the script find the right image.
I think now, if you want, you can use the album_cover file in conky.
EDIT
After more than half an hour of listening, I can say that I am satisfied with what I was able to see.
My script worked great and sometimes the album cover was better than what was shown on the website.
https://forums.bunsenlabs.org/viewtopic … 45#p142945
Look at the example of Luca Hänni.
Last edited by marens (2025-05-15 19:48:19)
If people would know how little brain is ruling the world, they would die of fear.
Offline
Audacious - Now Playing
Thanks to @unklar, I got the idea to make an Audacious script.
That was easy to do.
In fact, it is a modified radiotray-ng script.
If you're interested, you can try:
1) Create a folder ~/.conky/Audacious
2) Inside the Audacious folder, create empty album_cover and image files.
3) Create an audacious file (script) with the content:
#!/bin/bash
test1=$(audtool current-song-tuple-data artist)
test2=$(audtool current-song-tuple-data title)
if [[ "$test1" == "$(sed -n '1p' $HOME/.conky/Audacious/album_cover)" && "$test2" == "$(sed -n '2p' $HOME/.conky/Audacious/album_cover)" ]]; then
exit 0
fi
echo $test1 > $HOME/.conky/Audacious/album_cover
echo $test2 >> $HOME/.conky/Audacious/album_cover
if [[ "$test1" == "" && "$test2" == "" ]]; then
cp $HOME/.conky/Audacious/headphone.png $HOME/.conky/Audacious/album_art.png
else
artist=$(sed -n '1p' $HOME/.conky/Audacious/album_cover | sed 's/ /%20/g' | sed -e 's/$/%20-&/' | tr '[A-Z]' '[a-z]')
title=$(sed -n '2p' $HOME/.conky/Audacious/album_cover | sed 's/ /%20/g' | sed -e 's/$/\&size=medium&/' | sed 's/^/%20&/' | tr '[A-Z]' '[a-z]')
curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -o $HOME/.conky/Audacious/image "https://aaaas.deno.dev?query=$artist$title"
album_art=$(sed -n '1p' $HOME/.conky/Audacious/image | sed 's/{"image":"//' | sed 's/"}//')
if [[ "$album_art" == "" ]]; then
cp $HOME/.conky/Audacious/not_available.png $HOME/.conky/Audacious/album_art.png
else
curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -o $HOME/.conky/Audacious/album_art.png "$album_art"
convert $HOME/.conky/Audacious/album_art.png $HOME/.conky/Audacious/album_art.png
> $HOME/.conky/Audacious/image
fi
fi
#### Disable conky when turn off Audacious
test3=$(ps -A | grep audacious)
if [[ "$test3" == "" ]]; then
audacious_conky=$(pgrep -a conky | awk '/Audacious-conky/{print $1}')
kill -SIGKILL $audacious_conky
fi
4) Make the script executable
5) Download these images and Copy/Paste them into the folder ~/.conky/Audacious:
https://postimg.cc/phKKdBmm
https://postimg.cc/bdjy403h ## > Rename image to not_available.png
Done.
This is my Audacious-conky:
${texeci 10 bash $HOME/.conky/Audacious/audacious}\
${image $HOME/.conky/Audacious/album_art.png -p 0,0 -s 128x128}
Last edited by marens (2025-05-16 22:46:20)
If people would know how little brain is ruling the world, they would die of fear.
Offline
Dear members,
I saw this site while searching for conky config help. However, I am not using operating system by bunsenlabs. I am using Operating System: Ubuntu 24.04.2 LTS, Kernel: Linux 6.11.0-25-generic. Is it all right to request help for conky?
Thanks
Offline
Dear members,
I saw this site while searching for conky config help. However, I am not using operating system by bunsenlabs. I am using Operating System: Ubuntu 24.04.2 LTS, Kernel: Linux 6.11.0-25-generic. Is it all right to request help for conky?Thanks
Yes, you can request help for conky and Ubuntu on this forum.
Welcome to the forum.
Forum rules - https://forums.bunsenlabs.org/misc.php?action=rules
You must unlearn what you have learned.
-- yoda
Offline
Thanks for the reply. Can anyone share me a conky config that I can start with. And also how do i install conky on Ubuntu 24.04.02.
Thanks
Offline