Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
Update run_bms_query.sh
Browse files Browse the repository at this point in the history
added if the cells voltage is between min e max value specified in the config file to avoid the scrit send incorrect value to Mqtt server like 0 voltage for example
  • Loading branch information
byte4geek authored Jan 27, 2023
1 parent 8c5de0c commit 18f613e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_bms_query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ do
cat /dev/null > "$NOUPFILE"
fi

QUERY=$(cat battery_status)
QUERY=$(~/SEPLOS_MQTT/query_seplos_ha.sh 4201)

# Find lowest and high value
onlycells=$(echo $QUERY|awk '{print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16}')
Expand Down

0 comments on commit 18f613e

Please sign in to comment.