I’m trying to get some data out of our Fox Solar PV and Batteries directly into EmonCMS.
I’ve got some PHP hacky scripts up and running that steal the data out of the FoxCloud application however I’d like to get the data directly if possible.
Initially I went with a HF5111S which is a Modbus → TCP thing. I was hoping I could connect it to the MQTT directly, however it doesn’t seem to work.
I’ve got a successful modbus setup currently working using a few sdm120 meters and a USB->Modbus adaptor so I though I could use that, however I don’t understand enough about Modbus to set the config up. From the config, I need something like this
[[SDM120]] Type = EmonHubMinimalModbusInterfacer [[[init_settings]]] device = /dev/ttyUSB0 baud = 2400 [[[runtimesettings]]] pubchannels = ToEmonCMS, read_interval = 10 nodename = sdm120 # prefix = sdm_ [[[[meters]]]] ... [[[[[fox]]]]] address = 247 registers = 0, 6, 12, 18, 30, 70, 72, 74, 76 names = V, I, P, VA, PF, FR, EI, EE, RI precision = 2, 3, 1, 1, 3, 3, 3, 3, 3
However I don’t understand the registers or names. I assume names map directly to registers.
A screenshot from the manual
Should my config look like this? (for example)
registers = 11000, 6, 11001 names = pv1Voltage, pv1current