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

Do not auto start radio after mp3 playback #187

Open
nygma2004 opened this issue Apr 23, 2020 · 5 comments
Open

Do not auto start radio after mp3 playback #187

nygma2004 opened this issue Apr 23, 2020 · 5 comments

Comments

@nygma2004
Copy link

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

@Edzelf
Copy link
Owner

Edzelf commented Apr 23, 2020

And what would you do after the playing the URL?

@nygma2004
Copy link
Author

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.

@Edzelf
Copy link
Owner

Edzelf commented Apr 23, 2020

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

@nygma2004
Copy link
Author

Can you help me where do I find that?

@Edzelf
Copy link
Owner

Edzelf commented Apr 23, 2020

You may try to comment out line 180:

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

(untested)

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

2 participants