07-18-2018, 10:43 AM
Hi BlackSmile,
Last week-end I added about 10 radio stations with logo using the how to guide provided in this forum. The process is not that complicated. I am not an expert and learned ssh just here in the forum. I started by creating 2 jpg for each logo, one 400x400 pixels and the second 100x100 pixels and put them in 2 different folders in my computer. I used a software called netatalk to drag and drop the 2 folders from my computer (mac osx) to the /home/pi directory of the RPi . Typing "sudo bash" on the command line will let you copy your jpg to the right directories without restriction. I copied the 400x400 directory to the radio-logos directory and the 100x100 directory to the thumbs directory:
Doing that will make your logos visible to the radio tab of moode 4.2.
To make them visible to the playback tab, you follow the instructions to open the database, the aim being to know the last id number used in your data base. If the last id number is 180 for example, you will start inserting your radio station data using the id number 181. You then use the command provided to insert the data.
You just replace station name and station url. You leave local alone. That's all.
Remy
Last week-end I added about 10 radio stations with logo using the how to guide provided in this forum. The process is not that complicated. I am not an expert and learned ssh just here in the forum. I started by creating 2 jpg for each logo, one 400x400 pixels and the second 100x100 pixels and put them in 2 different folders in my computer. I used a software called netatalk to drag and drop the 2 folders from my computer (mac osx) to the /home/pi directory of the RPi . Typing "sudo bash" on the command line will let you copy your jpg to the right directories without restriction. I copied the 400x400 directory to the radio-logos directory and the 100x100 directory to the thumbs directory:
Code:
sudo bash
cp /home/pi/400x400/*.jpg /var/www/images/radio-logos
cp /home/pi/100x100/*.jpg /var/www/images/radio-logos/thumbs
To make them visible to the playback tab, you follow the instructions to open the database, the aim being to know the last id number used in your data base. If the last id number is 180 for example, you will start inserting your radio station data using the id number 181. You then use the command provided to insert the data.
Code:
insert into cfg_radio VALUES(181,'station url','station name','','local');
Remy