From: Phil Howard Date: Tue, 20 Aug 2019 15:22:05 +0000 (+0100) Subject: Merged cipy-improved-logging, omitted luftdaten.py for now X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/commitdiff_plain/23cf04451d7cb0d6acf6b4b55bd3f57d11c6cc24 Merged cipy-improved-logging, omitted luftdaten.py for now --- 23cf04451d7cb0d6acf6b4b55bd3f57d11c6cc24 diff --cc examples/luftdaten.py index 358d442,85e3cb2..9995914 --- a/examples/luftdaten.py +++ b/examples/luftdaten.py @@@ -74,6 -81,6 +74,7 @@@ def read_values() def get_cpu_temperature(): process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE, universal_newlines=True) output, _error = process.communicate() ++ output = output.decode() return float(output[output.index('=') + 1:output.rindex("'")])