Radio++

UUID: radio@driglu4it
Last edited:
6 hours ago 2021-03-06, 10:27
Last commit: [7eecf283] radio@driglu4it: Update Turkish translation (#3676)

A simple radio applet for Cinnamon

README

Close

Radio++

A simple radio applet for Cinnamon.

Features

  • The volume can be controlled with the mouse wheel.
  • Three options for the icon: Symbolic, Full Color or Bicolor Icon. For the Symbolic Icon the color of the Icon is changed to a user-defined color when playing a radio stream
  • In the settings are two buttons which help you to find the radio stream url of your favorite radio station. The first one open this URL Search engine and the second one open this Radio List Collection in your default Browser when clicking on it
  • A download dialog is opened when clicking on the applet for the missing dependencies

For Cinnamon 4.6 and above only

  • The radio applet can be controlled (paused, sound increased/decreased) with programms with MPRIS control (e.g.the sound applet, kdeconnect or playerctl). Such programs also receive the title of the current playing song (e.g you can show the current playing song in the sound applet by activating the option "Show song information on the panel" in the sound applet).
  • All other running programs with sound output which have implemented the MPRIS interface (e.g. most Browsers, Spotify, ...) are stopped when starting a radio channel
  • The current playing song title can be copied to the clipboard from the right-click menu
  • The title of the radio channel can be shown in the panel

Dependencies

It is opened a download dialoge for each missing dependencies when clicking on the applet which makes the installation process of the radio applet as easy as possible. So it is not necessary to manually install the dependencies. The used dependencies are therefore only listed for your information.

Cinnamon 4.6 and above

It is used the mpv media player for playing the radio channel. As the mpv media player doesn't support MPRIS control out of the box, it is used this plugin to get this feature.

Below Cinnamon 4.6

Moc player

Known Issues

  • Special characters (e.g German Umlaute) are not shown correctly on the sound applet (when the option "Show song information on the panel" is activated). This is a limitation of the mpv player
  • For some radio stations (e.g. BBC) the metadata can't be shown

Ideas for improvements

  • Automatically stop playing when another MPRIS media player starts
  • Add moc player as option again as the player needs less RAM (not everyone wants MPRIS)
  • Indicate when radio stream is paused
  • Add option to rewind and fast forward (easier to implement as it sounds as radio streams as it seems that radio streams are 30 seconds behind by default. This is implemented in kdeconnect)
  • Adding an option to show the application volume in the tooltip
  • Adding an option to show the last played radio channel italic

Log In To Comment!

70 Comments

jpsouzamatos
jpsouzamatos-2 weeks ago
Hi Sadly this applet is not good enough. Please improve this applet to be good like this one https://store.kde.org/p/1313987/
Jonathan Heard
Jonathan Heard-2 weeks ago
I am aware of that Applet but haven't used it yet. I think the most missing Feature in Radio++ is the search functionality. What do you think?
MarcoB-0049
MarcoB-0049-2 weeks ago
@JH Great work! The applet installed including plugin and mpv media player, url's of the radio stations entered and lo and behold, it works perfectly!
Owweeee
Owweeee-3 weeks ago
A good little applet. took me 2 weeks from downloading to work out that the reason it wasn't working properly was because the default volume was set to 0%. Also needs an easier way to add radio stations.
Jonathan Heard
Jonathan Heard-2 weeks ago
Sorry to hear that but I don't know what happens to you. Which Cinnamon version do you use? For Cinnamon 4.6 and above the default volume is 80% and not 0%.
Jonathan Heard
Jonathan Heard-2 weeks ago
Anyway I have made now a PR at github to show the volume in the tooltip in future. So that this doesn't happen to anybody else.
borodin57
borodin57-1 month ago
Hrm, had the identical problem as MichaelHanzen; after upgrading to 20.1 I got the dialogue that prompted me to download the plug-in, duly did as told, nothing happened. Happily read the below comment and solution, update all my applets, downloaded the mpris.so file to the radio@driglu4it folder, still got the same dialogue box and still no working radio. Did I download the wrong file or what have I bungled this time? Cheers, B
Jonathan Heard
Jonathan Heard-1 month ago
Reading my comment again I see that I forgot to mention that you need to restart Cinnamon after downloading the mpris.so file. Also are you sure that you saved the mrpis.so file to the correct directory? There are two Applets folders - one for the source code and one for the config files. You have to save the file to the config folder which is at ~/.cinnamon/configs/radio@driglu4it. Then it souldn't appear the download prompt anymore.
MichelHanzen
MichelHanzen-1 month ago
I'm using Linux Mint 20.1/Cinnamon 4.8.6. When I try to start Radi0++, a download confirmation dialog appears stating that I must download the mvp-mpris plugin. When I press the button "Download plugin ant my own risk", nothing happended. I went to GitHub to and copied mpris.so to my ~/.config/mpv/scripts directory and make it executable but it does not work. The applet worked under Linux Mint 20. Can you help me?
Jonathan Heard
Jonathan Heard-1 month ago
There was a Bug in the applet which I fixed yesterday. Maybe you need to refresh your cache in the applets window and update the applet. But if it is not working you can also fix it by saving the plugin to ~/.cinnamon/configs/radio@driglu4it (it actually doesn't need to be executable). Sorry for the inconvenience. I always test the applet extensively before making a pull request at Github but unfortunately this still can happen. I want to improve the applet at some point in future by migrating to TypeScript which will reduce the probability of such Bugs significant.
MichelHanzen
MichelHanzen-1 month ago
It works now. Thanks for your support!!!!
pyotr71
pyotr71-1 month ago
My best widget! However, there was a problem with a large number of radio stations. They cannot be scrolled...
Jonathan Heard
Jonathan Heard-1 month ago
Can you open a ticket for that on Github and include a Screenshot?
pyotr71
pyotr71-1 month ago
Thanks a lot for fixing this!
Jonathan Heard
Jonathan Heard-1 month ago
You are welcome. Thanks for reporting the issue :-)
mockturtl
mockturtl-1 month ago
Love it, thanks!!
Padre2
Padre2-2 months ago
Hello Jonathan, My apologies for not having responded sooner to your reply to my comments. Apart from the desire to stay in touch with the outside world at New Year, where Radio plays an important part, I am also having issues with my IPTV. Today I received the notification of another update for Radio. After installing, it again directed me to install mpv-mpris. Clicking the button did nothing and I went to the terminal and installed from AUR using `yay`, but still no results even after restarting, hence my visit here. I am very happy with your reply from a week ago and now understand what has been happening. Thank you for saving me the trouble to figure out how to downgrade. Everything is now back to normal. :-)
Padre2
Padre2-2 months ago
I am using Arch with Cinnamon 4.8.4 and have been using this Radio applet for over a year with very satisfactory results. I had an update for Radio about a week ago and it stopped working and I found a message that it now requires the mpv package. After installing mpv, it loaded again, but the volume setting normally used, ~40%, required cranking up to 80% to get the same sound level. However, with this setting the system notification and other player sounds were extremely high. This was adjusted by lowering the PulseAudio level setting down from 100% to 50% and leaving the mpv audio setting at 100%. Yesterday I found a new update and again after updating again, it stopped working and this time it required mpv-pris, or mpv-mpris? Without paying much attention I installed whatever it was, or perhaps nothing, restarted and Radio resumed working. Today before writing this I read the posts below and noted the change from moc to mpv. I then checked to see the versions of mpv (1:0.33.0-3 (x86_64) installed), but could not find any package.with pris or mpris in the name. Searching for mpris produced the playerctl package, which is installed. I am still trying to understand what actually happened. Why is the mpv sound only about 50% of the moc sound. The performance is degraded with mpv and prefer performance of the moc player, which for me had worked very well.
Jonathan Heard
Jonathan Heard-2 months ago
I am sorry for your inconvenience. We have updated the media player as it is now possible to control the radio applet by any software which has implemented MPRIS such as the sound applet and media keys on the keyboard. But I understand that not everybody wants this. We have focused to much on one feature while ignoring the disadvantages. Your feedback is therefore really very valuable to correct our mistakes. So we probably will implement an option to choose the media player in future which however is not that simple and will take some time. In the mean time you can revert back by copying the content from ~/.local/share/cinnamon/applets/radio@driglu4it/3.0 to ~/.local/share/cinnamon/applets/radio@driglu4it/4.6. You should then be careful with updates for the radio applet as updates will bring the current version back. The mpv player doesn't allow MPRIS control out of the box but only with this plugin: https://github.com/hoyon/mpv-mpris. The plugin is basically just a file and not an apt package. We have made a mistake here because this plugin has been downloaded to the applet folder (~/.local/share/cinnamon/applets/radio@driglu4it). This however was a bad idea as all files which are not part of the source code (i.e. are included in the git repo) are deleted at updates. Therefore the mpris plugin needed to be downloaded at each update. We will change the path of the plugin to another location so that it won't be deleted in future anymore. However as we just have recognized this with the last update, it means that users of the applet have to download it one last time at the next update (this won't be necessary anymore when we have implemented an option to choose the media player and users choose moc)
mlusic
mlusic-2 months ago
Great applet! What is the path to stored radio stations...for backup?
Jonathan Heard
Jonathan Heard-2 months ago
The settings, which include the radio stations, are saved in ~/.cinnamon/configs/radio@driglu4it/radio@driglu4it.json
invexx
invexx-2 months ago
I'm so glad that the media key works now. Thank you! IMO, it would be much better if the paused stream changed to default icon (not the color icon when it's paused).
Jonathan Heard
Jonathan Heard-2 months ago
I am glad you like it and thanks for your feedback. Indeed this is a good idea but at the moment it is actually not that easy to implement as it sounds. When starting a radio channel, the applet starts mpv and gets informed (with the wait command) when the started process is stopped. This is the case when changing the radio stream or stopping the radio but not when pausing the stream. Theoretically we could implement a function which checks the status of the radio (polling) but I don't like that as it doesn't look great and I guess it is inefficient in that case. I prefer to orientate more on the sound applet which however is more difficult. So I want to implement that but I don't know when I find time for that.
invexx
invexx-2 months ago
Thank you, Jonathan. One more tiny suggestion. It would be nice if notifications were optional. Starting a stream changes icon so imo, notifications are redundant.
Jonathan Heard
Jonathan Heard-2 months ago
Yes I basically agree but I only want to make the start/stop notifications optional but not the error notifications which I first want to implement. Because at the moment when you start a radio while being offline or using wrong url you get first a notification "Playing ..." and afterwards directly "Stop Radio+++". This is somehow wrong and it should be shown an error instead. IMO there is no reason to hide error notifications.
Sergio
Sergio-2 months ago
Hi Joanathan, In my case, the notifications are very redundant because they appear intermittently after selecting a correct station. I tried to stop it, but the notifications keep appearing, even over other windows. This is really annoying
Jonathan Heard
Jonathan Heard-2 months ago
I just made a pull request which removes the notifications. https://github.com/linuxmint/cinnamon-spices-applets/pull/3403
invexx
invexx-2 months ago
I agree. Suppressing error notifications wouldn't make any sense.
Trotter73
Trotter73-2 months ago
Hi, Corner case here, I've been using Cinnamon on a Raspberry Pi (ARMhf) , the latest update to Radio ++ has broken the functionality. The lookingglass log shows:- error t=2020-12-18T15:11:41Z [radio@driglu4it]: Util.spawnCommandLineAsyncIO is not a function [radio@driglu4it]: Failed to evaluate 'main' function on applet: radio@driglu4it/52 I have installed mpv and compiled the MPRIS plugin bit still get the error, any ideas ?
Padre2
Padre2-2 months ago
Reinstalled moc, all is good.
Jonathan Heard
Jonathan Heard-2 months ago
actually you shouldn't nee moc anymore but mpv as this allows to manage this radio with MPRIS control (i. e. with kdeconnect, the sound applet, media keys etc.). However it seems that even though the applet has been updated two days ago, it is still downloaded an old version due to a caching issue (see NikoKrauses comment below)
Padre2
Padre2-2 months ago
After a year working beautifully on Arch, it now loads and stations can be chosen, but no sound and different icon. No errors in Looking Glass or .xsession errors file.
jongough
jongough-2 months ago
What stream formats does this applet support? On Linux Mint Cinnamon 20 there is no 'Open radio stream URL search engine' button at the bottom of the screen.
NikoKrause
NikoKrause-2 months ago
There's a cache issue in Mint 20 / Cinnamon 4.6. When you download an applet in Cinnamon itself, you end up with an old cached version of the applet, even if the about dialog says it's new. Sometimes it takes a few days, till you get the proper latest version through Cinnamon. Right now you need to download and install the latest version manually. The download button above offers the applet with the latest changes.
jongough
jongough-2 months ago
I have told the app to reload from the 'three lines' in the top right of the window and it opens up a new browser tab. However, looking for 'ABC Classic' radio in Australia does not return anything. The two streams possible are: http://freezone.iinet.net.au/include/radio/playlists/131.m3u http://freezone.iinet.net.au/include/radio/playlists/131.pls which are not found. There does not appear to be a way to direct the search. Creating manually these links and the radio works. Thanks Both of these now appear to work.
jongough
jongough-2 months ago
Thanks, have downloaded and installed the latest version which now shows the button at the bottom of the screen. However, clicking on it does not appear to do anything. Where is it supposed to open the search engine?
sixxxis
sixxxis-2 months ago
sorry have to vent: big shit not working on Linux Mint 20 Cinnamon 5.4.0-56-generic kernel with or without config
Jonathan Heard
Jonathan Heard-2 months ago
There has been an update and it should work now on Linux mint 20 out of the box.
invexx
invexx-3 months ago
Excellent. The only thing missing is the support for play/pause media key.
Jonathan Heard
Jonathan Heard-3 months ago
I made a Pull Request for that on Github. You can try this by downloading the applet.js file from https://github.com/jonath92/cinnamon-spices-applets/tree/master/radio%40driglu4it/files/radio%40driglu4it and replacing the ~/.local/share/cinnamon/applets/radio@driglu4it/applet.js file with the downloaded applet.js file and running this command: sudo apt-get install playerctl mpv
STETSen-D
STETSen-D-5 months ago
Добрый день. Возможно ли добавить в апплет вывод уведомлений с названием текущей транслируемой песни (как например это реализовано в программе radiotray-lite). Просто многие станции при вещании дают название текущего трека, было бы интересно видеть такое и в этом апплете. Спасибо:)
Nikon1981
Nikon1981-9 months ago
При добавлении ссылок радиостанций убирайте расширение "s" в протоколе http т.е. https://maximum.hostingradio.ru/maximum96.aacp > http://maximum.hostingradio.ru/maximum96.aacp
Nikon1981
Nikon1981-9 months ago
Сделал все как написано, но радио не работает и не могу найти .moc/config. В папке /home/user/.moc нет файла конфигурации.
Hairybiker
Hairybiker-9 months ago
Is there any way of getting this to start playing the last selected station on startup?
Kimme Utsi
Kimme Utsi-11 months ago
But first when you have installed this plugin you need to...... sudo apt install moc moc-ffmpeg-plugin And then you add the mentioned alias in .bash_aliases alias mocp="padsp mocp" and put this in your .moc/config # Use OSS for Pulseaudio compatibility (run 'padsp mocp') SoundDriver = OSS, ALSA, JACK
Kimme Utsi
Kimme Utsi-11 months ago
Hmmmmm, the entry about .moc/config is borked just now on my Linux Mint 19.3....
Kimme Utsi
Kimme Utsi-1 year ago
Also experienced that you also have to open an terminal and type the command "mocp" in the terminal and exit the program with an "keypress q" to get the stations to play atleast on Pop-OS 19.10..... Then the stations will play with this extension...
Kimme Utsi
Kimme Utsi-1 year ago
.This works in Ubuntu 19.10 if you set this as an alias.... alias mocp="padsp mocp" and put this in your .moc/config # Use OSS for Pulseaudio compatibility (run 'padsp mocp') SoundDriver = OSS, ALSA, JACK
j-balint
j-balint-1 year ago
Actually mocplayer does not play it, just says: Connecting... The message disappears after a while and nothing happens.
j-balint
j-balint-1 year ago
I recently changed to Radio++ from Radiotray which very often stopped to play. On my LxMint 19/Cinnamon Radio++ works simply well with many published radio streams, I like its simpicity. However it does not play the KDFC stream: http://128.mp3.pls.kdfc.live which is published on this page: https://www.kdfc.com/listen/how-to-listen/ What could be a reason of that?
Padre2
Padre2-1 year ago
@Driglu4it, I am using Radio++ and I am very happy with it, for streaming radio programmes. I would like to ask how to make the list of stations longer in the window, as shown above. Can the list not make more use of the panel, which is so much bigger. Otherwise, make the panel shorter, but styled so as to allow the height of the panel and list to be increased by dragging.
claudiux
claudiux-1 year ago
Symbolic icon added. Now the icon is correctly displayed in the panel.
rjv23
rjv23-2 years ago
nice little app, works well. users need to get the direct steaming link, for soma, look on the left margin for direct stream links, choose the quality link you want and load that. seems to work for me no problems.
Chad Bergeron
Chad Bergeron-2 years ago
Doesn't seem to play streaming playlist files (such as those from http://somafm.com) which are used to procide multiple URLs for a stream. If I enter a playlist file, it should call mocp -p to play the first stream location in the playlist.
Kimme Utsi
Kimme Utsi-2 years ago
Remove any exstension for the link, and the station will work.
Padre2
Padre2-1 year ago
Thanks Kimme, I found that this worked with several, but not all, URLs that would not play in Radio++. I have been comparing with Rythmbox, which will accept the extensions, but Radio ++ is a much neater application, if you only want radio URLs.
plspp
plspp-2 years ago
I like to add the following for urls to add: Current as of sept 2018 Big list of urls: https://www.outworldz.com/secondlife/posts/streaming/ i like listen to art bell Art Bell1 http://stream1.u7radio.org:8000/ Art Bell1 http://stream2.u7radio.org:8000/ Art Bell1 http://stream3.u7radio.org:8000/
plspp
plspp-2 years ago
The radio is perfect the way it is. I think (1) radio should NOT include listings of urls because radio stations constantly change, 1day they online, next day they non-exsist. Many change op hours. (2) It would be a real mess and very time consuming to the creator to keep a valid list of some current online radio streams. (3) It would be hard to please everyone with his selection if he added a list, because his rock or chill or pop or rap or whatever streams may not be yours. Then it be a hassle to delete his streams and start all over with yours (4) it is best to leave blank, so we can add the streams we like and want to hear. The three streams that is listed currently, only 2 worked for me. but that okay, because it is a good way to set an example of how to add or delete. Thank you for the effort of creating the app.
Visnu Pritom Chowdhury
Nice app. However, a valid list of URLs would be great! This list apparently does not work any more, https://wiki.ubuntuusers.de/Internetradio/Stationen/
evalesquez
evalesquez-2 years ago
Nice and very simple applet, but please creat a symbolic-icon radio for dark themes panel. :)
Driglu4it
Driglu4it-3 years ago
Icon.png use in list of widget, not in applet. Applet use function set icon from cinnamon library (this - 'radio'). I'm happy to make a grouping of stations, if there is an option in the API to add an editable list of choices.
Вячеслав Диконов
The name of the icon inside the applet's js file does not match the actual filename of the icon (icon.png). This makes the applet invisible in the panel. Please, fix! It would also be cool to support grouping of radio stations via submenus.
GNU / Linux
GNU / Linux-3 years ago
Спасибо Вам за ваш ответ попробую. Респект
GNU / Linux
GNU / Linux-3 years ago
Программа хорошая, но хочется свои радио добавить.
Driglu4it
Driglu4it-3 years ago
Без проблем можно свои добавить. Я, например смотрел исходные коды страниц 101.ru
etherman55
etherman55-3 years ago
Forgot to mention, it Didn't work at first, but only after I had downloaded Moc player via synaptic package manager, it worked immediately, and was easy to configure with new stations.
etherman55
etherman55-3 years ago
Excellent application, EASY to use, thanks a lot. In order to add stations, I chose them fro Icecast radio directory in VLC media player, hit the info choice on right mouse click, then copy "Location" contents (a web address?), right click the Radio++, chose config, click + to add a station, name it and paste the location. You're done.
Driglu4it
Driglu4it-3 years ago
Several stations can be taken from Radiotray here: https://github.com/RadioTrayEurasia/RadioTrayEurasia If necessary, I can convert for applet (only a very large list will be obtained). There is a proposal to make a change in the radio. In the list of stations, select the check box that will mark which stations to display. If the changes are useful, write in the comments, I will. Sorry for my bad English...
Driglu4it
Driglu4it-3 years ago
NikoKrause, thank's for your improvements.
NikoKrause
NikoKrause-3 years ago
That's a nice applet for listening to online radio stations. It's a little bit difficult to find the right URL for radio stations. But I found this very helpful list of internet radio stations: https://wiki.ubuntuusers.de/Internetradio/Stationen/