first commit

This commit is contained in:
tofasthacker 2024-02-26 19:16:47 -05:00
commit a529f24ba8
3 changed files with 16 additions and 0 deletions

0
README.md Normal file
View File

9
log_temp Executable file
View 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
View 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"