Update powerwall.sh
This commit is contained in:
@@ -25,7 +25,7 @@ CHECKTEMP(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
CHECKTEMPSENSOR()}{
|
CHECKTEMPSENSOR(){
|
||||||
mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1`
|
mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1`
|
||||||
echo $mqtt_message | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c
|
echo $mqtt_message | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c
|
||||||
if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then
|
if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user