frankd wrote: > ...The original version of the script restarted the network multiple > times, but failed one time in 24h. However when the radio was > synchronized, the music was interrupted two times (disconnect from > network and reconnect to the network) each time when the wifi was > restarted. > I am currently experimenting with several parameters (only 3 failed > pings with 1 second time gap instead of 6 pings with 2 seconds time gap > to trigger the restart, but allowing 8 seconds instead of 5 seconds for > the restart. > So far the adapted parameter seem to help, but if somebody develops a > plugin, these parameters need to be adjustable in the plugin (as well as > hardcoding a gateway like I did).
Thank's for digging into this. What happened after the failure, did you have to reboot? How long was the music interruption? On what service? We sometimes notice a couple of second interruptions here, but have experienced that for many years. A user PMd me (last month) and noted that there were two (v 0.6.3) bugs on lines 515 & 584 when using -x (no TCPLOG). I replied: > Oh, dear. That -x is supposed to clear the TCPLOG variable, but the > conditionals on line 515 and 584 don't work: > if [[ -n TCPLOG ]] ; then > should be > if [[ -n "$TCPLOG" ]] ; then > like on line 252. Sorry for the bug and thanks for the bug report. A new version 0.6.4 (not finished) has these fixed in two places. You should fix yours (to 0.6.3.1), it might improve your results significantly. Before uploading a new version, I am wondering if I should add new command line switches to assign values to variables which would replace the three constants you mentioned: 'Seconds between Tests', 'Failure Limit', and 'Restart Wait Seconds', or something else. I would like your and others opinions before continuing. Keep in mind any change might add yet new bugs. ------------------------------------------------------------------------ POMdev's Profile: http://forums.slimdevices.com/member.php?userid=70558 View this thread: http://forums.slimdevices.com/showthread.php?t=109953 _______________________________________________ Radio mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/radio
