Announcement

Collapse
No announcement yet.

uptime script

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

    uptime script

    Jon00 -
    So i have the performance monitor running and it is working great.. i noticed here..

    http://forums.homeseer.com/showpost....&postcount=310

    that Pete has an uptime... is that your handy work? i was just on your site and dont know which it is... please let me know.
    Thanks..
    Jeff
    HW - i5 4570T @2.9ghz runs @11w | 8gb ram | 128gb ssd OS - Win10 x64

    HS - HS3 Pro Edition 3.0.0.435

    Plugins - BLRF 2.0.94.0 | Concord 4 3.1.13.10 | HSBuddy 3.9.605.5 | HSTouch Server 3.0.0.68 | RFXCOM 30.0.0.36 | X10 3.0.0.36 | Z-Wave 3.0.1.190

    Hardware - EdgePort/4 DB9 Serial | RFXCOM 433MHz USB Transceiver | Superbus 2000 for Concord 4 | TI103 X-10 Interface | WGL Designs W800 RF | Z-Net Z-Wave Interface

    #2
    No, but it can be easily done:

    Create a virtual device with a unused device code (say x55 as an example).

    Create a recurring event (say every 10 mins) to run the following script statement:

    &hs.setdevicestring "x55","<img src='images/Homeseer/clock.gif'> Uptime: " & hs.SystemUptime ,true

    Job done!
    Jon

    Comment


      #3
      The original Max Uptime script was written by MeSteve (Steve Meyers).
      I don't have the original, but it may be in the scripts library.
      I've converted it to VB.Net and made some enhancements for my own use: Current Uptime, Previous Uptime, Max Unfaulted Uptime, Max Faulted Uptime and Total Mean Uptime. I don't even remember which of these were in the original.
      Attached Files
      Last edited by Wadenut; November 9, 2011, 02:41 PM.
      Real courage is not securing your Wi-Fi network.

      Comment


        #4
        You can always use Jon's device monitor, just add a line to the shutdown and startup scripts, to start / stop / writeout the value to a database / reset, etc.

        --Dan
        Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

        Comment


          #5
          Originally posted by jon00 View Post
          No, but it can be easily done:

          Create a virtual device with a unused device code (say x55 as an example).

          Create a recurring event (say every 10 mins) to run the following script statement:

          &hs.setdevicestring "x55","<img src='images/Homeseer/clock.gif'> Uptime: " & hs.SystemUptime ,true

          Job done!
          thank you as usual! nice and easy....
          Attached Files
          HW - i5 4570T @2.9ghz runs @11w | 8gb ram | 128gb ssd OS - Win10 x64

          HS - HS3 Pro Edition 3.0.0.435

          Plugins - BLRF 2.0.94.0 | Concord 4 3.1.13.10 | HSBuddy 3.9.605.5 | HSTouch Server 3.0.0.68 | RFXCOM 30.0.0.36 | X10 3.0.0.36 | Z-Wave 3.0.1.190

          Hardware - EdgePort/4 DB9 Serial | RFXCOM 433MHz USB Transceiver | Superbus 2000 for Concord 4 | TI103 X-10 Interface | WGL Designs W800 RF | Z-Net Z-Wave Interface

          Comment


            #6
            Originally posted by Wadenut View Post
            The original Max Uptime script was written by MeSteve (Steve Meyers).
            yeah i thought it was Jon00 as you can see in Pete's screen.. it is at the top of the list for Jon00 perf mon...
            HW - i5 4570T @2.9ghz runs @11w | 8gb ram | 128gb ssd OS - Win10 x64

            HS - HS3 Pro Edition 3.0.0.435

            Plugins - BLRF 2.0.94.0 | Concord 4 3.1.13.10 | HSBuddy 3.9.605.5 | HSTouch Server 3.0.0.68 | RFXCOM 30.0.0.36 | X10 3.0.0.36 | Z-Wave 3.0.1.190

            Hardware - EdgePort/4 DB9 Serial | RFXCOM 433MHz USB Transceiver | Superbus 2000 for Concord 4 | TI103 X-10 Interface | WGL Designs W800 RF | Z-Net Z-Wave Interface

            Comment


              #7
              Originally posted by TeleFragger View Post
              yeah i thought it was Jon00 as you can see in Pete's screen.. it is at the top of the list for Jon00 perf mon...
              I just added a shot of my devices to the previous post.
              I'll try to contact Steve Meyers and ask permission to post my version. The original, I'm pretty sure was VB script.
              Real courage is not securing your Wi-Fi network.

              Comment


                #8
                It's been two days now since I sent a message to Steve Meyers, the original author of the Maximum Uptime script. There's been no response. His website is down, and it's been two years since he's visited the forum.

                I'm going to clean up a few parts of the script where I departed a bit from the original 'options' section (afterall, I did this for my own use), and repost the VB.Net script in the library in the next day or so -- giving Steve all the credit deserved of course.
                Real courage is not securing your Wi-Fi network.

                Comment


                  #9
                  That's cool wadenut!

                  Please post a link when you are done. IN the mean time, I've implemented Jon00's. Nice and easy.

                  --Dan
                  Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

                  Comment


                    #10
                    Will do.
                    I'll put a note/link here too.

                    Here's a teaser.
                    Converted to VB.Net script.
                    Device: Current running Uptime (original script has this)
                    Device: Previous Uptime (I don't remember if this was original or my addition). Includes a "Faulted" note on device when appropriate. (new)
                    Device: Maximum Unfaulted Uptime (The original only provided Max overall uptime)
                    Device: Maximum Faulted Uptime (ditto)
                    Device: Overall Average Uptime, with options for minimum runtime to record and number of runs to include, or unlimited (new)

                    Records in a separate log file on each restart, the total previous uptime.
                    Come to think of it, I have quite a bit of work to do as a lot of this isn't currently configurable. Better get at it.
                    Last edited by Wadenut; November 11, 2011, 10:35 AM.
                    Real courage is not securing your Wi-Fi network.

                    Comment


                      #11
                      I believe I've cleaned everything up and all options (including those I don't use) will work.

                      The new script can be found here: http://board.homeseer.com/showthread.php?t=151139
                      Real courage is not securing your Wi-Fi network.

                      Comment

                      Working...
                      X