new thermal-log cron, for regular temp updates.

This commit is contained in:
2020-04-17 14:34:47 +00:00
parent 1bf404181e
commit de709f250c
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
LOCATION=`dirname "$0"`
source "${LOCATION}/../thermal.sh"
${LOCATION}/../discord.sh thermal `${LOCATION}/../thermal.sh`
+1 -1
View File
@@ -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"