Hi all,
Been a while since I've been on here. Just throwing something up to say I've finally got together a Python driver to pull stats from a Renogy DCC50S using a USB modbus adapter/dongle plugged into a Raspberry Pi.
The python module is fairly modular so just pulls from the dongle and spits out json but I've included an mqtt demo file to throw the data into an mqtt server.
The data is output like this:
Been a while since I've been on here. Just throwing something up to say I've finally got together a Python driver to pull stats from a Renogy DCC50S using a USB modbus adapter/dongle plugged into a Raspberry Pi.
The python module is fairly modular so just pulls from the dongle and spits out json but I've included an mqtt demo file to throw the data into an mqtt server.
The data is output like this:
JSON:
{
"device": " RBC50D1S-G1 ",
"auxSoc": 100,
"auxVoltage": 13.3,
"maxCharge": 0,
"controllerTemp": "9",
"auxTemp": "10",
"altVoltage": 13,
"altAmps": 0,
"altWatts": 0,
"solVoltage": 0.5,
"solAmps": 0,
"solWatts": 0,
"lowDailyVolts": 133,
"highDailyVolts": 133,
"highDailyCurrent": 65535,
"highDailyPower": 8748,
"highAccumAh": 2032,
"dailyGeneratedPower": 26864,
"totalWorkingDays": 504,
"totalOverdischaredBattery": 0,
"totalChargedBattery": 3,
"timestamp": "2021-10-30 23:31:42.184255",
"chargingNone": "False",
"chargingSolar": "True",
"chargingEqualization": "False",
"chargingBoost": "False",
"chargingFloat": "False",
"chargingLimited": "False",
"chargingAlt": "False",
"errors": []
}