Update powerwall.sh
This commit is contained in:
@@ -432,7 +432,7 @@ Previous Temp: ${last_temp[${SENSOR}]}'F"
|
|||||||
else
|
else
|
||||||
wait=300
|
wait=300
|
||||||
fi
|
fi
|
||||||
if [ ${lastinsert} -ge ${wait} ]; then
|
if [ ${lastinsert} -ge ${wait} ] && [ "${PW_SENSOR_ID[${SENSORa}]}" != "" ]; then
|
||||||
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then
|
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then
|
||||||
entityid=($(${mysql_conn} -e "SELECT id FROM servermonitor.entities WHERE BINARY name='${vSENSOR// /_}' AND sensorid='${PW_SENSOR_ID[${SENSORa}]}'"))
|
entityid=($(${mysql_conn} -e "SELECT id FROM servermonitor.entities WHERE BINARY name='${vSENSOR// /_}' AND sensorid='${PW_SENSOR_ID[${SENSORa}]}'"))
|
||||||
if [ "${entityid[1]}" == "" ]; then
|
if [ "${entityid[1]}" == "" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user