![]() |
[How to do instruction] Adding radio station with logo to Moode - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9) +--- Thread: [How to do instruction] Adding radio station with logo to Moode (/showthread.php?tid=116) |
Adding radio station with logo to Moode - hjheins - 04-22-2018 There are 2 steps to adding a radio station with logo to Moode. To just add a radio station (if you do not care about a logo), you can stop after step 1. 1) Adding the station url There are 2 ways to add a new station. The first is going to the Moode player url, choose "browse", click on "RADIO" click on the microphone icon and select "create new station". You will now get an overlay window where you can add the name and the url for you station. Press "save" and your new station is there. The second way of adding a station is a bit more involved. Here you have to make a .pls file that includes all the information regarding your station. Once done, you can upload this per SSH to the Mode player. The location where you have to upload is: /var/lib/mpd/music/RADIO Please note that you need root access to do so. Once done, go to the Moode player url, go to "browse", click on the device icon in front of "RADIO" and select "Update this folder" Now test your new radio station in Moode. If you have music, it works, if not, check your url, and when you used the second route, check your .pls file. 2) Adding a logo This bit is a bit more involved. first, download the logo you want to use. If needed, convert it and save it as .png file. Name this file the same as your radio station. Upload your .png file to your Moode player with SSH. The location where you upload is: /var/www/images/radio-logos Please note that you need root access to do so. You now need to know the real url that your radio station uses. To find this, go to the Moode url, and start playback of your radio station. On the playback page, select "audio info" from teh Moode menu (right top). Copy the address behind "Source:" and save this for later use. Now, add the data needed to the sqlite database that manages this. Open the sql database (as root): Code: sqlite3 /var/local/www/db/moode-sqlite3.db first add header info to the view, and list the existing entries to know what is in there and what should be the next id you can use Code: sqlite> .headers on Now you know the last id, Station url, and you have the image of the station in place. You can now add a line to the sqlite database with this information. This line will look like this: Code: insert into cfg_radio VALUES(id,'station url','station name','if exists:permalink otherwise:empty','local'); now, reboot your Moode. You should now have your radio station available with logo. RE: Adding radio station with logo to Moode - rikardo1979 - 04-23-2018 Nice how-to guide for others to follow. I am sure its going to help a lot of users RE: Adding radio station with logo to Moode - rikardo1979 - 04-23-2018 A question. How do you rewrite/fix something if you did a typo when adding info into database? Like I had an typo in URL so I need to remove line and add it again or just fix it RE: Adding radio station with logo to Moode - Tim Curtis - 04-23-2018 To update the column that contains the station url: Code: sqlite3 /var/local/www/db/moode-sqlite3.db "update cfg_radio set station='http://......' where name='the_name_of_the_station'" -Tim RE: Adding radio station with logo to Moode - rikardo1979 - 04-23-2018 (04-23-2018, 11:18 AM)Tim Curtis Wrote: To update the column that contains the station url: Nice one ; ![]() Thanks RE: Adding radio station with logo to Moode - hjheins - 04-23-2018 (04-23-2018, 11:56 AM)rikardo1979 Wrote:(04-23-2018, 11:18 AM)Tim Curtis Wrote: To update the column that contains the station url: or if you know the ID of your entry: Code: sqlite3 /var/local/www/db/moode-sqlite3.db "update cfg_radio set station='http://....' where id=123" Hendrik-Jan RE: Adding radio station with logo to Moode - rikardo1979 - 04-23-2018 (04-23-2018, 12:28 PM)hjheins Wrote:(04-23-2018, 11:56 AM)rikardo1979 Wrote:(04-23-2018, 11:18 AM)Tim Curtis Wrote: To update the column that contains the station url: Always good to have more options ![]() RE: Adding radio station with logo to Moode - Drewt - 05-22-2018 I try to add a station log as described but fails becasue of a ro squashfs filesystem: Code: pi@moode:~/radio-logos $ sudo mv ABC\ Radio\ Sydney.png /var/www/images/radio-logos/ RE: Adding radio station with logo to Moode - hjheins - 05-24-2018 Seems like your error is not actually writing the logo, but removing it from your home. Maybe do this one easier: use "sudo bash" to become root on a console. Now do a "cp" instead of a move. does this work? RE: Adding radio station with logo to Moode - Koda59 - 07-13-2018 On moode 4.2, just add also thumb image 100x100 on thumbs subdirectory on radio-logos directory. Repeat it as describe on post 1 for the radio-logos on thumbs one. |