X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/391bec805e2503f517fbec5d864f4d353e5f00ab..e8fa1c067e150a5ef58ea053fc49e5afa46e81cd:/examples/luftdaten.py 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("'")])