inital dump
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
<= -5°C --> Critical Coold
|
||||
|
||||
<= 5°C --> Warning Coold
|
||||
|
||||
>= 45°C --> Warning Hot
|
||||
|
||||
>= 50°C --> Critical Hot
|
||||
@@ -0,0 +1,11 @@
|
||||
|
||||
vcgencmd measure_temp
|
||||
|
||||
|
||||
import os
|
||||
|
||||
def getCpuTemperature():
|
||||
tempFile = open( "/sys/class/thermal/thermal_zone0/temp" )
|
||||
cpu_temp = tempFile.read()
|
||||
tempFile.close()
|
||||
return float(cpu_temp)/1000
|
||||
Reference in New Issue
Block a user