Announcement

Collapse
No announcement yet.

[exe]Guardian Angel Discussion

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    hs.launch "c:\Program Files\Homeseer\GuardianAngel.exe","homeseer.exe|70|300|resta rt"

    If HomeSeer pegs out for more than 300 seconds, I think this will restart HomeSeer.

    Try it by putting in some looping script and see if it restarts.

    The Guardian Angel readme is under

    C:\Program Files\HomeSeer\doc

    HS 1.6.175 HSP 1.0.71
    Pentium 4 2.6 GHz w/ HT
    512 MB Dual Write RAM
    3 Fujitsu 510 Touch Pads
    Way2Call Hi-Phone USB
    NeoSpeech Kate 16
    Ocelot / SECU-16 / SECU-16I
    mcs Temperature (Works great!)
    NetCallerID Box


    ~Bill

    Comment


      #47
      I know this sound stupid, but for the life of me I can't remember hoe to make the straight up and down lines used in programing, like in voice commands and the Gaurdian Angel script?

      Like between 70 and 300.....
      homeseer.exe|70|300|restart"
      Kirk

      http://cleverhouseautomation.ca
      http://southcoastwebsitedesign.ca

      Comment


        #48
        Pipe? I don’t know what kind of keyboard you are using but try Shift \
        Should be button below Backspace button - it is one with two vertical dots.
        Perhaps I misunderstood your question.

        Comment


          #49
          ...copy and paste off of the post.

          I know, brain cramps can really suck!

          OUCH!

          HS 1.6.175 HSP 1.0.71
          Pentium 4 2.6 GHz w/ HT
          512 MB Dual Write RAM
          3 Fujitsu 510 Touch Pads
          Way2Call Hi-Phone USB
          NeoSpeech Kate 16
          Ocelot / SECU-16 / SECU-16I
          mcs Temperature (Works great!)
          NetCallerID Box


          ~Bill

          Comment


            #50
            I have opted to run GA from the startup.txt. Now, if I restart HS without a reboot, I have multiple GA running in the Task Manager.

            1) Can anyone think of something I could put into my shutdown.txt script something that would kill a GA process?

            2) MCS - would you consider in a future rev a checking routing that would not launch another instance of GA if one is already running in Windows?


            Between GA, CPU script monitoring and an Ocelot watchdog, I don't need to worry about HS as much as I used to.

            Thanks Michael!

            Bill

            HS 1.6.175 HSP 2.0.154
            Pentium 4 2.6 GHz w/ HT
            512 MB Dual Write RAM
            3 Fujitsu 510 Touch Pads
            Way2Call Hi-Phone USB
            ATTNV Crystal 16
            Ocelot / SECU-16 / SECU-16I
            mcs Temperature (Works great!)
            HS Webcam (Works great!)


            ~Bill

            Comment


              #51
              Michael has written another little gem that should do it for you. Here's a link to the application where you can terminate processes through HS. You can incorporate this into your HS setup. http://ubb.homeseer.com/6/ubb.x?a=tp...3&m=4412992795

              Comment


                #52
                I'll add the self-check to GA. There were some other updates to be made that just have not yet bubbled to the top of the to do list.

                Comment


                  #53
                  aren't there situations where you want to run multiple GA's for different processes?

                  Comment


                    #54
                    I only run one GA.

                    I put this at the end of my shutdown script.

                    q = """"
                    hs.createVar "tGV"
                    exeLocation = hs.getAppPath & "\terminate.exe"
                    parm = "Guardian|tGV"
                    CreateObject("Wscript.Shell").Run q & exeLocation & q & " " & parm, 1, True

                    end sub
                    for x = 1 to 5

                    hs.PlayWavFile "c:\windows\media\Windows XP Start.wav"

                    CreateObject("Wscript.Shell").Run q & exeLocation & q & " " & parm, 1, True

                    hs.waitsecs 2
                    ret_val = hs.getvar("tGV")

                    if ret_val = 0 then ret_string = "Terminate.exe is running and no result yet provided"
                    if ret_val = 1 then ret_string = "Requested program terminated with close message"
                    if ret_val = 2 then ret_string = "Requested program terminated via process termination"
                    if ret_val = 3 then ret_string = "Requested window terminated with close message, but other window that match input criteria are still open"
                    if ret_val = 4 then ret_string = "Requested window terminated via process termination, but other windows that match input criteria are still open"
                    if ret_val = -1 then ret_string = "Requested window not found so no attempt at termination can be performed"
                    if ret_val = -2 then ret_string = "Requested program would not terminate"
                    if ret_val = -3 then ret_string = "No input parameters provided"

                    hs.writelog "Termination status",ret_string

                    if ret_val = -1 or ret_val = 1 or ret_val = 2 then exit sub

                    next

                    HS 1.6.175 HSP 2.0.154
                    Pentium 4 2.6 GHz w/ HT
                    512 MB Dual Write RAM
                    3 Fujitsu 510 Touch Pads
                    Way2Call Hi-Phone USB
                    ATTNV Crystal 16
                    Ocelot / SECU-16 / SECU-16I
                    mcs Temperature (Works great!)
                    HS Webcam (Works great!)


                    ~Bill

                    Comment


                      #55
                      It's a nice little script.

                      I have used GA for a couple of problem routines that I had. I would fire up 2 or 3 of them, each specifically watching an application, with different "actions" depending on the application.

                      It works nicely.

                      Comment

                      Working...
                      X