inital dump
This commit is contained in:
9
Software/Temperatur/TempGrenzwerte.txt
Normal file
9
Software/Temperatur/TempGrenzwerte.txt
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
<= -5<>C --> Critical Coold
|
||||
|
||||
<= 5<>C --> Warning Coold
|
||||
|
||||
>= 45<34>C --> Warning Hot
|
||||
|
||||
>= 50<35>C --> Critical Hot
|
11
Software/Temperatur/TempRead.txt
Normal file
11
Software/Temperatur/TempRead.txt
Normal file
@ -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