Exposure unit
for expose PCB by UV light
BananaPi sigle board computer
Banana Pi is an open source hardware project lead by GuangDong BiPai technology co., LTD.
Radiation monitor with BananaPi Zero.
Screenshot of Grafana data interpretation of radiation meter
Load dependent speed controller of the mini drill
The basic equipment of every electrical engineering or model maker's workshop
DPS with soldered components
view of the mounted printed circuit board exported from CAD
Reflow oven
for soldering SMD prited circuits board
Reflow oven
also suitable for drying solid materials
RC433 for HomeAsistant
remote controler for garage door from HomeAssistant
LK-20 power source
Two independent power source for your laboratory
Internet radio and buzzer
Volumio media player with automatic brightness control

Own icon for volumio3 web radio

Many of us have grown fond of the Volumio music player. Besides the option to choose from a huge number of web radio stations, there is sometimes a need to add your own web stream source. This is easy to do via the UI interface in the "My Web Radios" section. It often happens that the new source does not provide the web radio image in the required PNG or JPG format, but often in WEBP and similar formats, which the Volumio system cannot parse, and the default Volumio icon is displayed.

The solution is simple. You need to connect via SSH to the Volumio system and modify the contents of the files in the /data/favourites folder. This folder contains the files favourites, my-web-radio, and radio-favourites. The names make it clear what kind of information they probably contain. The file format is JSON. You can verify this in the SSH console with the command:
cat /data/favourites/my-web-radio | python3 -m json.tool.

If the output is error-free, the formatted output looks something like this. Example of a record with a missing radio icon:
[
{
"service": "webradio",
"name": "Ceskoslovenske Radio",
"uri": "https://stream.zeno.fm/3t8uknzr5s8uv",
}
]
Open the file in a text editor, such as nano, and add a line in the format:"albumart": "URL/your_picture.png" with a link to the image you want to be displayed when playing the radio station. The image should be no larger than 1000px x 1000px, with an optimal size of 500px x 500px or smaller, and the image format should be PNG or JPG. The image must be accessible via the HTTP or HTTPS protocol.

The output of the command cat /data/favourites/my-web-radio | python3 -m json.tool in the SSH console should look something like this:
[
{
"service": "webradio",
"name": "Ceskoslovenske Radio",
"uri": "https://stream.zeno.fm/3t8uknzr5s8uv",
"albumart": "https://dedeideas.eu/ceskoslovenske_radio.png"
}
]

Now the icon (fanart) for your station will display correctly.
volumio2

 In this way, it is possible to add or change the icons for any web radio station in the "My Web Radio" or "Favourites" section by simply editing the files.  my-web-radio or  radio-favourites .

 

Related Articles

Copyright © Free Joomla! 4 templates / Design by Galusso Themes