Announcement

Collapse
No announcement yet.

Event Execution Delay Measurement Script discussion

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

    #46
    Updating to updated virtual graphing this morning.

    Greg, so you are removing the assigned delay variable from your script?

    Side note: Noticed yesterday that I lost one Atom based touchscreen power supply. Swapped it out with a hot spare late yesterday. That said; I did have an HSTouch error and it appears to be related to the ancillary speaker client running on the touch screen. While it caused no delays it did log HSTouch errors first thing this morning with first outside events that utilize TTS.

    9/11/2012 6:29:40 AM Error Speaking to HSTouch clients failed. Your HSTouch Server plug-in may need to be updated: Index was outside the bounds of the array
    9/11/2012 6:30:00 AM Error Speaking to HSTouch clients failed. Your HSTouch Server plug-in may need to be updated: Index was outside the bounds of the array.
    9/11/2012 6:31:05 AM Error Speaking to HSTouch clients failed. Your HSTouch Server plug-in may need to be updated: Index was outside the bounds of the array.
    9/11/2012 6:31:20 AM Error Speaking to HSTouch clients failed. Your HSTouch Server plug-in may need to be updated: Index was outside the bounds of the array.
    I was running speaker dot exe V.49 and not most current V.58 of the speaker client. I had previously thought that the speaker client wasn't touching the HSTouch server running on the HS box.
    - Pete

    Auto mator
    Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
    Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
    HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

    HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
    HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

    X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

    Comment


      #47
      Updated VDG at 0745c. Enabled session average. Deleted variable to start new graph.

      How are you doing there Greg weatherwise?

      I see Tropical storm Leslie starting to move in some.
      Attached Files
      Last edited by Pete; September 11, 2012, 08:11 AM.
      - Pete

      Auto mator
      Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
      Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
      HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

      HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
      HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

      X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

      Comment


        #48
        V1.08 is posted.
        No Pete, I havent removed the device, but made it an option as well as the internal call to Jon00VDGraphing.

        You will note that I've changed the file name of the script. Events should be updated accordingly.
        There are also a number of new options. Everything is described in the document included.
        Real courage is not securing your Wi-Fi network.

        Comment


          #49
          Pete: We had the worst of the weather over the weekend. Today is warm and partly cloudy with the wind currently from the SouthWest. A nice day to get off this computer and go outside.
          Real courage is not securing your Wi-Fi network.

          Comment


            #50
            Its like fall here but supposed to be 85 F today. That said though working on outside deck some outside today; sanding some small spots / restaining - still doing electrical in the house.

            Installed your script 0902C; keep the old name for now. Does it matter which one runs first in the event? Jon's VDG / your event execution delay script or vice versa?
            Attached Files
            - Pete

            Auto mator
            Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
            Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
            HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

            HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
            HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

            X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

            Comment


              #51
              LOL.. looks like me and Pete are updating things at the same time.. I did change my event script name :P Im a good boy!!

              Running Jon00s latest VDgraphing and the new delay script.. still looking good here.. and I have been messing with HS most of the day so its holding up well.

              TrOjAn
              Attached Files

              Comment


                #52
                Wadenut:

                Is it possible to force a carridge return after "seconds" in this line of the script?

                Code:
                DVString = cStr(DelayTime) & " seconds  [Delta: " & cStr(Int((DelayTime-LastTime)*1000)/1000) & " Min: " & cStr(DlyMin) & " Max: " & cStr(DlyMax) & "]"
                Its messing up my formatting of the status page

                Thanks, TrOjAn

                Comment


                  #53
                  Originally posted by Pete View Post
                  Its like fall here but supposed to be 85 F today. That said though working on outside deck some outside today; sanding some small spots / restaining - still doing electrical in the house.

                  Installed your script 0902C; keep the old name for now. Does it matter which one runs first in the event? Jon's VDG / your event execution delay script or vice versa?
                  In effect you have three optional configurations.

                  1. Use the script by itself (defining only TrackDV) and optionally call Jon00VDGraphing separately afterward.

                  2. Configure GraphDV within the script (and not TrackDV) and have it update the graph itself with no sepatate call to Jon00VDGraphing necessary. In this case, delete the old graph and tracking device.

                  3. Define Both. This way you can have two separate graphs. One updating each time the script runs (GraphDV) and the other on a delay as before.
                  Real courage is not securing your Wi-Fi network.

                  Comment


                    #54
                    Greg,

                    Being a PITA here. Can you post your script dim statements and your VDG graphing INI section for same said data for two graphs?

                    Mine is currently:

                    ' Configuration
                    Dim TrackDV As String = "Y99" ' Tracking Device. Optional. Virtual device to contain result data. Use an empty string to ignore.
                    Dim GraphDV As String = "Y98" ' Tracking Graph. Optional. If using Jon00VDGraphing, this will record data directly to the defined graph. Use an empty string to ignore.
                    Dim GraphNumber As String = "30" ' Graph Number within Jon00VDGraphing.ini to be used. No effect if GraphDV is not used.
                    Dim TriggerMinute As Double = 1 ' Frequency to run in minutes. Recurring event must have the same frequency, and be referenced to the hour.
                    Dim LogWarning As Double = 10.000 ' Delay in seconds for logged warning. Set =0 to disable
                    Dim LogSamples As Integer = 1 ' Number of delayed samples in excess of any LogWarning level to take action. No effect if Logwarning = 0
                    Dim SpeakWarning As Double = 0 ' Delay in seconds for spoken warning. Set =0 to disable
                    Dim SpeakSamples As Integer = 5 ' Number of delayed samples in excess of SpeakWarning level to take action. No effect if SpeakWarning = 0
                    Dim Reboot As Double = 0 ' Delay in seconds for last resort force system restart. Set = 0 to disable
                    Dim RebootSamples = 5 ' Number of delayed samples in excess of Reboot level to take action. No effect if Reboot = 0
                    Dim SpeakMessage As String = "Homeseer event execution is seriously delayed. Immediate intervention may be required." ' Change this string to suit.
                    ' End Config
                    [Graph1]
                    Housecode=Y98
                    Title=Event Execution Delay
                    TextBeforeValue=
                    TextAfterValue= - 0.062 seconds [Delta: 0.062]
                    Units = Ms
                    BackGroundColor="#5E697A"
                    ImageFile=blue.gif
                    Range1Upper=1999
                    Range1Lower=0
                    Range1ImageFile=Green.gif
                    Range2Upper=4999
                    Range2Lower=1000
                    Range2ImageFile=Yellow.gif
                    Range3Upper=999999
                    Range3Lower=5000
                    Range3ImageFile=Red.gif
                    SampleSize=288
                    Height=20
                    HeightSpacer=2
                    ToolTips=1
                    Offset=0
                    ShowCurrentValue=1
                    ShowLowHighValues=2
                    DelayCount=5
                    DivideValue=1
                    Markerheight=5
                    MarkerDuration=0
                    MarkerImageFile=white.gif
                    MarkerType=1
                    Data=62
                    - Pete

                    Auto mator
                    Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                    Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                    HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                    HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                    HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                    X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                    Comment


                      #55
                      Originally posted by Pete View Post
                      Greg,

                      Being a PITA here. Can you post your script dim statements and your VDG graphing INI section for same said data for two graphs?

                      +1 here.. Im starting to get lost in what Im meant to be running LOL

                      TrOjAn

                      Comment


                        #56
                        Sure:
                        ' Configuration
                        Dim TrackDV As String = "S7" ' Tracking Device. Optional. Virtual device to contain result data. Use an empty string to ignore.
                        Dim GraphDV As String = "S8" ' Tracking Graph. Optional. If using Jon00VDGraphing, this will record data directly to the defined graph. Use an empty string to ignore.
                        Dim GraphNumber As String = "30" ' Graph Number within Jon00VDGraphing.ini to be used. No effect if GraphDV is not used.
                        Dim TriggerMinute As Double = 1 ' Frequency to run in minutes. Recurring event must have the same frequency, and be referenced to the hour.
                        Dim LogWarning As Double = 1.000 ' Delay in seconds for logged warning. Set =0 to disable
                        Dim LogSamples As Integer = 1 ' Number of delayed samples in excess of any LogWarning level to take action. No effect if Logwarning = 0
                        Dim SpeakWarning As Double = 0 ' Delay in seconds for spoken warning. Set =0 to disable
                        Dim SpeakSamples As Integer = 5 ' Number of delayed samples in excess of SpeakWarning level to take action. No effect if SpeakWarning = 0
                        Dim Reboot As Double = 0 ' Delay in seconds for last resort force system restart. Set = 0 to disable
                        Dim RebootSamples = 5 ' Number of delayed samples in excess of Reboot level to take action. No effect if Reboot = 0
                        Dim SpeakMessage As String = "Homeseer event execution is seriously delayed. Immediate intervention may be required." ' Change this string to suit.
                        ' End Config

                        ------------------------
                        This is my original graph. It uses a 5 sample delay to provide 24 hours of data.

                        [Graph3]
                        Housecode=S9
                        Title=Event Execution Delay - Long
                        TextBeforeValue=
                        TextAfterValue=
                        Units = seconds
                        BackGroundColor="#5E697A"
                        ImageFile=blue.gif
                        Range1Upper=999
                        Range1Lower=0
                        Range1ImageFile=Green.gif
                        Range2Upper=2999
                        Range2Lower=1000
                        Range2ImageFile=Yellow.gif
                        Range3Upper=999999
                        Range3Lower=3000
                        Range3ImageFile=Red.gif
                        SampleSize=288
                        Height=20
                        HeightSpacer=4
                        ToolTips=1
                        Offset=0
                        MaxValue=
                        MinValue=
                        ShowCurrentValue=1
                        ShowLowHighValues=1
                        ShowAverageSessionValue=1
                        DelayCount=5
                        DivideValue=1000
                        Markerheight=5
                        MarkerDuration=0
                        MarkerImageFile=white.gif
                        MarkerType=1
                        Data=$DV:S8

                        ----------------------------
                        This is the new graph. No delay.


                        [Graph30]
                        Housecode=S8
                        Title=Event Execution Delay - Immediate
                        TextBeforeValue=
                        TextAfterValue= - 0.076 seconds [Delta: 0.005 Min: 0.053 Max: 0.617]
                        Units = seconds
                        BackGroundColor="#5E697A"
                        ImageFile=blue.gif
                        Range1Upper=999
                        Range1Lower=0
                        Range1ImageFile=Green.gif
                        Range2Upper=4999
                        Range2Lower=1000
                        Range2ImageFile=Yellow.gif
                        Range3Upper=999999
                        Range3Lower=5000
                        Range3ImageFile=Red.gif
                        SampleSize=288
                        Height=20
                        HeightSpacer=4
                        ToolTips=1
                        Offset=0
                        MaxValue=
                        MinValue=
                        ShowCurrentValue=1
                        ShowLowHighValues=2
                        ShowAverageSessionValue=1
                        DelayCount=1
                        DivideValue=1000
                        Markerheight=5
                        MarkerDuration=0
                        MarkerImageFile=white.gif
                        MarkerType=1
                        data=76

                        ------------------------------------
                        This is the result. Keep in mind I'll eventually disable the original device and graph (2nd graph), and go with the new graph with a DelayCount = 5 so I will still have 24 hours there.
                        Attached Files
                        Real courage is not securing your Wi-Fi network.

                        Comment


                          #57
                          And in looking at that I've just noticed a small potential problem if only GraphDV is enabled. Don't panic, it may be nothing. I thought I'd tested this but may have missed it.
                          Real courage is not securing your Wi-Fi network.

                          Comment


                            #58
                            Thank you Greg!

                            Yeah noticed that my graph number is configured graph #1 and have only one ini section in the VDG script set up. I will set up a #2 graph within the INI section of Jon's VDG script INI file.
                            - Pete

                            Auto mator
                            Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                            Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                            HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                            HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                            HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                            X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                            Comment


                              #59
                              The aforementioned bug is fixed with v1.08.01.
                              A description of the bug, and the fix is located in that thread and also in the revision history file included in the ZIP.
                              That's what I get for working with a single cup of morning Java.

                              Unless further bugs are noticed or more functionality is needed (can't imagine this), this should be the final version.
                              Real courage is not securing your Wi-Fi network.

                              Comment


                                #60
                                Installed. Reminded me to make tomorrows java.

                                Shut down and restarted HS. I did rename it the old name as previous version anyways.
                                - Pete

                                Auto mator
                                Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                                Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                                HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                                HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                                HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                                X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                                Comment

                                Working...
                                X