Update powerwall.sh
This commit is contained in:
1 parent
68bf4885e9
commit
3edaa04244
1 file changed
+2
-1
+2
-1
@@ -245,7 +245,8 @@ CHECKTEMP_SERVICE(){
|
|||||||
fi
|
fi
|
||||||
if [ "${SENSORS_CHECK}" != "" ]; then
|
if [ "${SENSORS_CHECK}" != "" ]; then
|
||||||
for SENSOR in "${SENSORS_CHECK[@]}"; do
|
for SENSOR in "${SENSORS_CHECK[@]}"; do
|
||||||
last_temp[${SENSOR//-/}]=0
|
[ "${last_temp[${SENSOR//-/}]}" == "" ] && last_temp[${SENSOR//-/}]=0
|
||||||
|
echo "${SENSOR//-/} - ${last_temp[${SENSOR//-/}]}"
|
||||||
if [ "${PW_THRESHOLDS[${SENSORa}]}" != "" ]; then
|
if [ "${PW_THRESHOLDS[${SENSORa}]}" != "" ]; then
|
||||||
echo ${PW_THRESHOLDS[${SENSORa}]} | cut -d',' -f 1 | read temp_warn
|
echo ${PW_THRESHOLDS[${SENSORa}]} | cut -d',' -f 1 | read temp_warn
|
||||||
echo ${PW_THRESHOLDS[${SENSORa}]} | cut -d',' -f 2 | read temp_crit
|
echo ${PW_THRESHOLDS[${SENSORa}]} | cut -d',' -f 2 | read temp_crit
|
||||||
|
|||||||
Reference in new issue
Block a user