Playbook für die Nextcloud Notfalleinrichtung.
This commit is contained in:
10
roles/initnextcloud/files/scripts/showtemp
Executable file
10
roles/initnextcloud/files/scripts/showtemp
Executable file
@@ -0,0 +1,10 @@
|
||||
cpu=$(</sys/class/thermal/thermal_zone0/temp)
|
||||
|
||||
vccmd=$(which vcgencmd)
|
||||
gpu=$(${vccmd} measure_temp)
|
||||
gpu=$(echo "${gpu}"| sed 's|temp\=||g')
|
||||
|
||||
echo "$(date) @ $(hostname)"
|
||||
echo "-------------------------------------------"
|
||||
echo "GPU => ${gpu}"
|
||||
echo "CPU => $((cpu/1000))'C"
|
Reference in New Issue
Block a user