MODBUS TCP/IP Python send to EmonCMS

I haven’t made the switch, i still use 2.7 by default and without thinking about it, had assumed your code to be 2.7 by the lack of brackets on the print statement.

That makes total sense, my apologies.

So it is actually the “httplib” module that creates an issue when there are spaces in the csv rather than emoncms, that too makes better sense, not saying it’s right or not, but I have spaced out csv for better readability in the past and hadn’t hit that issue with emoncms before.

Later today i will look at editing a copy of your script for use with an emonhub socket interfacer.

EDIT - If you do go ahead and install emonhub, I would install the original not the emonPi variant for this, and maybe be aware that on Ubuntu there maybe an issue with the emonhub init service under systemd (ref Emonhub Systemd Ubuntu 15.10 thread)

EDIT2 - I had found this PDF yesterday, I will post it here for ref (so I can close the browser page) it lists the full list of registers.
http://www.veris.com/docs/comms/mb_pmap/h663_h704_100a_pm_10101.pdf

EDIT3 - I forgot to ask something about the device, That PDF says “100 amp model”, is that the overall or per channel? Just I noticed the registers were “16bit Integers” and the measure is mA, giving a range of less than +/- 33 amps, not sure why it would report negative amps either, are they “16bit unsigned integers” ie 65amps. (Just thinking out loud to myself, I’m sure it’s documented somewhere)