From 69ab6d4c2cd89a065246759f710eecb4be3e71bb Mon Sep 17 00:00:00 2001 From: Pierrick C Date: Sat, 4 Aug 2018 23:04:18 +0200 Subject: [PATCH] Deleted one baaaad little space --- raspberry/python/uart2mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspberry/python/uart2mqtt.py b/raspberry/python/uart2mqtt.py index 77bf8ae..5f28adf 100644 --- a/raspberry/python/uart2mqtt.py +++ b/raspberry/python/uart2mqtt.py @@ -76,7 +76,7 @@ with serial.Serial(uart_name, uart_baud_rate, timeout=2) as uart: # compact JSON as bytes. Lets decode and load everything ! try: data = json.loads(line.decode('utf8')) - reception_date = datetime.utcnow().strftime("%Y/%m/%d %H:%M:%S ") + reception_date = datetime.utcnow().strftime("%Y/%m/%d %H:%M:%S") #print("{} :\n{}".format(reception_date, data)) # Formatting data for sending to MQTT broker (one source at a time)