Announcement

Collapse
No announcement yet.

Average wind calculation

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

    Average wind calculation

    Michael,

    I'm running mcsSprinkler Pro 2.20.4.34 on HS3 and have my own Ambient weather station integrated into HS. Today as the wind has been blowing hard, I noticed my sprinklers were operating to my surprise. So I checked the weather setup and confirmed that my wind speed device is being used and have my do not water wind speed thresholds set for each of my 3 areas. With that the general status, the wind speed is noted which is about +- 9 km/hr. However, the average wind speed is zero. The average wind speed timestamp does get updated, but it's always 0. This is also reflected in that the inhibit on average wind speed is not working. So the question, is how is the average wind speed calculated and can you confirm that this is what is used to inhibit watering?

    Thanks,

    Robert
    HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

    #2
    The wind is computed from the wind data stored in the database. The user entry is for wind level and the number of minutes to average the wind data. I confirmed that it is working for me with status device 63 updated with a non-zero average wind.

    Take a look in your database in the table Wind to see what data is being recorded there.

    Comment


      #3
      Michael,

      All rows are 0 in the Wind table.
      355 Average Wind for 20 Mins Irrigation Sprinklers - 6/25/2021 9:17:01 AM S63 0
      While the wind is calm today, the device is showing wind.
      6.4 (HS)
      S67 Wind Sensor Today 9:20:00 AM
      Robert
      HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

      Comment


        #4
        It shows it is getting the wind from a HS device. It should be polling this device every 5 minutes. Check your setup to assure you have the correct HS device being used. I will look to see if there is any difference in handling HS devices for database storage.

        Comment


          #5
          Thanks... I already confirmed before posting that the proper device was used. I reference the device by the reference ID and not a legacy x-10 code. Could this be the issue? Aside from in the weather sensor setup page, is there anywhere else this is defined?
          HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

          Comment


            #6
            mcsSprinklers was expecting data in the DeviceString. Your device likely has it in the DeviceValue. I updated to use DeviceValue if DeviceString is blank. http://mcsSprinklers.com/MCSSPRINKLERS_22141.zip. Unzip to replace mcsSprinklers_2009.dll in location where it is currrently installed. Coulud be in \bin\mcsSprinklers or in HS folder.

            Comment


              #7
              Thanks Michael. Yes, in looking at the advance tab of the device string is blank as you suspected. I'll update the dll when I get home. I'm sure that'll do it.
              HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

              Comment


                #8
                Hi Michael,

                I am not seeing any wind speed data persisted in the Wind table. Is there something else to check?

                Thanks,

                Robert
                HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

                Comment


                  #9
                  There are two tables that contain wind data. The sensors table persists. The wind table only keeps 24 to 48 hours of data that is typically collected at a higher rate and used for average wind calculation.

                  Comment


                    #10
                    Thanks... though probably not the best sample, here's a snapshot of the sensors table. The wind table are all zeros. I would have expected, particularly now that you mentioned the higher collection rate, that there would be something other than zero in there.
                    77129 2021-07-08 2:59:01 AM 39|28|39|39|39 0 0 8000 1480 1480 0 26 1400 2100 2600 2400 1600 1200 1200 1600 1500 1500 1900 0 0 300 4500 0 OWM 319211712 110800 224300 218300 0
                    77130 2021-07-08 3:59:00 AM 39|39|39|28|28 0 0 7900 1490 1490 0 26 1400 2300 2600 2600 2800 1200 1200 1600 1400 1600 1500 0 100 0 0 0 OWM 319211712 110800 224300 218300 0
                    77131 2021-07-08 4:59:00 AM 39|39|39|28|28 0 0 7500 1510 1510 0 26 1500 2300 2600 2600 2800 1200 1200 1600 1400 1600 1500 0 100 0 0 0 OWM 319211712 110800 224300 218300 0
                    77132 2021-07-08 5:59:00 AM 39|39|39|28|28 0 0 7400 1450 1450 0 26 1500 2300 2600 2600 2800 1200 1200 1600 1400 1600 1500 0 100 0 0 0 OWM 319211712 110800 224300 218300 0
                    77133 2021-07-08 6:59:00 AM 39|39|39|28|28 260 0 7900 1350 1350 0 26 1400 2300 2600 2600 2800 1200 1200 1600 1400 1600 1500 0 100 0 0 184 OWM 319211712 110800 224300 218300 0
                    77134 2021-07-08 7:59:00 AM 39|39|39|28|28 0 0 7800 1380 1380 0 26 1500 2300 2600 2600 2800 1200 1200 1600 1400 1600 1500 0 100 0 0 158 OWM 319211712 110800 224300 218300 0
                    77135 2021-07-08 8:59:00 AM 39|28|32|28|28 290 0 7700 1430 1530 100 26 1500 2300 2700 2600 2800 1300 1200 1400 1400 1600 700 0 0 0 0 169 OWM 319211712 110800 224300 218300 0
                    77136 2021-07-08 9:59:00 AM 39|28|32|28|28 0 0 7400 1510 2110 200 26 1600 2300 2700 2600 2800 1300 1200 1400 1400 1600 700 0 0 0 0 1116 OWM 319211712 110800 224300 218300 0
                    77137 2021-07-08 10:59:00 AM 39|28|32|28|28 210 0 7100 1630 1730 100 26 1700 2300 2700 2600 2800 1300 1200 1400 1400 1600 700 0 0 0 0 1875 OWM 319211712 110800 224300 218300 0
                    77138 2021-07-08 11:25:01 AM 39|28|32|28|28 30 0 7100 1670 1770 100 26 1700 2300 2700 2600 2800 1300 1200 1400 1400 1600 700 0 0 0 0 424 OWM 319211712 110800 224300 218300 0
                    HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

                    Comment


                      #11
                      I see where I extracted Wind from DeviceString and then DeviceValue when string is null, but then did not use the result to populate the Wind table. I fixed this in http://mcsSprinklres.com/MCSSPRINKLERS_22144.zip. The sensor table Wind was being process correctly in version 2.21.4.3. I used a HS device with DeviceValue of 70 for testing. The ET calculation comes from the Sensor table. The Wind restriction comes from the Wind table.

                      The Updater has 2.21.4.3 and the updated DLL is at the link. All you need is the DLL.

                      Click image for larger version  Name:	Capture1.PNG Views:	0 Size:	21.7 KB ID:	1483178

                      Click image for larger version  Name:	Capture2.PNG Views:	0 Size:	14.5 KB ID:	1483179

                      Comment


                        #12
                        Michael,

                        I've tried for a couple of days but can't access this zip file.

                        Robert

                        EDIT: Ok, I just see it now that there was a typo. Got it now.

                        EDIT: I now have data in the Wind table

                        Thank you!
                        HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

                        Comment

                        Working...
                        X