fix missing paths and json formatting after refactor testing

This commit is contained in:
David
2019-07-27 23:03:08 +10:00
parent ccb999b8dc
commit 84cfa20aee
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -14,14 +14,14 @@ pushMQTTData () {
-m "$2"
}
INVERTER_DATA=`timeout 10 /opt/voltronic-cli/bin/inverter_poller`
INVERTER_DATA=`timeout 10 /opt/inverter-cli/bin/inverter_poller -1`
#####################################################################################
Inverter_mode=`echo $INVERTER_DATA | jq '.Inverter_mode' -r`
# 1 = Power_On, 2 = Standby, 3 = Line, 4 = Battery, 5 = Fault, 6 = Power_Saving, 7 = Unknown
[ ! -z "$Inverter_mode" ] && pushMQTTData "Inverter_mode" "$Inverter_mode"
AC_grid_voltage=`echo $INVERTER_DATA | jq '.AC_grid_voltage' -r`