Skip to content

Commit 99afc3e

Browse files
committed
Merge branch 'topshed-master'
2 parents 10d8135 + fbb7f17 commit 99afc3e

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

examples/all-in-one-no-pm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def display_text(variable, data, unit):
8080
def get_cpu_temperature():
8181
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE)
8282
output, _error = process.communicate()
83+
output = output.decode()
8384
return float(output[output.index('=') + 1:output.rindex("'")])
8485

8586

examples/all-in-one.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def display_text(variable, data, unit):
8686
def get_cpu_temperature():
8787
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE)
8888
output, _error = process.communicate()
89+
output = output.decode()
8990
return float(output[output.index('=') + 1:output.rindex("'")])
9091

9192

examples/luftdaten.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def read_values():
7474
def get_cpu_temperature():
7575
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE)
7676
output, _error = process.communicate()
77+
output = output.decode()
7778
return float(output[output.index('=') + 1:output.rindex("'")])
7879

7980

0 commit comments

Comments
 (0)