jsiegenthaler / homebridge-eosstb

A homebridge plugin for the EOS set-top box as used by Sunrise, Telenet, Ziggo, Virgin Media and maybe more in various countries on the Horizon Go (HGO) platform
https://github.com/jsiegenthaler/homebridge-eosstb
32 stars 4 forks source link

Radio stations #45

Closed mhary269 closed 2 years ago

mhary269 commented 3 years ago

Do you plan to be able to choose radio stations? Thank you for your work!

jsiegenthaler commented 3 years ago

Thanks @mhary269, what a very good question!

I just had a look. Radio stations used to be channels just like TV stations. They have now been shifted to an App, and UPC says: "Alle digitalen Radiosender aus dem UPC TV-Angebot und die Premium Audio-Sender von Stingray sind über die Radio App verfügbar." However, I cannot find a Radio App over the menu ... :( If I use voice control, and say "Radio", then all the radio stations open up, showing "Radio: StationName" at the top of the screen.

How are you selecting a radio station on your box?

jsiegenthaler commented 3 years ago

@mhary269 your question about Radio allowed me to identify and fix a bug, thanks! Bug fix: https://github.com/jsiegenthaler/homebridge-eosstb/releases/tag/1.1.11

mhary269 commented 3 years ago

IMG_9658 Here on the right you find a App. IMG_9659 Here ist the app open. IMG_9660 I you choose a station, you find your selection on the top with a number, in this case 210.

jsiegenthaler commented 3 years ago

Danke @mhary269

I have been exploring the commands. I cannot find a direct command to open the radio directly. But I could do it with a key sequence like this: Back Back Back MediaTopMenu Down Left Enter Enter This would start playing the last-played radio station. 3 x Back is to ensure that any open menus are closed. Disadvantage is that you cannot select radio stations from the list... and that I don't know what stations are available...

jimbo-l commented 3 years ago

Rather then hard-coding the commands, what about adding a switch config where a user could configure a set of commands themselves to perform custom actions?

jsiegenthaler commented 3 years ago

Indeed. I thought of that too. I could do custom entries in the channel list. The user could name them as he pleases, and they would execute a key script for each command. Much more robust. BUT: I need to get my head around sequential asynchronous javascript commands.... await/async or promises....

jsiegenthaler commented 3 years ago

Rather then hard-coding the commands, what about adding a switch config where a user could configure a set of commands themselves to perform custom actions?

I'm liking this more and more. I have it working on the remote control, complete with delays between key presses. I'll have to add it into the config.schema somewhere.

tooh commented 2 years ago

Hi,

I would like to inform if you found the time to work on this.

Today I received a mail from Ziggo that they will stop with analog radio in March. One of the alternatives they offer is using the Ziggo Next box.

I have my complete radio station selection setup done with your wonderful plugin.

I connected the Ziggo Next with my Harman Kardon AVR and now have the digital radio stations working.

I hope your plugin can help me again to optimize my workflow.

jsiegenthaler commented 2 years ago

Hi @tooh. Good question. I have added a framework which will assist with adding flexibility to my plugin. Trying to close off some other issues at the moment. Keep watching.... I will try and work on radio soon...

jsiegenthaler commented 2 years ago

I'd need some help to do this, and I have other issues right now, so closing this for the moment