Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Restart Internet Radio Stream
#1
Lightbulb 
Hello

I want to play a internet radio stream 7/24h. Unfortunately for some unknown reason play stops after one day.
Can i somehow detect/monitor when the radio stops playing and then restart?

Alternately can i start a radio stream by cronjob once a day? What would be the command for such operation?

Appreciate any hint 

-Felix
Reply
#2
Go to the Radio page in the library and click the settings cog, turn on the monitor feature. Then edit the station you want to monitor (three dots on the station icon) and set monitor to "yes". That should catch when the stream stops and automatically restart it.
----------------
Robert
Reply
#3
(01-31-2025, 11:37 AM)the_bertrum Wrote: Go to the Radio page in the library and click the settings cog, turn on the monitor feature.  Then edit the station you want to monitor (three dots on the station icon) and set monitor to "yes".  That should catch when the stream stops and automatically restart it.

Great! I will try this. (problem solved when it now plays for more than 24h Smile)
Thank You!

-Felix
Reply
#4
Unfortunately the stream still stops after several hours.
Any other ideas to keep a radio stream running all the time?
Reply
#5
Examine the MPD log around the time the stream stops to see if there are any errors or warnings. The builtin stream monitor only checks for a particular series of buffer underruns (xrun) in the log.

moodeutl --mpdlog
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
(Yesterday, 04:25 PM)Tim Curtis Wrote: Examine the MPD log around the time the stream stops to see if there are any errors or warnings. The builtin stream monitor only checks for a particular series of buffer underruns (xrun) in the log.

moodeutl --mpdlog

Thanks, will check

BTW: just seen, that the monitoring option needs to be enabled on each station separately. In my current station this was not the case, does this mean, that the buffer underun detection was not working?
Reply
#7
(Yesterday, 04:34 PM)felix1024 Wrote:
(Yesterday, 04:25 PM)Tim Curtis Wrote: Examine the MPD log around the time the stream stops to see if there are any errors or warnings. The builtin stream monitor only checks for a particular series of buffer underruns (xrun) in the log.

moodeutl --mpdlog

Thanks, will check

BTW: just seen, that the monitoring option needs to be enabled on each station separately. In my current station this was not the case, does this mean, that the buffer underun detection was not working?

Correct. Not working unless enabled for the specific station.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: