February 28th, 2004, 11:06 PM
Check internet connection alive
Calling all girder gurus. I have a few questions that maybe someone has an answer to.
I want to be able to have Girder check to see if my internet connection is currently alive ever so often. If not, then trigger an event.
My problem is my cable modem dies every so often (~1-2 times per day) and the only solution I have come up with is a power cycle. What I plan to do it control an X-10 device to cycle the power to the modem.
If someone could point me in the right direction to head with checking the internet connection, I'd appreciate it. Or if you have a better idea, I'm all ears.
Then I'll have to figure out timers too.
February 29th, 2004, 06:27 PM
I doubt know of any direct way of doing this with Girder. If a certain window always pops up when the connection is lost, you can have Girder look for this window, and if it exists, re-establish the connection somehow.
February 29th, 2004, 06:36 PM
No, there's no windows. I could do it from dos with a batch file and send an event back to girder with a payload of "1" or "0" if a ping is successful (or something to that effect). I just wanted to see if there was a better way to do it.
I'll work on my batch file for now. Hopefully someone has a better solution.
February 29th, 2004, 06:57 PM
Actually, that batch file approach sounds like the best way to me! :-?
February 29th, 2004, 07:02 PM
You might also see if you can do it using Windows Management and Instrumentation. I am quite sure I have seen a way to do this but I haven't looked at it a long time. See the luacom thread for starters..
February 29th, 2004, 07:51 PM
I found an even better solution, at least for me. I found this little ActiveX program called DSPinger written by one of the CoolMon guys (http://coolmon.arsware.org/extension...sion.php?id=30).
It allows me to create a COM object that returns a 0 if I can ping the site specified. Its exactly what I wanted and all within girder.
Thanks for your help guys. If you come up with a better way this is already in Windows (which I'm sure there is), let me know.
February 29th, 2004, 10:13 PM
Hesse, can you post the code you use with this ActiveX object to the luacom thread above?
February 29th, 2004, 11:10 PM
I wasn't sure which thread you were talking about. I posted it to
Please move my post it if that isn't the right one.
February 29th, 2004, 11:12 PM
March 23rd, 2004, 08:50 AM
Why dont you call your ISP and get a new modem?