EmonTX to Rpi - Direct Serial Connection

Just for posterity and so if anyone find this by search…

To get ‘miniterm’ to accept input from the keyboard (so enter config mode) you need to add the --rtscts option.

$ miniterm --rtscts /dev/ttyAMA0 115200

Secondly, the NodeID is by default 0. If you want to change this you need to add the nodeoffset option such that

[[SerialTx]]
     Type = EmonHubTx3eInterfacer
      [[[init_settings]]]
           com_port= /dev/ttyAMA0
           com_baud = 115200
      [[[runtimesettings]]]
           pubchannels = ToEmonCMS,

           nodeoffset = 1

Note the comma after the pubchannels line and the blank line.

As the data comes in as name:value pair, there is no need for a node definition to decode the data, so choose an unused number (0-4) or delete the node definition.

[edit]
It is also good practice to remove the JP2 when powering from both AC and DC.

https://community.openenergymonitor.org/t/emontxv3-stops-and-requires-reboot-emonhub/5448/50

https://guide.openenergymonitor.org/technical/emontx/#configuration