logo elektroda
logo elektroda
X
logo elektroda

How do I add TOK FM and Radio Pogoda stations to the radio on the ESP32?

baca2003 1758 7
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18514052
    baca2003
    Level 12  
    Hello
    I put together an internet radio on an ESP32, it worked but I'm having trouble adding my stations. I wanted to ask for a consultation and show me what I am doing wrong.

    To add the stations I need:
    char *host[] = { "51.83.212.150"};
    char *path[] = { "/"};
    int port[] = { "443" };

    I found the above data at the link:
    https://ssl.stream.radioagora.pl/tuba10-1.mp3?cache=1583491467_e1_

    I edited via F12/Network (PNG F12 How do I add TOK FM and Radio Pogoda stations to the radio on the ESP32? )

    I also made use of the command console:
    cmdnetstat -n

    Unfortunately after entering data as above silence nothing plays ? What am I doing wrong ?

    I am looking for TOK FM radio and Radio Pogoda
  • ADVERTISEMENT
  • #2 18514191
    n6210
    Level 29  
    and in the path shouldn't there be this "/tuba10-1.mp3" by the way, did you check if this is a PC game? because you have the IP there and http often requires a name in the request.

    Added after 5 [minutes]:

    Only link plays
    https://51.83.212.150/tuba10-1.mp3 ie after SSL
  • ADVERTISEMENT
  • #3 18514613
    baca2003
    Level 12  
    the link I gave works for me without any problem and the one you gave opens but with the description that it lacks a certificate - unsafe site, needs additional confirmation? but both work !!!

    As for the path, I tried it with "tuba10-1.mp3" and it did not work.
    in the original it is like this :
    char *host[4] = {"149.255.59.162", "radiostreaming.ert.gr", "realfm.live24.gr", "secure1.live24.gr"};
    char *path[4] = {"/1","/ert-kosmos","/realfm","/skai1003"};
    int port[4] = {8062,80,80,80};
    and everything works
  • #4 18514685
    n6210
    Level 29  
    The path should be "/tuba10-1.mp3" important is the "/" at the beginning.
  • ADVERTISEMENT
  • #5 18514811
    baca2003
    Level 12  
    Well, unfortunately it doesn't work ?
    I tried
    host: "ssl.stream.radioagora.pl" and "51.83.212.150"
    path: "/tuba10-1.mp3"
    port: "443"
  • #6 18514893
    n6210
    Level 29  
    maybe choose something simpler than https, as this code probably doesn't support encrypted connections, and by the way, what audio formats does your radio support?

    Added after 9 [minutes]:

    here you have without https host: stream3.polskieradio.pl port:8900 path:/

    Added after 43 [seconds]:

    Here's a bunch of it, test it out: http://www.emsoft.ct8.pl/strumienie.php
  • ADVERTISEMENT
  • #8 18542359
    baca2003
    Level 12  
    Thanks for your help, I was able to solve the problem on the following data and the radios I was looking for worked: Radio Pogoda and Tok FM

    char *host[] = {"stream13.radioagora.pl", "lodz.radio.pionier.net.pl", "stream10.radioagora.pl"};
    char *path[] = {"/tuba38-1.mp3", "/pl/tuba10-1.mp3"};
    int port[] = {80, 8000};

Topic summary

The discussion revolves around adding TOK FM and Radio Pogoda stations to an internet radio project using an ESP32 microcontroller. The user initially faced issues with streaming audio, specifically with the host, path, and port settings. Various suggestions were made, including using the correct path format ("/tuba10-1.mp3") and considering non-HTTPS streams due to potential compatibility issues with encrypted connections. Ultimately, the user successfully configured the stations using the following settings: host array with "stream13.radioagora.pl", "lodz.radio.pionier.net.pl", and "stream10.radioagora.pl"; path array with "/tuba38-1.mp3" and "/pl/tuba10-1.mp3"; and port array with 80 and 8000.
Summary generated by the language model.
ADVERTISEMENT