Скопировал код для ретвиттов на новую модульную систему

This commit is contained in:
2017-05-16 15:02:58 +03:00
parent 565fced8ba
commit 92fa8e21b5
9 changed files with 128 additions and 79 deletions

5
check.py Normal file
View File

@@ -0,0 +1,5 @@
def check_temp(): #return temp. yours Rpi
cmd = '/opt/vc/bin/vcgencmd measure_temp'
line = os.popen(cmd).readline().strip()
temp = line.split('=')[1].split("'")[0]
return temp