projects
/
EVA-2020-02-2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
847937a
)
Update luftdaten.py
author
Richard Hayler
<topshed@users.noreply.github.com>
Sat, 3 Aug 2019 19:48:26 +0000
(20:48 +0100)
committer
GitHub
<noreply@github.com>
Sat, 3 Aug 2019 19:48:26 +0000
(20:48 +0100)
added decoding of bytestring to provide Python3 compatibility.
examples/luftdaten.py
patch
|
blob
|
blame
|
history
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("'")])