first commit
This commit is contained in:
commit
a529f24ba8
9
log_temp
Executable file
9
log_temp
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
cpu=$(</sys/class/thermal/thermal_zone0/temp)
|
||||
cpu_t=$((cpu/1000))
|
||||
data=$(date +"%d %I:%M %p")
|
||||
echo "CPU Temp: $cpu_t c $data" >> /nas/share/brickman/logs/temp/cpu_temp.log
|
||||
gpu=$(vcgencmd measure_temp | cut -c 6-7 -)
|
||||
echo "GPU Temp: $gpu c $data" >> /nas/share/brickman/logs/temp/gpu_temp.log
|
||||
ssd=`sudo smartctl -d sat,12 --all /dev/sda | grep Temperature_Celsius | cut -c 87-89 - `
|
||||
echo "SSD Temp: $ssd c $data" >> /nas/share/brickman/logs/temp/ssd_temp.log
|
7
temp
Executable file
7
temp
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
cpu=$(</sys/class/thermal/thermal_zone0/temp)
|
||||
echo "CPU Temp: $((cpu/1000)) c"
|
||||
gpu=$(vcgencmd measure_temp | cut -c 6-7 -)
|
||||
echo "GPU Temp: $gpu c"
|
||||
ssd=` sudo smartctl -d sat,12 --all /dev/sda | grep Temperature_Celsius | cut -c 88-89 -`
|
||||
echo "SSD Temp: $ssd c"
|
Loading…
Reference in New Issue
Block a user