officeweather
officeweather copied to clipboard
Add Humidity.
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.
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()
-
+