Update axpert_grid_offline.sh
This commit is contained in:
parent
c9b45eb4a5
commit
a63c483c3d
|
@ -3,7 +3,7 @@
|
||||||
### This script connects to a axpert inverter, using https://github.com/b48736/axpert-monitor
|
### 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
|
### 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)}')
|
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)}')
|
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)}')
|
OUTPUT_LOAD=$(/usr/local/bin/axpert-query -c QPIGS | grep "outputLoadPercent" | awk '{print substr($2, 1, length($2)-1)}')
|
||||||
|
|
Loading…
Reference in New Issue