Closed fh19 closed 7 years ago
Looks like the playlist feature is broken. Could you try the .ini file with these presets:
preset = 6 # Start with preset 6 preset_00 = 109.206.96.34:8100 # 0 - NAXI LOVE RADIO, Belgrade, Serbia preset_01 = airspectrum.cdnstream1.com:8114/1648_128 # 1 - Easy Hits Florida 128k preset_02 = us2.internet-radio.com:8050 # 2 - CLASSIC ROCK MIA WWW.SHERADIO.COM preset_03 = airspectrum.cdnstream1.com:8000/1261_192 # 3 - Magic Oldies Florida preset_04 = airspectrum.cdnstream1.com:8008/1604_128 # 4 - Magic 60s Florida 60s Classic Rock preset_05 = us1.internet-radio.com:8105 # 5 - Classic Rock Florida - SHE Radio preset_06 = icecast.omroep.nl:80/radio1-bb-mp3 # 6 - Radio 1, NL preset_07 = 205.164.62.15:10032 # 7 - 1.FM - GAIA, 64k preset_08 = skonto.ls.lv:8002/mp3 # 8 - Skonto 128k preset_09 = 94.23.66.155:8106 # 9 - *ILR CHILL and GROOVE
I will try yours and see what the problem is.
Hello,
thanks for the quick reply. Your presets work; if I re-enter even some of my presets, it stucks again. could it be a problem with the m3u-files requested by e.g. SWR3?
Best regards, Falk
Am 14.01.2017 um 22:36 schrieb Ed Smallenburg:
Looks like the playlist feature is broken. Could you try the .ini file with these presets:
Presets
preset = 6 # Start with preset 6 preset_00 = 109.206.96.34:8100 # 0 - NAXI LOVE RADIO, Belgrade, Serbia preset_01 = airspectrum.cdnstream1.com:8114/1648_128 # 1 - Easy Hits Florida 128k preset_02 = us2.internet-radio.com:8050 # 2 - CLASSIC ROCK MIA WWW.SHERADIO.COM preset_03 = airspectrum.cdnstream1.com:8000/1261_192 # 3 - Magic Oldies Florida preset_04 = airspectrum.cdnstream1.com:8008/1604_128 # 4 - Magic 60s Florida 60s Classic Rock preset_05 = us1.internet-radio.com:8105 # 5 - Classic Rock Florida - SHE Radio preset_06 = icecast.omroep.nl:80/radio1-bb-mp3 # 6 - Radio 1, NL preset_07 = 205.164.62.15:10032 # 7 - 1.FM - GAIA, 64k preset_08 = skonto.ls.lv:8002/mp3 # 8 - Skonto 128k preset_09 = 94.23.66.155:8106 # 9 - *ILR CHILL and GROOVE
I will try yours and see what the problem is.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Edzelf/Esp-radio/issues/55#issuecomment-272654935, or mute the thread https://github.com/notifications/unsubscribe-auth/AX9eXW8RAkANWddKUkxjJKQEPqxtlqsIks5rST_FgaJpZM4LjvJu.
I have corrected the bug with m3u-files in the 17-jan-2017 version.
Hi,
thanks again for the quick fix. I've tried it and m3u radio stations work fine. But I got a crash when I call in a web-browser the config page. It seems that it is caused in the function void handleFSf (...); when I modified it like below it worked (moving the addHeader calls inside the last else block), even though I'm not sure about the reason:
//******************************************************************************************
// H A N D L E F S F *
//******************************************************************************************
// Handling of requesting files from the SPIFFS/PROGMEM. Example: /favicon.ico *
//******************************************************************************************
void handleFSf ( AsyncWebServerRequest* request, String filename )
{
String ct ; // Content type
AsyncWebServerResponse *response ; // For extra headers
dbgprint ( "FileRequest received %s", filename.c_str() ) ;
ct = getContentType ( filename ) ; // Get content type
if ( ct == "" ) // Empty is illegal
{
request->send ( 404, "text/plain", "File not found" ) ;
}
else
{
if ( filename.indexOf ( "index.html" ) >= 0 ) // Index page is in PROGMEM
{
response = request->beginResponse_P ( 200, ct, index_html ) ;
}
else if ( filename.indexOf ( "radio.css" ) >= 0 ) // CSS file is in PROGMEM
{
response = request->beginResponse_P ( 200, ct, radio_css ) ;
}
else if ( filename.indexOf ( "config.html" ) >= 0 ) // Confige page is in PROGMEM
{
response = request->beginResponse_P ( 200, ct, config_html ) ;
}
else if ( filename.indexOf ( "about.html" ) >= 0 ) // About page is in PROGMEM
{
response = request->beginResponse_P ( 200, ct, about_html ) ;
}
else if ( filename.indexOf ( "favicon.ico" ) >= 0 ) // Favicon icon is in PROGMEM
{
response = request->beginResponse_P ( 200, ct, favicon_ico, sizeof ( favicon_ico ) ) ;
}
else
{
response = request->beginResponse ( SPIFFS, filename, ct ) ;
// request->send ( response ) ;
// Add extra headers
response->addHeader ( "Server", NAME ) ;
response->addHeader ( "Cache-Control", "max-age=3600" ) ;
response->addHeader ( "Last-Modified", VERSION ) ;
}
request->send ( response ) ;
dbgprint ( "Response sent" ) ;
}
}
Bug fixed in 17-jan-2017 version.
Hello,
great project; it worked fine with the version from Nov 15, now I updated to the current version (Jan 2) and it does no longer play any radio station. It always tries until it reboots, but never succeeds. Going back to the old version works fine (w/ identical ini-file). What could that be?
Thanks for any help.
Debug-output is: