Page 1 of 2
auto reconnect for web radio

Posted:
10 Mar 2016, 23:04
by flega
I have Raspi and use RuneAudio to listen web radios 24/7. Problem is that everystation stop send stream to me from time to time and there is no sound, time counter is counting. Is it possible to make a script which will "listen" audio output and when is null for 5-10 seconds stoped and played again? When I do this manualy - press stop and play - stream goes again and sound is heared. It will be nice when Raspi will do this automatically when it sense there is mute on audio output and restart station.
Re: auto reconnect for web radio

Posted:
10 Mar 2016, 23:35
by hondagx35
Re: auto reconnect for web radio

Posted:
11 Mar 2016, 11:02
by flega
Thank Frank,
for understanding and quick reply. I'm not very familiar with Linux, so can you give me precise step-by-step instructions after you test watchdog?
I think that watchdog is must in next release of RuneAudio, because this is a common problem but nobody knows that there is a solution for it and just stop using webradio, which is most influential media by my opinion.
Re: auto reconnect for web radio

Posted:
11 Mar 2016, 19:51
by PeteB
Re: auto reconnect for web radio

Posted:
11 Mar 2016, 23:36
by flega
thanks all for your time

but I done all you wrote me and get this in systemctrl
kmod-static-nodes.service loaded active exited Create list of required sta
* mpd-watchdog.service loaded failed failed RuneAudio MPD watchdog
mpd.service loaded active running Music Player Daemon
Re: auto reconnect for web radio

Posted:
12 Mar 2016, 04:17
by PeteB
I got it working on the second try, with a couple small changes, documented above. Not sure what I did is 100% correct, but the service does run, and the stream starts to play on its own again.
Re: auto reconnect for web radio

Posted:
13 Mar 2016, 17:59
by flega
I have little knowladge in using Linux so I done like this:
-using WinSCP create file mpd-watchdog.sh in folder /srv/http/command and paste all lines from in that file
- go to file properties and add X to owner, group and others in permissions
- create file called mpd-watchdog.service in /usr/lib/systemd/system, paste text form hondagx35 reply, didn't change properties of file.
- use systemctl enable mpd-watchdog from Putty.
Tried several times to list systemctl and every time mpd-watchdog.service is not activated but it is loaded. Can I look somewhere error log to see why this service is not active?
Re: auto reconnect for web radio

Posted:
13 Mar 2016, 18:58
by PeteB
Re: auto reconnect for web radio

Posted:
13 Mar 2016, 19:26
by flega
Re: auto reconnect for web radio

Posted:
13 Mar 2016, 19:46
by flega