@CharlesGodwin is the code still available. I have the same setup minus the AGS. I have been looking for a way to log the Inverter, BMS, and ARC, plus my morning star controller.
I am also interesting in powering the Pi from the battery as you have.
This is for a mobile off-grid setup.