Add files via upload

This commit is contained in:
Matvey Tarasov
2017-05-15 20:52:58 +03:00
committed by GitHub
parent 3b42600600
commit 6bf29e1e5c
5 changed files with 108 additions and 1 deletions

7
check.py Normal file
View File

@@ -0,0 +1,7 @@
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