Announcement

Collapse
No announcement yet.

[exe]Guardian Angel Discussion

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

  • JeffCharger
    replied
    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.

    Leave a comment:


  • Bill Brower
    replied
    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!)

    Leave a comment:


  • JeffCharger
    replied
    aren't there situations where you want to run multiple GA's for different processes?

    Leave a comment:


  • Michael McSharry
    replied
    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.

    Leave a comment:


  • JeffCharger
    replied
    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

    Leave a comment:


  • Bill Brower
    replied
    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!)

    Leave a comment:


  • Bill Brower
    replied
    ...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

    Leave a comment:


  • Guest's Avatar
    Guest replied
    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.

    Leave a comment:


  • ldragon99
    replied
    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"

    Leave a comment:


  • Bill Brower
    replied
    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

    Leave a comment:


  • ldragon99
    replied
    How do I get GA to start automaticly when HS Starts?

    I would imagine that I am supposed to put it in my HS startup script, but how do I format that?

    Leave a comment:


  • Bill Brower
    replied
    I am using a CoolMon script to monitor things along with running GA. I guess I need to read the GA manual and set to trip after 300 seconds above 40%.

    6:31:42 AM --- 4 %. High process hspi_ocelot
    6:32:13 AM --- 3 %. High process CoolMon
    6:32:44 AM --- 3 %. High process hspi_ocelot
    6:33:15 AM --- 3 %. High process
    6:33:46 AM --- 5 %. High process HomeSeer
    6:34:17 AM --- 51 %. High process HomeSeer
    6:34:48 AM --- 53 %. High process HomeSeer
    6:35:19 AM --- 53 %. High process HomeSeer
    6:35:50 AM --- 51 %. High process HomeSeer
    6:36:22 AM --- 55 %. High process HomeSeer
    6:36:52 AM --- 52 %. High process HomeSeer
    6:37:23 AM --- 53 %. High process HomeSeer
    6:37:54 AM --- 43 %. High process HomeSeer
    6:38:25 AM --- 50 %. High process HomeSeer
    6:38:56 AM --- 52 %. High process HomeSeer
    6:39:27 AM --- 53 %. High process HomeSeer
    6:39:58 AM --- 51 %. High process HomeSeer
    6:40:29 AM --- 52 %. High process HomeSeer
    6:41:00 AM --- 51 %. High process HomeSeer

    HS 1.6.150 HSP 2.0.146
    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!)
    mcs Guardian Angel Version 1.2 (Works great!)
    NetCallerID Box

    Leave a comment:


  • Michael McSharry
    replied
    I developed GA when I was running dual P3's and I think I had it accumulate the time from both processors, but I dont recall. What would make sense is to treat each cpu independently as if there were two computers with a total of 200% processing capability. I'll have to research the source to see what is actually implemented.

    Leave a comment:


  • Bill Brower
    replied
    The new computer didn't like my 4 port serial card. What was strange is in the task manager, there are two CPUs shown. One of them was pegged (due to the card).

    So, I made HomeSeer peg out, it pegs only 50% of the total CPU.

    I wonder how this will affect Guardian Angel?

    Thanks Michael!

    HS 1.6.150 HSP 2.0.146
    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!)
    mcs Guardian Angel Version 1.2 (Works great!)
    NetCallerID Box

    Leave a comment:


  • Michael McSharry
    replied
    Sorry I forgot to attach. I would put it all together now, but first let us see if some filtering is needed or if the first time it shows is the the trigger.

    If your video streaming is otherwise independent of homeseer then I suggest that it be totally controled independent of homeseer. The fewer dependencies will make it more reliable. If the webcam is started here then it is possible to monitor its status with the Wscript.Exec, its window title as we are starting to do as well have direct termination and restart control.
    Attached Files

    Leave a comment:

Working...
X