Announcement

Collapse
No announcement yet.

Applying cal to virtual temperature readings

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

    Applying cal to virtual temperature readings

    Michael,

    I am using mcsTemperature to log and graph several virtual devices as well as 1-wire temperature sensors. The readings of one of the virtual temperature sensors is off quite a bit so I tried to apply a cal/avg factor. It has no effect.

    If I apply the same cal to a 1-wire sensor it works as expected. Is there a way to apply a cal to the value of virtual sensors?

    Thanks,
    Ken

    #2
    The calibration is applied at the time the virtual device is populated. Since mcsTemperature is not the one populating the devices then it does not have the opportunity. What might be possible is to use an event callback when the virtual device is changed. Callbacks exist for DeviceString and DeviceStatus. One does not exist for DeviceValue. What property are you populating. I suspect it is the DeviceString, but I want to make certain.

    Comment


      #3
      Jon Ort's ACRF plugin is populating the virtual device. It's reading RFXcom Sensors. I don't off-hand know the answer to your question.

      Comment


        #4
        Just did a quick script and from what I can tell it looks like he populates all three (string, status and value). On second thought - he populates the string and value, then HS uses the string for the status.

        Comment


          #5
          Give 4.47.0 a try. It is posted at the top of the mcsTemperature subforum. It will update the device string based upon the calibration value and then format the string based upon the settings for other devices managed by mcsTemperature.

          I tested under HS1 with a simple script storing data into the device string. The potential exists that it could interfere with Jon's plugin if he expects the devicestring to remain unchanged after he write to it.

          Comment


            #6
            Could you also do me a favor and turn the W800 plugin's detailed debugging on and collect the data associated with a temperature sensor. It should contain the raw data, the processed data, and the resultant temperature reading. I do not have any of these RF sensors and I want to make certain I have the bit order correct so I can support it with xapmcsW800.

            Comment


              #7
              Michael,

              Here is the debug output you wanted.

              3/27/2006 10:07:53 AM~!~AC RF Processor~!~[Rcvr# 1 Type W800] Received RAW Bytes: 00 F0 1C 03 At 115861.46 Span: 0, X10 Translation: 38 C0 00 0F
              3/27/2006 10:07:53 AM~!~AC RF Processor~!~Processing Command from RF: RFXSensor Sensor #0 - Temperature Sensor,Reading, 82.4
              3/27/2006 10:07:53 AM~!~AC RF Processor~!~RFXSensor unit ]65 (Dev#: 0) values updated.

              3/27/2006 10:08:52 AM~!~AC RF Processor~!~[Rcvr# 1 Type W800] Received RAW Bytes: 00 F0 1F 00 At 115920.2 Span: 0, X10 Translation: F8 00 00 0F
              3/27/2006 10:08:52 AM~!~AC RF Processor~!~Processing Command from RF: RFXSensor Sensor #0 - Temperature Sensor,Reading, 87.8
              3/27/2006 10:08:52 AM~!~AC RF Processor~!~RFXSensor unit ]65 (Dev#: 0) values updated.

              3/27/2006 10:10:08 AM~!~AC RF Processor~!~[Rcvr# 1 Type W800] Received RAW Bytes: 68 98 05 83 At 115996.56 Span: 0, X10 Translation: A0 C1 16 19
              3/27/2006 10:10:08 AM~!~AC RF Processor~!~Processing Command from RF: RFXSensor Sensor #104 - Temperature Sensor,Reading, 41.9
              3/27/2006 10:10:08 AM~!~AC RF Processor~!~RFXSensor unit ]64 (Dev#: 104) values updated.

              I haven't had a chance to update to the 4.47.0 version, but I will today.

              Thanks,
              Ken

              Comment

              Working...
              X