Update power.inc.sh

This commit is contained in:
2024-02-06 19:10:48 -06:00
parent 902a1025a4
commit f1e5312036

View File

@@ -594,9 +594,10 @@ OFFSITE_CHECKPOWER_SERVICE(){
if [ -d /sys/bus/w1/devices/${PW_SENSOR_DEVICEID['Offsite-ServerRoom']} ]; then
temp_c=$(cat /sys/bus/w1/devices/${PW_SENSOR_DEVICEID['Offsite-ServerRoom']}/w1_slave | tail -n1 | cut -d "=" -f2)
OFFSITE_TEMP=$(echo "scale=2; ${temp_c}/1000" | bc)
echo "HERE: ${temp_c} - ${OFFSITE_TEMP}"
echo "FOUND: ${temp_c} - ${OFFSITE_TEMP}"
else
OFFSITE_TEMP=ERR
echo "NOT FOUND: ${temp_c} - ${OFFSITE_TEMP}"
fi