I hope you don’t mind, I moved this question to a new topic.
The short answer is yes; you will just need to create a new entry in emonhub.conf
in the [interfacers]
section, you can edit this via the local Emoncms web interface.
There are two options depending on serial format:
1. EmonHubTx3eInterfacer
This interface handles name value key pairs e.g. name:value,name:value
. This is the default serial output for latest emonTx V3 and emonTH FW.
Config example:
[interfacers]
### This interfacer manages the EmonTx3 ESP format serial
[[SerialTx3e]]
Type = EmonHubTx3eInterfacer
[[[init_settings]]]
# Un-comment line below if using RS485 adapter
#com_port = /dev/ttyRS485-0
# default com port if using USB to UART adapter
com_port= /dev/ttyUSB0
com_baud = 115200
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
2. EmonHubSerialInterface
This interfacer handles serial with space operators e.g NODEID VAR1 VAR2 VAR3
Config example:
[[SerialDirect]]
Type = EmonHubSerialInterfacer
[[[init_settings]]]
com_port = /dev/ttyUSB0 # or /dev/ttyAMA0 or/dev/ttyACM0 etc
com_baud = 9600 # to match the baud of the connected device
[[[runtimesettings]]]
pubchannels = ToEmonCMS,