diff --git a/bin/temp_c b/bin/temp_c index 65416a54..57932315 100755 --- a/bin/temp_c +++ b/bin/temp_c @@ -27,7 +27,7 @@ if [ "$1" = "--detail" ]; then exit 0 fi -for i in `ls $DIR/*/temperature`; do +for i in $MONITORED_TEMP `ls $DIR/*/temperature`; do t=$(sed "s/^[^0-9]\+//" "$i" | sed "s/\s.*$//") printf "\005{=b kY}%s\005{-}\005{= kY}\260C\005{-} " "$t" break diff --git a/bin/temp_f b/bin/temp_f index 3f9faea7..075696e6 100755 --- a/bin/temp_f +++ b/bin/temp_f @@ -23,7 +23,7 @@ if [ "$1" = "--detail" ]; then exit 0 fi -for i in `ls $DIR/*/temperature`; do +for i in $MONITORED_TEMP `ls $DIR/*/temperature`; do t=$(sed "s/^[^0-9]\+//" "$i" | sed "s/\s.*$//" | awk '{printf "%.0f", $1 *9/5 + 32}') printf "\005{=b kY}%s\005{-}\005{= kY}\260F\005{-} " "$t" break