Update temp.inc.sh
This commit is contained in:
@@ -910,11 +910,6 @@ Previous Temp: ${last_temp}${GAUGESH}"
|
||||
fi
|
||||
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "system" ] && [[ "${SENSORa}" = *"FAN"* ]]; then
|
||||
${mysql_conn} -e "USE servermonitor; INSERT INTO sensor_data (\`sensorid\`, \`date\`, \`speed\`) VALUES ('${PW_SENSOR_ID[${SENSORa}]}','$(date +'%Y-%m-%d %H:%M:%S')','${temp_f}')"
|
||||
|
||||
elif [ "${SENSOR}" == "Powerwall-Switch" ]; then
|
||||
echo "HERE: ${temp_h} - ${temp_f}"
|
||||
|
||||
|
||||
elif [ "${temp_h}" != "" ] && [ "${temp_h}" != "0" ]; then
|
||||
QRY="USE servermonitor; INSERT INTO sensor_data (\`sensorid\`, \`date\`, \`temp\`, \`hum\`) VALUES ('${PW_SENSOR_ID[${SENSORa}]}','$(date +'%Y-%m-%d %H:%M:%S')','${temp_f}','${temp_h}')"
|
||||
elif [ "${temp_f}" != "32.00" ]; then
|
||||
|
||||
Reference in New Issue
Block a user