changedetection.io icon indicating copy to clipboard operation
changedetection.io copied to clipboard

[feature] Verify that device is connected to internet before runnings tests.

Open gety9 opened this issue 1 year ago • 2 comments

Version and OS 0.46.04, termux

Is your feature request related to a problem? Please describe. My device wasn't connected to internet and all tests failed (Exception)

Describe the solution you'd like If device is not connected to internet skip the tests

Additional thoughts: -, retry internet connection in smaller interval than watch intervals, cause now if you have tests once in 3 hours, and it failes cause of no internet, it will be retried only in 3 hours

gety9 avatar Oct 11 '24 23:10 gety9

this is too hard, but i think better is like "wait 10 seconds before checking" with some obvious message in the UI?

dgtlmoon avatar Oct 21 '24 15:10 dgtlmoon

@dgtlmoon

this is too hard, but i think better is like "wait 10 seconds before checking" with some obvious message in the UI?

sounds good, only issue is what if device is out of internet for 30 min? It will check every 10 seconds for 30 min? If it's not expensive device / resources wise then let be it, other wise we can try: extend duration with each try - wait 10 seconds, then wait 60 seconds, then wait 3 min, etc

gety9 avatar Oct 25 '24 21:10 gety9