officeweather icon indicating copy to clipboard operation
officeweather copied to clipboard

Add Humidity.

Open buliwyf42 opened this issue 3 years ago • 1 comments

Hi, the TFA-Dostmann AIRCO2NTROL Coach CO2 Monitor does show the Humidity on the display. Please add the Humidity to the RDD an to the Webinterface.

This would be great. Thanks.

buliwyf42 avatar Mar 17 '21 08:03 buliwyf42

Sample code how you can read the humidity:

-            if (0x50 in values) and (0x42 in values):
+            if (0x50 in values) and (0x42 in values) and (0x41 in values):
                 co2 = values[0x50]
                 tmp = (values[0x42]/16.0-273.15)
+                humidity = values[0x41]/100

-                sys.stdout.write("CO2: %4i TMP: %3.1f    \r" % (co2, tmp))
+                sys.stdout.write("CO2: %4i ppm TMP: %3.1f C Humidity: %1i%%   \n" % (co2, tmp, humidity))
                 sys.stdout.flush()
-
+

invidian avatar Oct 27 '22 13:10 invidian