From 3a4d974a8918a3d8be262aaa631d25b8cb6221c5 Mon Sep 17 00:00:00 2001 From: robert Date: Mon, 15 Feb 2021 23:31:59 +0100 Subject: [PATCH] add time output --- mqtt_publish_temp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mqtt_publish_temp.py b/mqtt_publish_temp.py index 3047298..a003889 100644 --- a/mqtt_publish_temp.py +++ b/mqtt_publish_temp.py @@ -45,6 +45,7 @@ while True: #Output format: DD/MM/YYYY H:M:S dt_string = now.strftime("%d-%m-%Y %H:%M:%S") + print(dt_string) # Get Temperature from DHT _, temperature = Adafruit_DHT.read_retry(DHT_SENSOR, DHT_PIN)