Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Check internet connection alive

  1. #1
    Join Date
    Nov 2003
    Posts
    71

    Default 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.

    Thanks,

    Jesse

  2. #2
    Join Date
    Aug 2003
    Location
    Pacific Northwest
    Posts
    744

    Default

    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.

  3. #3
    Join Date
    Nov 2003
    Posts
    71

    Default

    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.

    Jesse

  4. #4
    Join Date
    Aug 2003
    Location
    Pacific Northwest
    Posts
    744

    Default

    Actually, that batch file approach sounds like the best way to me! :-?

  5. #5
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    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..

  6. #6
    Join Date
    Nov 2003
    Posts
    71

    Default

    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.

    Jesse

  7. #7
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    Hesse, can you post the code you use with this ActiveX object to the luacom thread above?

  8. #8
    Join Date
    Nov 2003
    Posts
    71

    Default

    Mike,

    I wasn't sure which thread you were talking about. I posted it to

    http://www.girder.nl/phpBB2/viewtopic.php?p=31864#31864

    Please move my post it if that isn't the right one.

    Jesse

  9. #9
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    Thanks!

  10. #10
    Join Date
    Mar 2004
    Posts
    181

    Default

    Why dont you call your ISP and get a new modem?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •