Update axpert_grid_offline.sh

This commit is contained in:
tech 2024-04-16 17:37:13 +02:00
parent c9b45eb4a5
commit a63c483c3d
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
### This script connects to a axpert inverter, using https://github.com/b48736/axpert-monitor
### It checks if the grid power is "on", and in case it's not alerts the server and informs about the battery percentage status and loads
topicurl=https://172.26.0.15/hangar_servers
topicurl=https://NTFY_SERVER_IP/hangar_servers
GRID_STATUS=$(/usr/local/bin/axpert-query -c QPIGS | grep "gridVoltage" | awk '{print substr($2, 1, length($2)-1)}')
BATTERY_STATUS=$(/usr/local/bin/axpert-query -c QPIGS | grep "batteryCapacity" | awk '{print substr($2, 1, length($2)-1)}')
OUTPUT_LOAD=$(/usr/local/bin/axpert-query -c QPIGS | grep "outputLoadPercent" | awk '{print substr($2, 1, length($2)-1)}')