Update powerwall.sh
This commit is contained in:
@@ -157,7 +157,6 @@ AVERAGETEMP(){
|
|||||||
if [ "${PW_SENSOR_TYPE[${sensorid}]}" == "esxi" ]; then
|
if [ "${PW_SENSOR_TYPE[${sensorid}]}" == "esxi" ]; then
|
||||||
entityid=($(${mysql_conn} -e "SELECT id FROM servermonitor.entities WHERE BINARY name='${3}' AND sensorid='${sensorid}'"))
|
entityid=($(${mysql_conn} -e "SELECT id FROM servermonitor.entities WHERE BINARY name='${3}' AND sensorid='${sensorid}'"))
|
||||||
entityid=${entityid[1]}
|
entityid=${entityid[1]}
|
||||||
echo "HERE: ${3} - ${entityid}"
|
|
||||||
WHERE="sensorid=${sensorid} AND entity=${entityid}"
|
WHERE="sensorid=${sensorid} AND entity=${entityid}"
|
||||||
else
|
else
|
||||||
WHERE="sensorid=${sensorid}"
|
WHERE="sensorid=${sensorid}"
|
||||||
|
|||||||
Reference in New Issue
Block a user