openDsh / dash

Join us on Slack! https://join.slack.com/t/opendsh/shared_invite/zt-la398uly-a6eMH5ttEQhbtE6asVKx4Q
GNU General Public License v3.0
238 stars 69 forks source link

Adding Welle.io for DAB+ reception besides FM Radio #109

Open Tysonpower opened 2 years ago

Tysonpower commented 2 years ago

This is a feature request to add DAB Radio in form of Welle.io to openDash. It should be similar to adding FM Radio, so i hope someone will be able to add welle.io to it. The rtl_sdr connection is already there for the FM Radio, so hopefully it isn't to complicated.

Maybe the Tabs could be FM and DAB instead of Radio.

Sadly i'm not the biggest QT/c++ expert so i sadly can't add Welle.io Support myself, would do that otherwise :)

regards, Manuel

Tysonpower commented 2 years ago

I did some research and after building welleio from source welle-cli can be used to play a single radio station with this command: welle-cli -c <CHANNEL> -p <PROGRAM>

For example: welle-cli -c 11D -p 1LIVE

There is also a webserver that can be used to switch channels etc.: https://github.com/AlbrechtL/welle.io/wiki/Using-the-welle-cli-Web-Interface

EDIT:

To start welleio with the webserver this cmd can be used: welle-cli -c <INITIALCHANNEL> -w <PORT>

after that the webserver also has a api to get all programs in json format: localhost:<PORT>/mux.json

in there each program listed has a mp3 link id, with that a stream of mp3 data can be acccessed (like with the fm software): localhost:<PORT>/mp3/<ID>

rsjudka commented 2 years ago

hey! thanks for looking into this, yeah it does kinda sound how the FM radio works

would you be expecting to be able to use both DAB and FM at the same time? within dash the radio tab you load in a plugin so you would have the choice of what interface you use (DAB or FM, that way you wouldn't need separate tabs for them).

Tysonpower commented 2 years ago

Listening to FM and DAB at the same time makes no sense, so that would be an option. But how could we do the switch nicely in the UI?

I think the FM Radio also needs some favorite buttons to save frequencies so maybe we could add 6 buttons or so for favorites and use them for FM and DAB. With that tho the fancy FM screen you made would be gone :(

DAB also provides images that can be displayed, i don't think this is a must have but it would be a nice addition.

Here a short list what the DAB Ui needs:

I don't know if this is possible in QT, but what about just embedding welle.io into a new Tab? The Welleio UI offers everything we really need:

image

icecube45 commented 2 years ago

If you just want to embed welle.io in a tab, the apps tab provides that functionality already, with the "app" plugin

Tysonpower commented 2 years ago

If you just want to embed welle.io in a tab, the apps tab provides that functionality already, with the "app" plugin

Thx for the tip, will build a quick plugin for that then, looks not to complicated. But a native UI would be a lot nice of course :)

icecube45 commented 2 years ago

image To show you what I mean

Tysonpower commented 2 years ago

image To show you what I mean

i just noticed that it is a complete app launcher lol...sometimes i'm blind :)

Tysonpower commented 2 years ago

i made a copy of the app launcher and changed it a bit to make a simple welle.io launcher. It's not great, but it works. If wanted i can make a pull request for that later, still a native dab receiver would be nicer in the radio tab or so.

image