Your apps are great, however Web pinger doesn't quite do what I need.
Would it be possible to add a setting to the child app that inverts the switching and adds a delay before restoring the switch state. i.e If the website isn't available then turn off a switch, wait for x number of seconds then turn the switch back on?
First of all, thank you or such an awesome app !
It works great to ping websites such as https://google.com/, but when I try to ping a LAN device connect over WiFi, like 192.168.X.XXX (which pings well from PC), the log says "Request failed to 192.168.X.XXX"...
Is there any way to ping LAN devices ? Maybe I am missing something..
PS : it's to be able to reboot my router independently from my internet box if the router's WiFi fails.
Hi Bryan
I'm testing Web Pinger here and it looks amazing except because I can't adjust the time between pings. I checked the code and it looks it pings every 5, 10, 15, 30 and 59min (lines 93 and 210 drove me to think that. I'm sorry I don't know groovy yet).
Is there a way to change those times? the condition from line code 210-214 makes me think is not trivial.
Those times are too long for me...I would like to check internet connection every 30sec at most.
Thanks you in advance for your time on this and for this great app
Thanks Bryan
I just installed it but I'm getting false positives from the app.
I don't know if the cause is my ISP gives me www access through a captive portal.
I made some test using MS-DOS console and while I am not logged I can't get a ping from the URL and when I get logged I got ping (as expected)... but I realize that when I'm not logged and I make ping I can see the IP address of each website so I guess my ISP is actually denying me acces to the gateway but not to its DNS.
I saw in the code these lines and I understand here the code actually check if the URL is valid (is not pinging actually), am I right? (just to learn my friend I'm not trying to critizy )
If this is the case then the app actually check for a valid URL but not necessarily pinging.
Any solution for my case?
try {
httpGet(reqParams) { resp ->
if(logEnable) log.debug "In Poll - Response was ${resp.status}"
if (resp.status == 200) {
if (state.downHost == "true") {
if(switches) turnOffHandler()
if(switches2) turnOnHandler()
if(logEnable) log.debug "Successful response from ${state.website}"
} else {
if(switches) turnOffHandler()
if(switches2) turnOnHandler()
if(logEnable) log.debug "Successful response from ${state.website}"
}
} else {
if (state.downHost == "false") {
if (state.pollVerify == "false") {
runIn(60*threshold, pollVerify)
state.pollVerify = "true"
}
if(logEnable) log.debug "Request failed to ${state.website}, calling pollVerify with a ${threshold} minute threshold"
} else {
if(logEnable) log.debug "pollVerify already called"
}
}
}
LOL... thanks anyway, I know it can be confusing but it is the only way to get internet here .
I guess when your app makes a request to the website my ISP do not block that request, it just dont let me surf the web while I'm not logged in the captive portal.
Do you know any other solution where the app or driver really ping the website or external ip?
I mean an app that evaluated the response time in ms of a ping request response?
Just started using the the web pinger, and testing it.
My intended use: turn off a zigbee plug (router) when internet goes down and back on after 20 seconds.
I have set the URL to monitor to my network Printer so that I can turn it on and off manually and look at the response on the zigbee plug. Ping is set to 1 minute, safety net 0 minute and 20 s to reset plug.
So when I turn off the printer, the zigbee plug does turn off within a minute. But never turns back on.
If anybody can help me, I would greatly appreciate it. I actually bought this hub, and an Ikea zigbee plug just for this fonction.