Update power.inc.sh
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user