# InternetRadio - customize

**URL:** <https://discourse.zynthian.org/t/internetradio-customize/9501>\
**Category:** Software\
**Tags:** v5, oram\
**Created:** [April 30, 2024, 1:12pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501 "2024-04-30T13:12:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klangschmied](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/klangschmied/32/9207_2.png) [@Klangschmied](https://discourse.zynthian.org/u/Klangschmied)\
**Post date:** [April 30, 2024, 1:12pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/1 "2024-04-30T13:12:34Z")

</div>

Recently I detect the InternetRadio - chain, nice implementation.  
The list of available streams are 9.  
How can I add a internet-webstream, I like, to this list?

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [April 30, 2024, 4:20pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/2 "2024-04-30T16:20:27Z")

</div>

The list of stations (presets) uses a hardcoded list if there is no config. You can manually add a config file in json format: `/zynthian/zynthian-my-data/presets/inet_radio/presets.json` This has the format:

```auto
{
	"Music": [
		["http://stream.radiotime.com/listen.m3u?streamId=10555650", 0, "FIP", "auto", ""],
		["http://icecast.radiofrance.fr/fipgroove-hifi.aac", 0, "FIP Groove", "aac", ""],
		["http://direct.fipradio.fr/live/fip-webradio4.mp3", 0, "FIP Radio 4", "auto", ""],
		["http://jazzblues.ice.infomaniak.ch/jazzblues-high.mp3", 0, "Jazz Blues", "auto", ""],
		["http://relax.stream.publicradio.org/relax.mp3", 0, "Relax", "auto", ""],
		["http://icy.unitedradio.it/VirginRock70.mp3", 0, "Virgin Rock 70's", "auto", ""],
		["https://peacefulpiano.stream.publicradio.org/peacefulpiano.aac", 0, "Peaceful Piano", "aac", ""],
		["https://chambermusic.stream.publicradio.org/chambermusic.aac", 0, "Chamber Music", "aac", ""],
		["http://sc3.radiocaroline.net:8030/listen.m3u", 0, "Radio Caroline", "auto", ""]
	],
	"Speech": [
		["http://direct.franceculture.fr/ts/franceculture-midfi.mp3", 0, "France Culture", "auto", ""],
		["http://wsdownload.bbc.co.uk/worldservice/meta/live/shoutcast/mp3/eieuk.pls", 0, "BBC Radio World Service (English)", "auto", ""]
	]
}

```

The first parent node is the bank, i.e. “Music” and “Speech” in this example.  
Each entry below this is a station with parameters:

- URL of stream or playlist
- 0 - not used
- Preset / station friendly / display name
- CODEC type - can use usually use “auto”

It would be good to add a method of editing this from the UI or at least from webconf.

---

<div class="post-metadata">

**Author:** ![travelrec](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/travelrec/32/11382_2.png) [@travelrec](https://discourse.zynthian.org/u/travelrec)\
**Post date:** [April 30, 2024, 6:23pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/3 "2024-04-30T18:23:26Z")

</div>

WOW, it works! After fiddling around with the json file and rights management on another Pi and an overseen square bracket, the config is accepted. Nice feature! Thank you!

This is my favourite stream: [http://www.ebm-radio.org:7000/;537270416216132stream.nsv](http://www.ebm-radio.org:7000/;537270416216132stream.nsv)

---

<div class="post-metadata">

**Author:** ![le51](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/le51/32/1706_2.png) [@le51](https://discourse.zynthian.org/u/le51)\
**Post date:** [April 30, 2024, 7:22pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/4 "2024-04-30T19:22:43Z")

</div>

Oh 2 things I’ve discovered here

the webradio player and the ebm Channel. There was an old Alien Sex Friends track play ing when I gave it a try

🎄

---

<div class="post-metadata">

**Author:** ![Klangschmied](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/klangschmied/32/9207_2.png) [@Klangschmied](https://discourse.zynthian.org/u/Klangschmied)\
**Post date:** [April 30, 2024, 7:47pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/5 "2024-04-30T19:47:10Z")

</div>

Thanks, @riban  
Try to add following station to the presets.json file  
[“[https://stream.laut.fm/apostrophe.m3u](https://stream.laut.fm/apostrophe.m3u)”, 0, “apostrophe”, “auto”, “”]  
and put the file “presets.json” in the place  
`/zynthian/zynthian-my-data/presets/inet_radio/`

```auto
{
        "Music": [
                ["http://stream.radiotime.com/listen.m3u?streamId=10555650", 0, "FIP", "auto", ""],
                ["http://icecast.radiofrance.fr/fipgroove-hifi.aac", 0, "FIP Groove", "aac", ""],
                ["http://direct.fipradio.fr/live/fip-webradio4.mp3", 0, "FIP Radio 4", "auto", ""],
                ["http://jazzblues.ice.infomaniak.ch/jazzblues-high.mp3", 0, "Jazz Blues", "auto", ""],
                ["http://relax.stream.publicradio.org/relax.mp3", 0, "Relax", "auto", ""],
                ["http://icy.unitedradio.it/VirginRock70.mp3", 0, "Virgin Rock 70's", "auto", ""],
                ["https://peacefulpiano.stream.publicradio.org/peacefulpiano.aac", 0, "Peaceful Piano", "aac", ""],
                ["https://chambermusic.stream.publicradio.org/chambermusic.aac", 0, "Chamber Music", "aac", ""],
                ["http://sc3.radiocaroline.net:8030/listen.m3u", 0, "Radio Caroline", "auto", ""]
                ["https://stream.laut.fm/apostrophe.m3u", 0, "apostrophe", "auto", ""]
        ],
        "Speech": [
                ["http://direct.franceculture.fr/ts/franceculture-midfi.mp3", 0, "France Culture", "auto", ""],
                ["http://wsdownload.bbc.co.uk/worldservice/meta/live/shoutcast/mp3/eieuk.pls", 0, "BBC Radio World Service (English)", "auto", ""]
        ]
}

```

rebooted, but the list looks the same as without the modified “presets.json”.

---

<div class="post-metadata">

**Author:** ![travelrec](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/travelrec/32/11382_2.png) [@travelrec](https://discourse.zynthian.org/u/travelrec)\
**Post date:** [May 1, 2024, 5:01pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/6 "2024-05-01T17:01:18Z")

</div>

The mentioned stream link does not work in an ordinary web browser on PC or other kind of computer or mobile device, since it stores a m3u playlist file only. The stream must immediately open a browser based player in a tab to play directly in browser. Otherwise it will not work on zynthian.

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [May 1, 2024, 5:21pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/7 "2024-05-01T17:21:18Z")

</div>

m3u playlists are supported by the player used by Zynthian, e.g. the Radio Caroline feed is presented as a m3u playlists. It might depend on the playlist content, e.g. it may only take the first stream in the list.

---

<div class="post-metadata">

**Author:** ![Klangschmied](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/klangschmied/32/9207_2.png) [@Klangschmied](https://discourse.zynthian.org/u/Klangschmied)\
**Post date:** [May 1, 2024, 7:33pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/8 "2024-05-01T19:33:53Z")

</div>

It seems, that the new “presets,json” is not recalled.  
My edited presets.json file has 10 entry, but the preset menu shows only 9 entries.  
I changed the order, but no luck.  
@riban , do you have a working “presets.json”, which has different entries as the hardcoded list, to try if something is wrong with the path/ rights.

---

<div class="post-metadata">

**Author:** ![Tithrion](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/tithrion/32/11249_2.png) [@Tithrion](https://discourse.zynthian.org/u/Tithrion)\
**Post date:** [November 3, 2024, 8:35pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/9 "2024-11-03T20:35:17Z")

</div>

Maybe a late answer, but as I just fiddled with the same problem and used this entry as reference:  
I copied the examples from above and had the same problem.  
After checking the file by hand, I found that a trailing comma seemed to miss in my case.  
I added it, saved and found my entries in the UI.  
So: double check the format.

This could indeed be made easier and more fault-tolerant by at least adding a method for editing in webconf as already mentioned by @riban.

Just my 2 cents:  
Personally I’d prefer to have a possibility to just _add_ my presets to the existing hard coded stations (instead of overwriting) or better have a possibility to edit these stations as well.

---

<div class="post-metadata">

**Author:** ![fussl](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@fussl](https://discourse.zynthian.org/u/fussl)\
**Post date:** [November 12, 2024, 1:45pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/10 "2024-11-12T13:45:13Z")

</div>

I’d like to share this ` /zynthian/zynthian-my-data/presets/inet_radio/presets.json`

[presets.json](https://discourse.zynthian.org/uploads/short-url/l4O2mwhfPjkKBA2oNnPd3KPl5YZ.json) (5.3 KB)

It lists all streams of the DASDING and of SomaFM.

---

<div class="post-metadata">

**Author:** ![Klangschmied](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/klangschmied/32/9207_2.png) [@Klangschmied](https://discourse.zynthian.org/u/Klangschmied)\
**Post date:** [November 12, 2024, 5:09pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/11 "2024-11-12T17:09:01Z")

</div>

Super, vielen Dank, many thanks, works well !

---

<div class="post-metadata">

**Author:** ![fussl](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@fussl](https://discourse.zynthian.org/u/fussl)\
**Post date:** [November 12, 2024, 11:11pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/12 "2024-11-12T23:11:36Z")

</div>

This ` /zynthian/zynthian-my-data/presets/inet_radio/presets.json`  
[presets.json](https://discourse.zynthian.org/uploads/short-url/mYwEfL9z3ZaCnjgcWYy743tPpVy.json) (5.7 KB)  
contains all of above plus an additional entry from Ibiza in Music 😋 and the abf bouquet from Paris.

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [November 13, 2024, 7:03am UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/13 "2024-11-13T07:03:23Z")

</div>

We are going to start requiring a tool to handle all the stations…

A classic success problem.

---

<div class="post-metadata">

**Author:** ![Klangschmied](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/klangschmied/32/9207_2.png) [@Klangschmied](https://discourse.zynthian.org/u/Klangschmied)\
**Post date:** [November 13, 2024, 10:59am UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/14 "2024-11-13T10:59:19Z")

</div>

@fussl Great. I did not get the “apostrophe”- channel, stream unavailable, with the desktop it works. Any thoughts?

---

<div class="post-metadata">

**Author:** ![fussl](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@fussl](https://discourse.zynthian.org/u/fussl)\
**Post date:** [November 13, 2024, 12:52pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/15 "2024-11-13T12:52:37Z")

</div>

Sometimes a stream does not start immediately, because the server has no free connection, sometimes this has other reasons.  
The solution:  
Adjust `wait for stream` to a higher value (15) and twist `stream` so a new connect is tried.  
This makes streams work, sometimes needs more than one try with overcrowded stream servers.  
Sometimes, a stream has dropouts, which is often true for abf.radio. This is an uplink problem at the station site and unsolvable from our side.

---

<div class="post-metadata">

**Author:** ![BrainStormer](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@BrainStormer](https://discourse.zynthian.org/u/BrainStormer)\
**Post date:** [November 13, 2024, 9:14pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/16 "2024-11-13T21:14:17Z")

</div>

Should check out [https://www.radio-browser.info/](https://www.radio-browser.info/)

---

<div class="post-metadata">

**Author:** ![fussl](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@fussl](https://discourse.zynthian.org/u/fussl)\
**Post date:** [November 20, 2024, 3:17pm UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/17 "2024-11-20T15:17:17Z")

</div>

This `/zynthian/zynthian-my-data/presets/inet_radio/presets.json`  
[presets.json](https://discourse.zynthian.org/uploads/short-url/aWMuWE4akATWMlBRNsrre3Eyvok.json) (9.5 KB)  
contains the recent default stations plus the addons from above.  
Unfortunately, when uploading a new file, the default station entries are lost, so I combined this one.

---

<div class="post-metadata">

**Author:** ![fussl](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@fussl](https://discourse.zynthian.org/u/fussl)\
**Post date:** [March 19, 2025, 1:15am UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/18 "2025-03-19T01:15:45Z")

</div>

Here a bit more recent presets list, now easy to upload via Webconf-\>System-\>File Browser -\>my-data-\>presets-\>inet\_radio  
There are new added Synthesizers Greatest Radio, Cafe d M, and some popular stations from Germany, some broken links repaired.  
Unfortunately, the new Vangelis Internet-Radio seems to be broken, so use the Oram radio instead.  
[presets.json](https://discourse.zynthian.org/uploads/short-url/jGJjsT32sW7NNFfPPxODORuQCpH.json) (9.8 KB)

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [March 19, 2025, 9:09am UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/19 "2025-03-19T09:09:43Z")

</div>

> [@fussl](#):
>
> the new Vangelis Internet-Radio seems to be broken

There is no ticket in the issue tracker for this. I am aware because of the comments [against a recent git commit](https://github.com/zynthian/zynthian-ui/commit/029ffede53235b069e623ae0925c80965c92c862#commitcomment-153774020). it may help if someone raises a ticket.

The problem is that mplayer fails to play aac streams. It takes a long time to connect / cache then fails, unable to seek backwards in stream.

I am considering moving to vlc as the player which works quite well with all the streams and media I have tested so far. (It can’t be run as root which adds a small complexity but I have found a work-around.) It will take me a little time to refactor the engine to use vlc…

---

<div class="post-metadata">

**Author:** ![fussl](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@fussl](https://discourse.zynthian.org/u/fussl)\
**Post date:** [March 19, 2025, 10:13am UTC](https://discourse.zynthian.org/t/internetradio-customize/9501/20 "2025-03-19T10:13:08Z")

</div>

Just copying the Oram inet\_radio.py over the Vangelis inet\_radio.py restores functionality. The only difference: The stream information is no longer shown with green text on the black area, but everything else just works. Some streams/servers need the setting `wait for stream` set to 14 or 15 and restarted, that’s all, then every stream works.

[Next page](https://discourse.zynthian.org/t/internetradio-customize/9501.md?page=2)
