We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 847937a commit dc633dfCopy full SHA for dc633df
examples/luftdaten.py
@@ -73,6 +73,7 @@ def read_values():
73
def get_cpu_temperature():
74
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE)
75
output, _error = process.communicate()
76
+ output = output.decode()
77
return float(output[output.index('=') + 1:output.rindex("'")])
78
79
0 commit comments