Update power.inc.sh

This commit is contained in:
2024-02-06 19:09:55 -06:00
parent c02a52b80b
commit 902a1025a4

View File

@@ -594,6 +594,7 @@ 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}"
else
OFFSITE_TEMP=ERR