From: Steven Baltakatei Sandoval Date: Sat, 31 Oct 2020 04:28:53 +0000 (+0000) Subject: chore(exec/temp):Fix CSV fields in stdout output X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/commitdiff_plain/83884aabec177bac2a85763cf4e18d702b1af745?hp=-c chore(exec/temp):Fix CSV fields in stdout output --- 83884aabec177bac2a85763cf4e18d702b1af745 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)