X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/391bec805e2503f517fbec5d864f4d353e5f00ab..dc633dfb1034e4158aaa3b5bf9e579711728c1d5:/examples/luftdaten.py?ds=inline diff --git a/examples/luftdaten.py b/examples/luftdaten.py index 4d3d49a..99a40c0 100755 --- a/examples/luftdaten.py +++ b/examples/luftdaten.py @@ -73,6 +73,7 @@ def read_values(): def get_cpu_temperature(): process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE) output, _error = process.communicate() + output = output.decode() return float(output[output.index('=') + 1:output.rindex("'")])