From 36dfe0b9c9ceef5f3fc3daf7f24c30e6de6ad00b Mon Sep 17 00:00:00 2001 From: robert Date: Mon, 15 Feb 2021 23:26:13 +0100 Subject: [PATCH] fix --- mqtt_publish_temp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mqtt_publish_temp.py b/mqtt_publish_temp.py index 2593d7f..7a2ac6c 100644 --- a/mqtt_publish_temp.py +++ b/mqtt_publish_temp.py @@ -56,11 +56,11 @@ while True: t_split[1] = t_split[1][:-t_cut] temperature = t_split[0] + "." + t_split[1] - print("temperature after cut: " + temperature) + print("temperature after cut: " + str(temperature)) # Get Humidity from DHT humidity, _ = Adafruit_DHT.read_retry(DHT_SENSOR, DHT_PIN) - print("humidity before cut: " + humidity) + print("humidity before cut: " + str(humidity)) # cut humidity to xx.xx if more then tow digits after "." h_split = humidity.split(".") if len(h_split[1]) > 2: