From b0d2f879a72fa374aae691138eca28d7ee05be02 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 4 Nov 2023 12:58:59 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index c48e6d35..3ed08608 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -477,8 +477,8 @@ DAILYTEMP(){ temp_c=${temp_c%\'*}; temp_c=${temp_c#*=} elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then - temp_c=$(echo ${SENSOR} | cut -d'p' -f2 | awk '/ / {print $2}' | sed -e 's/C//g'); - temp_c=${temp_c/ /} + temp_c=$(snmpwalk -v 1 -c public -t 2 ${PW_HOST_IDRACS[${SENSORa}]} .1.3.6.1.4.1.674.10892.5.4.700.20.1.6.1.${t} -O vq | sed -e 's/"//g') + temp_c=`echo "scale=1; ${temp_c}/10" | bc` vSENSOR=${SENSOR} SENSOR="${SENSORa}-${vSENSOR// /_}"