From a63c483c3df1606cb621906180ca99371670c533 Mon Sep 17 00:00:00 2001 From: tech Date: Tue, 16 Apr 2024 17:37:13 +0200 Subject: [PATCH] Update axpert_grid_offline.sh --- axpert_grid_offline.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axpert_grid_offline.sh b/axpert_grid_offline.sh index 0496da5..8f25a5f 100755 --- a/axpert_grid_offline.sh +++ b/axpert_grid_offline.sh @@ -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)}')