Update powerwall.sh
This commit is contained in:
@@ -239,7 +239,7 @@ DAILYTEMP(){
|
|||||||
# average7=$(AVERAGETEMP ${SENSOR_ID[$SENSOR]} 7)
|
# average7=$(AVERAGETEMP ${SENSOR_ID[$SENSOR]} 7)
|
||||||
|
|
||||||
if [ "${SENSOR_TYPE[${SENSOR}]}" == "mqtt" ]; then
|
if [ "${SENSOR_TYPE[${SENSOR}]}" == "mqtt" ]; then
|
||||||
mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1`
|
mqtt_message=`${mqtt_conn} -t tele/${SENSOR}/SENSOR -C 1`
|
||||||
temp_c=$(echo $mqtt_message | cut -d':' -f 6 | cut -d',' -f 1)
|
temp_c=$(echo $mqtt_message | cut -d':' -f 6 | cut -d',' -f 1)
|
||||||
|
|
||||||
elif [ "${SENSOR_TYPE[${SENSOR}]}" == "system" ]; then
|
elif [ "${SENSOR_TYPE[${SENSOR}]}" == "system" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user