Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for INTERNET_RADIO #14

Open
TimoGo opened this issue Aug 6, 2017 · 4 comments
Open

Documentation for INTERNET_RADIO #14

TimoGo opened this issue Aug 6, 2017 · 4 comments

Comments

@TimoGo
Copy link

TimoGo commented Aug 6, 2017

Hi,

thank you for this great library, everything works well, only one hint.
Maybe you could state where to find the right numbers for the radio-stations in:
device.play_media(Source.INTERNET_RADIO, '4712') # Studio Brussel
Ive found the numbers on http://vtuner.com/setupapp/guide/asp/BrowseStations/startpage.asp
But I dont know whether this is the primary source.

Best regards
Timo

PS: Maybe the Soundtouch App gives the answer to this. But I dont use it, because of too much spying.

@CharlesBlonde
Copy link
Owner

Hi @TimoGo

Good question, I don't know where the numbers come from. I'll do some search.

@cstraube
Copy link

cstraube commented Jan 3, 2019

Hi,

Thank you very much for this helpful library and the source for radio IDs. I managed to get things going under Windows 10 with Python 3.7.2 and your package using PowerShell.

The connection to my soundtouch device seems to be fine. I used several 'device.*' commands successfully. However, when I try 'device.play_media(Source.INTERNET_RADIO,'ID')' my device says 'Select using API'.

What does that mean? What do I have to do next?

Best,
Christian

@junoslukan
Copy link

One option is to use TuneIn that Bose SoundTouch supports.

For this, I defined TUNEIN = "TUNEIN" in utils.py/Source and STATIONURL = "stationurl" in utils.py/Type.

Then I invoked play_media as such:

device.play_media(source=Source.TUNEIN, location="/v1/playback/station/s00000", source_acc=None, media_type=Type.STATIONURL)

You can find location by looking at the last part of the URL of the radio station at tunein.com. For example, for BBC Radio 1, the TuneIn URL is https://tunein.com/radio/BBC-Radio-1-988-s24939/ , so location would become "/v1/playback/station/s24939".

@junoslukan
Copy link

There is already a pull request making changes mentioned above: #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants