Esp-radio icon indicating copy to clipboard operation
Esp-radio copied to clipboard

Do not auto start radio after mp3 playback

Open nygma2004 opened this issue 4 years ago • 5 comments

Hi Edzelf,

First of all great work and thank you for sharing this. I am using your sketch as an mp3 player, not as a internet radio. So I use the option to play a URL. And it works great. But when it is done, the radio is re-started that I don't want.

What would be the best way of avoiding that?

Thanks, Csongor

nygma2004 avatar Apr 23 '20 11:04 nygma2004

And what would you do after the playing the URL?

Edzelf avatar Apr 23 '20 12:04 Edzelf

I want to use this as a simple Google Home device, I will generate some mp3-s on my server using text-to-speed and send the URL for this device to play the speech. After that I just want it to stop and do not do anything. What I have done as a workaround is set for first station to 127.0.0.1 and deleted all other presets. So if fails to load preset 0 and stops doing anything.

nygma2004 avatar Apr 23 '20 13:04 nygma2004

That's a good solution. You may also change the software for a unlimited time-out on no data.

Edzelf avatar Apr 23 '20 15:04 Edzelf

Can you help me where do I find that?

nygma2004 avatar Apr 23 '20 15:04 nygma2004

You may try to comment out line 180:

// ini_block.newpreset++ ; // Yes, try next channel

(untested)

Edzelf avatar Apr 23 '20 15:04 Edzelf