timolex / Radiodawg

Radiodawg Volumio webradio watchdog
MIT License
1 stars 1 forks source link

consider webradio hang despite internet connection #3

Open jo-me opened 3 years ago

jo-me commented 3 years ago

Sometimes the webradio hangs or drops out despite an internet connection. Volumio/mpd doesnt do a very good job at detecting this unfortunately. So it will sit there as if everything is still working.

I'd suggest implementing a similar logic as mpd-watchdog and check if the stream is still progressing. the "seek" attribute in volumio status might be a good indicator. Not sure if the attribute is reliably mirroring what MPD is doing, though.

timolex commented 3 years ago

Thanks for the hint on the "seek" attribute! I am aware of this issue, but prefer to postpone it to a later occasion, since with your average MP3 256 kbit/s webradio I didn't yet notice regular stream hangs. I guess an alternative, but probably less elegant solution would be to ping the actual webradio URI instead of the default DNS, I might experiment with this in the future.