libsoundtouch
libsoundtouch copied to clipboard
Documentation for INTERNET_RADIO
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.
Hi @TimoGo
Good question, I don't know where the numbers come from. I'll do some search.
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
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".
There is already a pull request making changes mentioned above: #33