Hi,
when I enter a radio station on the Radio
page of Pi MusicBox, it is played, but on a restart this radio station is gone.
Also, the newly added station only is listed in the browser that I used to add it. Opening the Pi MusicBox pages on a different computer shows the radio station in Now Playing
, but not in Radio
.
This is somehow expected behavior, because of this statement that you can read on the Radio
page:
The last 25 stations are saved locally (not on the server yet).
There are 8 pre-configured radio stations listed on Radio
. These must be defined somewhere. So, I searched my Pi MusicBox for a file that contains the URL of a radio station that is pre-configured. My search (find / ! -type d -exec grep -H vprbbc24 {} \; 2> /dev/null
, “vprbbc24” is a token of the URL of the “BBC WorldService” streaming URL) listed /boot/config/radiostations.js
and /opt/webclient/js/radiostations.js
. The latter is a symlink to the first one, which perfectly makes sense.
I edited /boot/config/radiostations.js
using nano
directly on the RaspBerry Pi. I put //
in front of all existing all existing stations and added new lines for my own. But it makes no difference to page Radio
. I even rebooted the Raspberry Pi – to no avail: Page Radio
still looks I didn’t change anything… File radiostations.js
is not resetted by a reboot. I still see the radio stations listed that I entered before.
Content of /boot/config/radiostations.js
on my system:
root@MusicBox:~# cat /boot/config/radiostations.js
/**
- Default Radiostations which appear in the webinterface. Edit if you like.
- Take care when editting. Only edit the stuff between ‘’
- And don’t use the default Windows Notepad for this (use Notepad++ on Windows)
*/
var radioStations = ;
//fill with defaults
// radioStations.push([‘NPR 24’, ‘http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp3’]);
// radioStations.push([‘3FM Dutch’, ‘http://icecast.omroep.nl/3fm-bb-mp3’]);
// radioStations.push([‘BBC WorldService’, ‘http://vprbbc.streamguys.net:8000/vprbbc24.mp3’]);
// radioStations.push([‘Arrow Jazz’, ‘http://81.173.3.132:8082’]);
// radioStations.push([‘PBS Australia’, ‘http://eno.emit.com:8000/pbsfm_live_64.mp3’]);
// radioStations.push([‘Groove Salad - Soma FM’, ‘http://somafm.com/groovesalad.pls’]);
// radioStations.push([‘Kiss FM Berlin’, ‘http://stream.kissfm.de/kissfm/mp3-128/internetradio/’]);
// radioStations.push([‘Pinguin Radio’, ‘http://pr320.pinguinradio.com/listen.pls’]);
radioStations.push([‘FRITZ! vom rbb’, ‘http://rbb-mp3-fritz-m.akacast.akamaistream.net/7/799/292093/v1/gnl.akacast.akamaistream.net/rbb_mp3_fritz_m’]);
radioStations.push([‘FRITZ! vom rbb (Alternative)’, ‘http://rbb.ic.llnwd.net/stream/rbb_fritz_mp3_m_a’]);
radioStations.push([‘Deutschlandfunk’, ‘http://www.dradio.de/streaming/dlf_hq_ogg.m3u’]);
radioStations.push([‘Deutschlandradio Kultur’, ‘http://www.dradio.de/streaming/dkultur_hq_ogg.m3u’]);
radioStations.push([‘Deutschlandradio Wissen’, ‘http://www.dradio.de/streaming/dradiowissen_hq_ogg.m3u’]);
radioStations.push([‘SWR3’, ‘http://mp3-live.swr3.de/swr3_m.m3u’]);
radioStations.push([‘SWR2’, ‘http://mp3-live.swr.de/swr2_m.m3u’]);
radioStations.push([‘SWR Info’, ‘http://mp3-live.swr.de/swrinfo_m.m3u’]);
It is quite tedious to enter the streaming URLs each time I want to listen to my favorite radio station.
Advices are greatly appreciated!
Thanks in advance,
slowjoe