X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/a73ee7811dc8302651b4a2eb324431ff5dd4ea1e..e2d010e2ae9761418d5a59f79cc4b60a251665d5:/examples/luftdaten.py?ds=sidebyside diff --git a/examples/luftdaten.py b/examples/luftdaten.py index 4d3d49a..c5b0387 100755 --- a/examples/luftdaten.py +++ b/examples/luftdaten.py @@ -71,7 +71,7 @@ def read_values(): # Get CPU temperature to use for compensation def get_cpu_temperature(): - process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE) + process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE, universal_newlines=True) output, _error = process.communicate() return float(output[output.index('=') + 1:output.rindex("'")])