projects
/
EVA-2020-02-2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update luftdaten.py
[EVA-2020-02-2.git]
/
examples
/
luftdaten.py
diff --git
a/examples/luftdaten.py
b/examples/luftdaten.py
index 4d3d49acd87a86dae17d79f51981f67d75fc261a..99a40c0cdc7dc3562c99986784eda8c040307233 100755
(executable)
--- 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("'")])