padelt / temper-python

libusb/PyUSB-based driver to read TEMPer USB HID devices (USB ID 0c45:7401) and serve as a NetSNMP passpersist module
Other
182 stars 76 forks source link

Added support for TEMPERHUM1V1.3 #93

Closed davet2001 closed 4 years ago

davet2001 commented 5 years ago

Added new sensor support and improved debug output.

padelt commented 4 years ago

Just realized that other changes made yours conflicting. If you can please rebased the changes so I can merge them. If I need to do it it might take some time. ;-)

padelt commented 4 years ago

Thanks again @davet2001 ! :-)

arseni-mourzenko commented 4 years ago

An interesting thing is that although @davet2001 used the correct formula %RH = 125 * RH_Code / 65536 - 6 (page 21), the actual value is way off. For instance, it reports 58% when the actual humidity is 50%. By comparison, the old TemperHUM device reports 46%, which isn't particularly correct either.

Therefore, if someone is wondering why the reported humidity is wrong, it's not the problem with the pull request, but with the low quality of the sensor.

Thank you, @davet2001, for the pull request. It saved me a lot of time trying to figure out the values myself.