Announcement

Collapse
No announcement yet.

Sensors Web Page Questions

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

  • Sensors Web Page Questions

    Michael:

    I have a question about the operation of the CALC and AVG column in the Sensors web page. The version of the pdf file I have say:

    Each line on the Analog Sensor (x) tabs or Sensors page contains a Cal /Avg box that is available to calibrate any device that contains a sensor serial number (it does not apply to devices that are managed via the virtual interface). The value in the box is added to Temperature sensor reading to calibrate for a bias. The value is used as an averaging filter for other non-counting sensor types. A value of .75 will apply a weight of 75% to prior readings and 25% to the current reading. Values between .99 and .01 are accepted as the filter weight. For counting type sensors such as rain the value is ignored.

    For the CALC value, does that mean that if I need to calibrate a temperature sensor by -1.5 degrees I simply put -1.5 in the CALC column for that device? I tried that and after saving the changes the page refreshed with just a -1 in the CALC box. I waited for the next set of reading from my DS9490 but the data was not changed by the bias in the CALC column.

    For the AVG value, is the explanation in the pdf file correect, specifically: The value is used as an averaging filter for other non-counting sensor types. A value of .75 will apply a weight of 75% to prior readings and 25% to the current reading. Values between .99 and .01 are accepted as the filter weight.

    Have I missed something on one of the setup pages to get it to use the CALC value?

    Thanks for the great support on this plug-in.

  • #2
    I do not have any external IO where mcsTemperature is installed, but I can set a -1.5 in the Calc box and it persists after a Save. There is a small debug around the callibration logic so if you enable the general debug on the Interface page it will produce some data which I think is in the \Data folder or subfolder. Let it run for a cycle where the sensor being calibrated will be processed. You can provide this file as well as your \Config\mcsTemperature.ini so I can see what you have.

    Comment


    • #3
      Here my config and a debug log file.

      mcsTemperature.zip

      A week back when I was re-installing all my sensors to get charting to work again, see post http://board.homeseer.com/showpost.p...66&postcount=1 , you made the comment about using the setup form instead of the web browser. This ini file is still the one created when I first installed the plug-in ong before you had the browser version. I just wanted to make sure you knew that if the old ini file has other setting that are no longer needed.

      Comment


      • #4
        I see from the debug that your cal values are all zero. Dont know why as when I show them at startup init the ones of 2 and 5 where shown. I placed the init debug version at http://mcsSprinklers.com/mcsTemperature6223.zip. Repeat the test again with this version. I also had no problem changing from the Sensor browser page the Cal value of 2 to -1.5.

        Comment


        • #5
          Here's the debug log and my ini file with your special version of mcsTemperature running.

          I was able this time to save a CALC window from -2 to -1.5.

          mcsTemp-1-17-2011.zip

          Thanks

          Comment


          • #6
            I took your .ini and downloaded the zip from the link and ran through startup. I set the general debug setting from the Interface Page and restarted HS. I obtained the following at the start of the debug file which is where mcsTemperature is reading the data from the .ini file. In my case I get the two lines such as "InitCal(0) DC\9=-5 for -5". In yours immediately below they did not show up. At the end I posted the segment of code that produces this additional output. If you have a house code "-" then this could cause issues because it will be seen by mcsTemperature as a device code and not as a numeric bias. Take a look at your setup with respect to this and make certain you have the 6.2.23 version of the file. If you do use house code "-" then there are two workarounds that come to mind. One is to change the house code to something else. The other is to define the offset you want in another virtual device and then enter that virtual device code in mcsTemperature.

            Code:
            1/17/2011 7:35:56 PM 70556.84 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \1
            1/17/2011 7:35:56 PM 70556.84 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \2
            1/17/2011 7:35:56 PM 70556.86 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \3
            1/17/2011 7:35:56 PM 70556.86 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \4
            1/17/2011 7:35:56 PM 70556.88 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \5
            1/17/2011 7:35:56 PM 70556.89 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \6
            1/17/2011 7:35:56 PM 70556.91 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \7
            1/17/2011 7:35:56 PM 70556.91 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \8
            1/17/2011 7:35:56 PM 70556.92 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \9
            1/17/2011 7:35:56 PM 70556.92 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \10
            1/17/2011 7:35:56 PM 70556.94 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \11
            1/17/2011 7:35:56 PM 70556.95 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \12
            1/17/2011 7:35:56 PM 70556.95 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \13
            1/17/2011 7:35:56 PM 70556.97 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \14
            1/17/2011 7:35:56 PM 70556.97 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=8, Index=0, DC= \37
            1/17/2011 7:35:56 PM 70556.98 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=9, Index=0, DC= \39
            1/17/2011 7:35:56 PM 70556.98 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=6, Index=0, DC= \65
            1/17/2011 7:35:56 PM 70557 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=9, Index=0, DC= \66
            1/17/2011 7:35:56 PM 70557 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \67
            1/17/2011 7:35:57 PM 70557.02 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \68
            1/17/2011 7:35:57 PM 70557.02 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \69
            1/17/2011 7:35:57 PM 70557.03 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \70
            1/17/2011 7:35:57 PM 70557.03 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \71
            1/17/2011 7:35:57 PM 70557.05 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \72
            1/17/2011 7:35:57 PM 70557.05 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=6, Index=0, DC= \73
            1/17/2011 7:35:57 PM 70557.06 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=9, Index=0, DC= \74
            1/17/2011 7:35:57 PM 70557.06 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \75
            1/17/2011 7:35:57 PM 70557.06 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \76
            1/17/2011 7:35:57 PM 70557.08 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \77
            1/17/2011 7:35:57 PM 70557.08 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=6, Index=0, DC= \78
            1/17/2011 7:35:57 PM 70557.16 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=9, Index=0, DC= \79
            1/17/2011 7:35:57 PM 70557.17 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \80
            1/17/2011 7:35:57 PM 70557.17 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \81
            1/17/2011 7:35:57 PM 70557.19 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \82
            1/17/2011 7:35:57 PM 70557.19 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=11, Index=0, DC= ]1


            Code:
            1/17/2011 6:53:21 PM 68001.09 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \1
            1/17/2011 6:53:21 PM 68001.09 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \2
            1/17/2011 6:53:21 PM 68001.09 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \3
            1/17/2011 6:53:21 PM 68001.09 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \4
            1/17/2011 6:53:21 PM 68001.09 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \5
            1/17/2011 6:53:21 PM 68001.09 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \6
            1/17/2011 6:53:21 PM 68001.09 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \7
            1/17/2011 6:53:21 PM 68001.09 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \8
            1/17/2011 6:53:21 PM 68001.09 | mcsTemperature Debug | InitCal(0) DC\9=-5 for -5
            1/17/2011 6:53:21 PM 68001.09 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \9
            1/17/2011 6:53:21 PM 68001.09 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \10
            1/17/2011 6:53:21 PM 68001.09 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \11
            1/17/2011 6:53:21 PM 68001.11 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \12
            1/17/2011 6:53:21 PM 68001.11 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \13
            1/17/2011 6:53:21 PM 68001.11 | mcsTemperature Debug | InitCal(1) DC\14=-1.5 for -1.5
            1/17/2011 6:53:21 PM 68001.11 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=0, Index=0, DC= \14
            1/17/2011 6:53:21 PM 68001.11 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=8, Index=0, DC= \37
            1/17/2011 6:53:21 PM 68001.11 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=9, Index=0, DC= \39
            1/17/2011 6:53:21 PM 68001.11 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=6, Index=0, DC= \65
            1/17/2011 6:53:21 PM 68001.11 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=9, Index=0, DC= \66
            1/17/2011 6:53:21 PM 68001.11 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \67
            1/17/2011 6:53:21 PM 68001.11 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \68
            1/17/2011 6:53:21 PM 68001.11 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \69
            1/17/2011 6:53:21 PM 68001.11 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \70
            1/17/2011 6:53:21 PM 68001.11 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \71
            1/17/2011 6:53:21 PM 68001.13 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \72
            1/17/2011 6:53:21 PM 68001.13 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=6, Index=0, DC= \73
            1/17/2011 6:53:21 PM 68001.13 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=9, Index=0, DC= \74
            1/17/2011 6:53:21 PM 68001.13 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \75
            1/17/2011 6:53:21 PM 68001.13 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \76
            1/17/2011 6:53:21 PM 68001.13 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \77
            1/17/2011 6:53:21 PM 68001.13 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=6, Index=0, DC= \78
            1/17/2011 6:53:21 PM 68001.13 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=9, Index=0, DC= \79
            1/17/2011 6:53:21 PM 68001.13 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \80
            1/17/2011 6:53:21 PM 68001.13 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \81
            1/17/2011 6:53:21 PM 68001.13 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=20, Index=0, DC= \82
            1/17/2011 6:53:21 PM 68001.13 | mcsTemperature Debug | InitIniVariables Temp05-Device Type=11, Index=0, DC= ]1
            Code:
            5120                        If (hsDeviceExists(Calibration) <> -1) Then
            5130                            BiasValue(Calibrations) = 0
            5140                            BiasDevice(Calibrations) = UCase(DeviceCode)
            5150                            BiasHistory(Calibrations) = CSng(hs.DeviceValue(DeviceCode))
            5160                            BiasAverageValue(Calibrations) = CSng(val(Average))
            5170                            Calibrations = Calibrations + 1
            5180                        ElseIf val(Calibration) <> 0 And IsNumeric(Calibration) Then
            5190                            BiasValue(Calibrations) = CSng(val(Calibration))
            5200                            BiasDevice(Calibrations) = UCase(DeviceCode)
            5210                            BiasHistory(Calibrations) = CSng(hs.DeviceValue(DeviceCode))
            5220                            BiasAverageValue(Calibrations) = CSng(val(Average))
                                              If DebugLog Then
                                                   hsWritelog PLUGIN_DEBUG, "InitCal(" & CStr(Calibrations) & ") DC" & "" & BiasDevice(Calibrations) & "=" & CStr(BiasValue(Calibrations)) & " for " & Calibration
                                               End If
            5230                            Calibrations = Calibrations + 1

            Comment


            • #7
              I do indeed have a few devices with the "-" house code. I'll change them to something else tonight and let you know if that fixes everything.

              Thanks for your time

              Comment


              • #8
                The non-alpha house codes are associated with a plugin so to change them the plugin needs to be cognizant. Sometimes the plugin author stores the device code in a config file such as an .ini, but more importantly the plugin to house code relationship is maintained in the devices .Interface property. I developed a utility that allows editing of this and a few other related properties. It is InterfaceManager and I think a copy is on a sticky near the top of my ADIOcelot plugin forum.

                Another easier approach is for mcsTemperature to be updated to exclude "-" as a house code that can be used as a Bias virtual device. I did this at http://mcsSprinklers.com/mcsTemperature6224.zip

                Comment


                • #9
                  Michael:

                  The devices that I was using the "-" house codes were my own virtual devices so it was very easy to change them and there was only three of them. After I did that my bias values are indeed working.

                  I will go ahead and install your last version since that should fix the problem of my using a "-" house code.

                  Thanks for your assistance.

                  Comment

                  Working...
                  X