From 83884aabec177bac2a85763cf4e18d702b1af745 Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Sat, 31 Oct 2020 04:28:53 +0000 Subject: [PATCH 1/1] chore(exec/temp):Fix CSV fields in stdout output --- exec/temperature/DS18B20..temp_poll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/temperature/DS18B20..temp_poll.py b/exec/temperature/DS18B20..temp_poll.py index 3230bf8..5017c49 100755 --- a/exec/temperature/DS18B20..temp_poll.py +++ b/exec/temperature/DS18B20..temp_poll.py @@ -47,6 +47,6 @@ while True: nowTemp = read_temp() print(str(nowTimeIso8601) + ',' + str(nowTimeUE) + ',' + str(myHostname) + ',' + str(nowTemp), flush=True) # flush to stdout continuously (e.g. without buffer) https://stackoverflow.com/a/14729823 except Exception as e: - print(str(nowTimeIso8601) + ',' + str(nowTimeUE) + ',' + str(myHostname) + ',' + 'ERROR:' + str(e), flush=True) + print(str(nowTimeIso8601) + ',' + str(nowTimeUE) + ',' + str(myHostname) + ',,' + 'ERROR:' + str(e), flush=True) finally: time.sleep(10) -- 2.30.2