Updated lm-sensors modules

This commit is contained in:
Archie Hilton (thytom) 2019-11-06 15:07:14 +00:00
parent 6c38051d94
commit 6d8e2aa54f
3 changed files with 4 additions and 4 deletions

2
config
View file

@ -1,7 +1,7 @@
#!/bin/bash
# What modules, in what order
MODULES="weather volumebar wifi internet cpuload temperature date time"
MODULES="weather volumebar wifi internet cpuload cputemp date time"
# Modules that require an active internet connection
ONLINE_MODULES="weather internet"

View file

@ -3,7 +3,7 @@
# Gets temperature of the CPU
# Dependencies: lm_sensors
get_temperature()
get_cputemp()
{
# CPU_T=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input)
# CPU_TEMP=$(expr $CPU_T / 1000)
@ -18,4 +18,4 @@ get_temperature()
echo " $CPU_TEMP"
}
get_temperature
get_cputemp

View file

@ -7,7 +7,7 @@ PREFIX=' '
get_fan_speed()
{
echo "$PREFIX$(sensors | grep fan1 | cut -d " " -f 9) RPM"
echo "$PREFIX$(sensors | grep fan1 | awk 'NR==1{print $2}') RPM"
}
get_fan_speed