• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Wrong calculation of humidity

    Scheduled Pinned Locked Moved Official API - Evok
    6 Posts 2 Posters 3.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bsc101
      last edited by

      Hi,
      Just found this little issue when playing around with a DS2438 sensor:

      'humidity': (((float(self.value[1]) / (float(self.value[0]) - 0.16)) / 0.0062) / (1.0546 - 0.00216 * float(self.value[2]))),
      

      should be:

      'humidity': ((((float(self.value[1]) / float(self.value[0])) - 0.16) / 0.0062) / (1.0546 - 0.00216 * float(self.value[2]))),
      

      Hope this helps!
      Regards,
      Boris

      1 Reply Last reply
      Reply Quote 0
      • T
        TomasKnot
        last edited by TomasKnot

        Thanks! We got the calculation from a datasheet of some sort, so we didn't think there would be an error in operator precedence. It's fairly obvious in hindsight! We'll put it in the next update soon.

        Regards,
        Tomas

        B 1 Reply Last reply
        Reply Quote 0
        • B
          bsc101 @TomasKnot
          last edited by

          @TomasKnot

          Hi Tomas, any chance to get this fixed? Seems that I am the only one on planet earth interested in correct humidity values... :wink:
          Thank you very much in advance!

          Boris

          1 Reply Last reply
          Reply Quote 0
          • T
            TomasKnot
            last edited by

            Ahh, I thought it had been fixed already.

            I'll commit it right away, and create fixed release soon.

            1 Reply Last reply
            Reply Quote 0
            • T
              TomasKnot
              last edited by TomasKnot

              @bsc101
              This should now be fixed in release 2.0.5d

              1 Reply Last reply
              Reply Quote 0
              • B
                bsc101
                last edited by bsc101

                Thank you!

                1 Reply Last reply
                Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post