new thermal-log cron, for regular temp updates.
This commit is contained in:
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
LOCATION=`dirname "$0"`
|
||||
|
||||
source "${LOCATION}/../thermal.sh"
|
||||
${LOCATION}/../discord.sh thermal `${LOCATION}/../thermal.sh`
|
||||
|
||||
+1
-1
@@ -2,5 +2,5 @@
|
||||
|
||||
name=$(</sys/class/thermal/thermal_zone0/type)
|
||||
temp=$(</sys/class/thermal/thermal_zone0/temp)
|
||||
echo "${name} $((temp/1000)).$((temp%1000)) C"
|
||||
echo "${name}: $((temp/1000)).$((temp%1000)) C"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user